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’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.
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.
This forum is not affiliated to the Ruby language, Ruby on Rails framework, nor any Ruby applications discussed here.