How can i access (selected) items for instance to delete them from the ListBox.
This is a simplification of what i'm trying to do:
Code: Select all
Dialog>Dialog1
Caption=Example
Width=680
Height=480
Top=112
Left=263
label=Event:,24,245
Edit=eventname,60,240,250,
Button=ENTER,340,240,75,25,1
Button=delete,10,420,75,25,2
Button=abort,490,420,75,25,3
Button=START,580,420,75,25,4
ListBox=Events,8,310,650,100,
EndDialog>Dialog1
Let>EventIndex=0
Label>GUILoop
Show>Dialog1,result
if>%result%=1
add>EventIndex,1
ConCat>Dialog1.Events.Items.Text,%EventIndex%: %Dialog1.eventname%
endif
if>%result%=2
//delete selected or last event?
endif
if>%result%=3,end
if>%result%=4,action
ResetDialogAction>Dialog1
goto>GUILoop
label>action
//process events ...
label>end