Author Topic: DDgui  (Read 2510 times)

Offline Maxheadroom

  • Mr. Drawsprite
  • **
  • Posts: 62
    • View Profile
    • http://www.hot-apartments.co.uk
DDgui
« on: 2010-Mar-04 »
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

  • Guest
Re: DDgui
« Reply #1 on: 2010-Mar-04 »
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

Offline Maxheadroom

  • Mr. Drawsprite
  • **
  • Posts: 62
    • View Profile
    • http://www.hot-apartments.co.uk
Re: DDgui
« Reply #2 on: 2010-Mar-04 »
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)

Offline Maxheadroom

  • Mr. Drawsprite
  • **
  • Posts: 62
    • View Profile
    • http://www.hot-apartments.co.uk
Re: DDgui
« Reply #3 on: 2010-Mar-04 »
got it working thanks all

Offline Kitty Hello

  • code monkey
  • Administrator
  • Prof. Inline
  • *******
  • Posts: 10851
  • here on my island the sea says 'hello'
    • View Profile
    • http://www.glbasic.com
Re: DDgui
« Reply #4 on: 2010-Mar-04 »
ddgui_backgnd is usually an internally used function. If you want font kerning, you can use the ddgui_print() function, though.