OPTIONS "C_CALL LABELCHECK WINFUNC NOSOURCE"
LIBRARY rexxgui
DO
FUNCDEF("GetStockObject", "void, 32u", "gdi32")
FUNCDEF("SetBkColor", "32u, void, 32u", "gdi32")
FUNCDEF("SetTextColor", "32u, void, 32u", "gdi32")
CATCH FAILURE
CONDITION("M")
RETURN
END
entry1 = "something"
entry2 = "something"
entry3 = "something"
entry4 = "something"
guierr = "SYNTAX"
guiheading = 1
guicreatewindow('NORMAL')
entry2handle = guiinfo("HANDLE", "Entry2")
again:
DO FOREVER
guigetmsg()
CATCH SYNTAX
CONDITION('M')
SIGNAL again
CATCH HALT
FINALLY
guidestroywindow()
END
RETURN
wm_ctlcoloredit: PROCEDURE EXPOSE entry2handle
IF entry2handle = ARG(2) THEN DO
settextcolor(ARG(1), 255 * 256)
setbkcolor(ARG(1), 255)
RETURN getstockobject(5)
END
RETURN |