[wxruby-users] wxFormBuilder Event Question
Mario Steele
mario at ruby-im.net
Tue Mar 17 17:51:30 EDT 2009
On Mon, Mar 16, 2009 at 5:47 PM, Alex Fenton <alex at pressure.to> wrote:
> Michael Satterwhite 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
>
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.
--
Mario Steele
http://www.trilake.net
http://www.ruby-im.net
http://rubyforge.org/projects/wxruby/
http://rubyforge.org/projects/wxride/
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://rubyforge.org/pipermail/wxruby-users/attachments/20090317/46d4298f/attachment.html>
More information about the wxruby-users
mailing list