Re: Window Background Color in Win32Lib

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

Brian Broker wrote:
> 
> The following works for me:
> }}}
<eucode>
> include win32lib.ew
> 
> constant
>    Win = create(Window,"test",0,Default,Default,300,300,0)
>   
> procedure openWin( integer self, integer event, sequence params )
>    setWindowBackColor(Win,BrightWhite)
> end procedure
> setHandler(Win,w32HOpen,routine_id("openWin"))
> 
> WinMain(Win,Normal)
> </eucode>
{{{

> 
> Maybe check that you don't have a typo in routine_id()?
> 
> -- Brian
> 
Brian,

Thanks, not sure what I did wrong the first 100 times I tried it.  I just placed
the setWindowBackColor(MyMain,BrightWhite) in the open routine and it worked.

Hmmm, come to think of it.....hold on let me go try something real quick.....
Yep, bet that's what I did, I used White instead of BrightWhite.  Got one of
thos paleshadesofgray and other long color names happening. grin

Later.

Ferlin Scarborough

Learn To Program Games in Free Courses At
http://www.gameuniv.net

My Euphoria Home Page
http://mywebpage.netscape.com/shadetreesoft

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

Search



Quick Links

User menu

Not signed in.

Misc Menu