For some reason, the following is always being executed :
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 :
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:
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 couldn't think of anything better at the time... :S
if the selection of a list changes, a CLICKED will be triggered, yes.
I think that must be the cause then...