RE: CText not displaying

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

This works:
------------------------------
include win32lib.ew

constant 
Win  = create(Window, "Window", 0, 0, 0, 600, 600, Normal),
myCText = create(CText, "This is CText", Win,  250, 200, 100, 15, 0)

setVisible(myCText, False)

procedure Display()
      setVisible(myCText, True)
end procedure
onActivate[Win] = routine_id( "Display" )

procedure ClearText()
     setVisible(myCText, False)
end procedure
onClick[Win] = routine_id( "ClearText" )

WinMain(Win, Normal)

include win32lib.ew

constant 
Win  = create(Window, "Window", 0, 0, 0, 600, 600, Normal),
myCText = create(CText, "This is CText", Win,  250, 200, 100, 15, 0)

setVisible(myCText, False)

procedure Display()
      setVisible(myCText, True)
end procedure

procedure ClearText()
     Display()
     for t = 1 to 100000000 do end for
     setVisible(myCText, False)
end procedure
onActivate[Win] = routine_id( "ClearText" )

WinMain(Win, Normal)

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

Search



Quick Links

User menu

Not signed in.

Misc Menu