LIBRARY rexxgui, rxgdi
gdierr = "SYNTAX"
gdiheading = 1
guierr = "SYNTAX"
guiheading = 1
guicreatewindow('NORMAL')
again:
DO FOREVER
guigetmsg()
CATCH SYNTAX
CONDITION('M')
SIGNAL again
CATCH HALT
FINALLY
guidestroywindow()
END
RETURN
wm_paint:
gdipaint('Paint', guiwindow)
DO
gdistockobj("GUI_FONT", "FontHandle")
gdisetobj(paint1, fonthandle)
gditext(paint1, "Ij", 'Width', 'Height', 'CALCRECT')
gdibkmode(paint1)
gditext(paint1, "This is my text", 10, 10)
gditextcolor(paint1, gdicolorvalue(200, 70, 40))
gditext(paint1, "This is more text", 10, 10 + height)
gdibkmode(paint1, 'OPAQUE')
gditextcolor(paint1, gdicolorvalue(255, 255, 255), 1)
gditext(paint1, "Colored background text", 10, 10 + (height * 2))
CATCH SYNTAX
BEEP()
FINALLY
gdipaint(paint)
END
RETURN "" |