Codesnippets > DD-GUI

Odd - CLICKED value doesn't always reset

(1/1)

MrTAToad:
For some reason, the following is always being executed :


--- Code: (glbasic) --- 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

--- End code ---

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

Now, EnableDisplayEntryArea is this :


--- Code: (glbasic) --- 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
--- End code ---

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

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

Navigation

[0] Message Index

Go to full version