Re: Win4Eu update

new topic     » goto parent     » topic index » view thread      » older message » newer message

Matt Lewis wrote:
 
> And for completeness, here it is in wxEuphoria:
> }}}
<eucode>
> include wxEuphoria.e
> constant win = create( wxWindow, {0, -1, 10, 10, 300, 200})
> 
> wxMain( win )
> </eucode>
{{{

> 
> Ok, Irv's turn...

Well, since you asked :)
include wrapper.e
win = window("title")
show(win)
main()


GTK is smart enough to size and place its own windows, and to me, it seems 
easier to do away with the 'new' or 'create' keywords, and just use the 
name of the control you want a new instance of. 

IOW, 'button()' returns a new button instance, 'window()' returns a new 
window instance... etc.

Irv

new topic     » goto parent     » topic index » view thread      » older message » newer message

Search



Quick Links

User menu

Not signed in.

Misc Menu