Re: New to Euphoria - win32lib

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

Arb wrote:
> 
> Hi Alex,
> 
> It still doesn't work even with the flags out.
> 
> Thanks !
> 
> Alex Chamberlain wrote:
> 
> > 
> > I don't think you had to use that function. You could try:
> > }}}
<eucode>
> > myControl = create( Button, "Close", 0, 5,125 ,300, 25, 0) -- Taken flags
> > out
> > </eucode>
{{{

> > 
> > The flags you tried to define are already defined by the library and you
> > were
> > replacing
> > the flag that made it a button - BS_PUSHBUTTON. Read the documentation for
> > create(),
> > in
> > win32lib/docs. Look at flags, then read the docs for PushButton.
> > 
> > This is my understanding, so someone may argue with me, but see if it works!


Sorry, I've missed something - your call to create has no parent, so where is
Windows supposed to put the button? Simply replace '0' after "Close" with the
handler for the main Window.

Alex

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

Search



Quick Links

User menu

Not signed in.

Misc Menu