DDgui

Previous topic - Next topic

Maxheadroom

Mr G, or anyone help, with DDgui function i can't seem to get any output where i am i going wrong, it all seem to work but when you press the X m=0 ?

DDgui_pushdialog(10,10,200,200)
DDgui_UpdateFont(TRUE)
DDgui_set("", "TEXT", "Load")
DDgui_button("exit", "X", 0,0)
WHILE TRUE
DDgui_show(FALSE)
m=DDgui_get ("exit",m)
PRINT "m="+m,400,400

SHOWSCREEN
WEND

MrTAToad

Try :

Code (glbasic) Select

DDgui_pushdialog(10,10,200,200)
DDgui_UpdateFont(TRUE)
DDgui_set("", "TEXT", "Load")
DDgui_button("exit", "X", 0,0)
WHILE TRUE
DDgui_show(FALSE)
m=DDgui_get("exit","CLICKED")
PRINT "m="+m,400,400

SHOWSCREEN
WEND

Maxheadroom

cool working may i ask one more?
this is not working i tried RTM no joy!

con%= RGB(0,0,255)
com%= RGB(255,0,0)
DDgui_backgnd (con, com, 10, 10, 200, 200)

Maxheadroom

got it working thanks all

Kitty Hello

ddgui_backgnd is usually an internally used function. If you want font kerning, you can use the ddgui_print() function, though.