Unable to unset WS_VISIBLE flag for some win32lib controls

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

Hello!

I was trying to set up some win32lib (v0.70.4 17-Jun-2008) controls on WinXP SP2 that they are not visible by default. Most controls I tried work with the code below, eg LText, but not RichEdit or MleText.

 
include win32lib.ew  
constant mainw = create(Window,"", 
                      0,     0,  0,640,460, 0), 
         mycontrol  = create(LText,"some text", 
                      mainw,10, 10, 20, 80,  
                      or_bits({WS_VISIBLE},0))   

With RichEdit or MleText, I get a popup that says Fatal error, error code 461 Failed to acquire a hWnd when creating a control.

I can get around the problem by not setting the flags, and setVisible(controlname,0) or by commenting out (cringe) WS_VISIBLE in the win32lib RichEdit control. Neither is ideal! I didn't see this issue in the old euphoria posts. Any ideas?

Regards Alan

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

Search



Quick Links

User menu

Not signed in.

Misc Menu