Ruby Forum wxRuby > wxRuby code examples !

Posted by Luiz Macchi (gugui)
on 25.07.2008 21:53
Hi all ! I am new at wxRuby and need more code examples to learn better
!
I´m searching in the Net but all with simple examples and i cant
understand somethings yet...

Any special place to see some codes ?

thanks any help
Posted by Fernando Sáenz (Guest)
on 25.07.2008 22:29
(Received via mailing list)
Welcome to WxRuby!

specifically what things do not understand??
Posted by Luiz Macchi (gugui)
on 25.07.2008 23:01
Fernando Sáenz wrote:
> Welcome to WxRuby!
> 
> specifically what things do not understand??

For example, i cant yet to center a Frame on the display !
Right, the API is there !

I´m using..

Frame#centre

centre(Integer direction = BOTH)

Centres the frame on the display.
Parameters

    * direction The parameter may be HORIZONTAL, VERTICAL or BOTH.

but it dont work :-(

so I sure i´m doing something wrong, and cant understand yet to join 
create the controls, events, layouts all the things together etc...
Posted by Niklas Baumstark (requiem)
on 28.07.2008 14:17
Luiz Macchi wrote:
> but it dont work :-(

frame.centre(Wx::BOTH) works for me.