News:

*NEW* Current Version on STEAM16.793

Webchat:
Visit the chat



READONLY

Previous topic - Next topic

MrTAToad

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...

Kitty Hello

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

MrTAToad

#2
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...