Odd - CLICKED value doesn't always reset

Previous topic - Next topic

MrTAToad

For some reason, the following is always being executed :

Code (glbasic) Select
IF DDgui_get(self.LIST_STRINGS$,"CLICKED")
DEBUG "hh\n"
self.selectedLine%=DDgui_get(self.LIST_STRINGS$,"SELECT")
IF self.selectedLine%>=0
DEBUG self.selectedLine%+"\n"
DDgui_set(self.TEXT_STRINGETEXT$,"TEXT",self.strings[self.stringIndex%].lines[self.selectedLine%].name$)
self.TStringEntry_EnableDisplayEntryArea(self.selectedLine%)
ENDIF


LIST_STRING$ is only pressed once, but for some reason CLICKED always returns TRUE

Now, EnableDisplayEntryArea is this :

Code (glbasic) Select
FUNCTION TStringEntry_EnableDisplayEntryArea%:selectedLine%
IF selectedLine%=self.INVALID%
DDgui_set(self.LIST_STRINGS$,"READONLY",FALSE)
DDgui_set(self.TEXT_STRINGETEXT$,"READONLY",TRUE)
DDgui_set(self.BUTTON_UPDATE$,"READONLY",TRUE)
ELSE
DDgui_set(self.LIST_STRINGS$,"READONLY",TRUE)
DDgui_set(self.TEXT_STRINGETEXT$,"READONLY",FALSE)
DDgui_set(self.BUTTON_UPDATE$,"READONLY",FALSE)
ENDIF
ENDFUNCTION


Is it possible that SELECT is setting CLICKED ?

Aside from that the DDGui update seems okay...  :good:

Schranz0r

pls select a subject that match your post... (better for the searchfunction of this forum ;) )

I can't help you with your problem, never used DDGUI  :x
I <3 DGArray's :D

PC:
AMD Ryzen 7 3800X 16@4.5GHz, 16GB Corsair Vengeance LPX DDR4-3200 RAM, ASUS Dual GeForce RTX™ 3060 OC Edition 12GB GDDR6, Windows 11 Pro 64Bit, MSi Tomahawk B350 Mainboard

MrTAToad

I couldn't think of anything better at the time...  :S

Kitty Hello

if the selection of a list changes, a CLICKED will be triggered, yes.

MrTAToad

I think that must be the cause then...