# Events through XRC

**URL:** <https://www.ruby-forum.com/t/events-through-xrc/185372>\
**Category:** wxRuby\
**Created:** [March 18, 2010, 11:04pm UTC](https://www.ruby-forum.com/t/events-through-xrc/185372 "2010-03-18T23:04:30Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![ayanami](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/a/7ea924/32.png) [@ayanami](https://www.ruby-forum.com/u/ayanami)\
**Post date:** [March 18, 2010, 11:04pm UTC](https://www.ruby-forum.com/t/events-through-xrc/185372/1 "2010-03-18T23:04:30Z")

</div>

Hello. I’m very newbie, pardon in advance.

I would like to know if events can be generated automatically using  
XRCise such as ruby\_glade\_create\_template does.

When I use DialogBlocks or wxFormBuilder I see that, although the events  
are defined in the XRC file, do not appear. Doesn’t XRC support events?  
Thanks a lot.

---

<div class="post-metadata">

**Author:** ![ayanami](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/a/7ea924/32.png) [@ayanami](https://www.ruby-forum.com/u/ayanami)\
**Post date:** [March 18, 2010, 11:07pm UTC](https://www.ruby-forum.com/t/events-through-xrc/185372/2 "2010-03-18T23:07:24Z")

</div>

Sorry again, I meant that although the events are defined in the design  
environment (DialogBlocks or wxFormBuilder) does not appear in the XRC  
file.

---

<div class="post-metadata">

**Author:** ![ayanami](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/a/7ea924/32.png) [@ayanami](https://www.ruby-forum.com/u/ayanami)\
**Post date:** [March 19, 2010, 1:11am UTC](https://www.ruby-forum.com/t/events-through-xrc/185372/3 "2010-03-19T01:11:15Z")

</div>

Most XRC Builders such as DialogBlocks or wxFormBuilder create the code  
templates in the source code generation for C/C++ or Python to handle  
the  
events. Nothing is actually stored for events in the XRC file. All the  
XRC  
file holds, is the GUI elements that wxWidgets needs to create, to  
display  
the form you designed.

hth,

Mario

---

<div class="post-metadata">

**Author:** ![ayanami](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/a/7ea924/32.png) [@ayanami](https://www.ruby-forum.com/u/ayanami)\
**Post date:** [March 19, 2010, 10:51pm UTC](https://www.ruby-forum.com/t/events-through-xrc/185372/4 "2010-03-19T22:51:59Z")

</div>

I see, thanks everyone

---

<div class="post-metadata">

**Author:** ![ayanami](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/a/7ea924/32.png) [@ayanami](https://www.ruby-forum.com/u/ayanami)\
**Post date:** [March 19, 2010, 4:13am UTC](https://www.ruby-forum.com/t/events-through-xrc/185372/5 "2010-03-19T04:13:52Z")

</div>

Your best bet is to create your own source code generator  
I already tried back then, but I figure that  
xrc file is not enough for my need  
too bad until now there is no easier way  
to make wx gui rather than xrc  
(well, i am currently making one but still far from finish)
