GLBasic forum

Codesnippets => DD-GUI => Topic started by: MrTAToad on 2010-Aug-03

Title: READONLY
Post by: MrTAToad on 2010-Aug-03
I think there may be a problem with READONLY and buttons.  When its been set to TRUE and then back to FALSE (for any widget type), for some reason CLICKED doesn't detect a button press...
Title: Re: READONLY
Post by: Kitty Hello on 2010-Aug-05
Works for me:
Code (glbasic) Select

DDgui_pushdialog(10,10,220,220)
DDgui_checkbox("ch1", "readonly?")
DDgui_button("bt1", "Button")
DDgui_automate("ch1", "SELECT", "bt1", "READONLY")


WHILE TRUE
DDgui_show(TRUE)
IF DDgui_get("bt1", "CLICKED") THEN DDgui_msg("Bing!", FALSE)
SHOWSCREEN
WEND
Title: Re: READONLY
Post by: MrTAToad on 2010-Aug-05
It is odd - the only thing I can think of is that some of buttons are being set at the wrong time.

Although all test indicate the button is not set as READONLY...

I think I found why - the code that deals with
Code (glbasic) Select
IF DDgui_get(self.LIST_STRINGS$,"CLICKED") is continually being run...