# wxFormBuilder Event Question

**URL:** <https://www.ruby-forum.com/t/wxformbuilder-event-question/163025>\
**Category:** wxRuby\
**Created:** [March 16, 2009, 8:26pm UTC](https://www.ruby-forum.com/t/wxformbuilder-event-question/163025 "2009-03-16T20:26:04Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![wickie](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/w/ba9def/32.png) [@wickie](https://www.ruby-forum.com/u/wickie)\
**Post date:** [March 16, 2009, 8:26pm UTC](https://www.ruby-forum.com/t/wxformbuilder-event-question/163025/1 "2009-03-16T20:26:04Z")

</div>

I’m learning these tools right now, and I have a question regarding  
events.

In wxFormBuilder, there is the facility to add events to an object. When  
I look at the generated .xrc, however, I don’t see any reference to that  
event. What’s the purpose of specifying an event here if it isn’t saved  
to the .xrc?

---

<div class="post-metadata">

**Author:** ![wickie](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/w/ba9def/32.png) [@wickie](https://www.ruby-forum.com/u/wickie)\
**Post date:** [March 16, 2009, 11:50pm UTC](https://www.ruby-forum.com/t/wxformbuilder-event-question/163025/2 "2009-03-16T23:50:50Z")

</div>

Michael S. wrote:

> I’m learning these tools right now, and I have a question regarding  
> events.
> 
> In wxFormBuilder, there is the facility to add events to an object. When  
> I look at the generated .xrc, however, I don’t see any reference to that  
> event. What’s the purpose of specifying an event here if it isn’t saved  
> to the .xrc?

I haven’t used wxFormBuilder, but generally, wx designers (like  
FormBuilder, DialogBlocks) save (just) layout to XRC. XRC as an XML  
format describes how a window/frame/dialog is composed, but nothing  
about how it interacts. They then can use their own custom format to  
save data beyond what XRC permits - eg events. But AFAIK there is no  
standard for this, so although it could be useful in Ruby, it’s not at  
the moment.

a

---

<div class="post-metadata">

**Author:** ![wickie](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/w/ba9def/32.png) [@wickie](https://www.ruby-forum.com/u/wickie)\
**Post date:** [March 17, 2009, 11:10pm UTC](https://www.ruby-forum.com/t/wxformbuilder-event-question/163025/3 "2009-03-17T23:10:56Z")

</div>

On Mon, Mar 16, 2009 at 5:47 PM, Alex F. [removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid) wrote:

> >

To expand on this further, especially since I’m the one who recommends  
wxFormBuilder, the event “attachment” that you see in the editor, is  
only  
useful when generating C++ Source code that will be compiled later. It  
does  
absolutely nothing for attaching events to function names in the XRC  
file  
itself.
