Author Topic: READONLY  (Read 3621 times)

MrTAToad

  • Guest
READONLY
« 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...

Offline Kitty Hello

  • code monkey
  • Administrator
  • Prof. Inline
  • *******
  • Posts: 10758
  • here on my island the sea says 'hello'
    • View Profile
    • http://www.glbasic.com
Re: READONLY
« Reply #1 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

MrTAToad

  • Guest
Re: READONLY
« Reply #2 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...
« Last Edit: 2010-Aug-05 by MrTAToad »