# wxFormBuilder for wxRuby question

**URL:** <https://www.ruby-forum.com/t/wxformbuilder-for-wxruby-question/183030>\
**Category:** Ruby\
**Created:** [February 6, 2010, 1:51pm UTC](https://www.ruby-forum.com/t/wxformbuilder-for-wxruby-question/183030 "2010-02-06T13:51:33Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![tutiplain](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/t/77aa72/32.png) [@tutiplain](https://www.ruby-forum.com/u/tutiplain)\
**Post date:** [February 6, 2010, 1:51pm UTC](https://www.ruby-forum.com/t/wxformbuilder-for-wxruby-question/183030/1 "2010-02-06T13:51:33Z")

</div>

Hi all,

I want to design a GUI with wxRuby, but I don’t want to define it in  
my code. One of the things I’ve heard about wxRuby is the ability to  
design interfaces using GUI designers and a special XML format known as  
XRC. I decided to try out wxFormBuilder, which supposedly creates these  
type of GUIs, but I can’t even drop a button on a window! Has anyone  
here used it?

How do you guys design your wxRuby interfaces? What GUI designder do  
you use, or do you do it all by hand? I would really like to use a  
designer, 'cause I find control declaration in code to be kind of  
tedious, but if so be it, then code it will be. What do you guys think?

---

<div class="post-metadata">

**Author:** ![tutiplain](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/t/77aa72/32.png) [@tutiplain](https://www.ruby-forum.com/u/tutiplain)\
**Post date:** [February 6, 2010, 5:05pm UTC](https://www.ruby-forum.com/t/wxformbuilder-for-wxruby-question/183030/2 "2010-02-06T17:05:37Z")

</div>

On Feb 6, 1:51 pm, tuti plain [removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid) wrote:

> ## you use, or do you do it all by hand? I would really like to use a designer, 'cause I find control declaration in code to be kind of tedious, but if so be it, then code it will be. What do you guys think?
> 
> Posted viahttp://www.ruby-forum.com/.

First add Panel, Frame or Dialog in your project. After that add some  
of the sizers and finally add buttons and other controls

Regards,  
Bosko I.

---

<div class="post-metadata">

**Author:** ![tutiplain](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/t/77aa72/32.png) [@tutiplain](https://www.ruby-forum.com/u/tutiplain)\
**Post date:** [February 7, 2010, 1:45am UTC](https://www.ruby-forum.com/t/wxformbuilder-for-wxruby-question/183030/3 "2010-02-07T01:45:33Z")

</div>

Hi, thanks. I hadn’t seen seen the sizers tab. I created a simple  
interface, but… can I save it to .xrc format? The “Generate Code”  
button generates C++ code, not XRC, which is what I need in Ruby.  
Thanks again for any info.
