Re: Win4Eu update
- Posted by Derek Parnell <ddparnell at bigpond.com> Oct 26, 2004
- 682 views
irv mullins wrote: > > 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 :) > }}} <eucode> > include wrapper.e > win = window("title") > show(win) > main() > </eucode> {{{ > > GTK is smart enough to size and place its own windows, Well if you are not going to follow the spec (create a window with the exact dimensions specified), win32lib can do that too.
include win32lib.ew createForm("Window, Title") include w32Start.ew
>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. How easy does that style make it for third-parties to add new control types? -- Derek Parnell Melbourne, Australia