Code: Select all
sLBTimelineItems := ""
;------------------------------------------------------------------------------
; Template for main window
Gui, Add, Button, x12 yp+30 w100 h30 Section Default, Add Timeline Item
Gui, Add, ListBox, xp+110 yp w200 r10 vsLBTimelineItems, %sTimelineItems%
Gui, Show, x400 y200 h200 w350, ListBox Test
;------------------------------------------------------------------------------
; Template for Add Timeline Item sub-window
Gui AddTLIWindow:New
Gui, Add, Text, x12 ym, Timeline Item
Gui, Add, Edit, x12 yp+20 w180 r1 vsTimelineItem
Gui, Add, Button, x100 yp+40 w100 h30 gAddTLISaveItem, Save Item
return
;------------------------------------------------------------------------------
; Labels Section
ButtonAddTimelineItem:
Gui AddTLIWindow:Default
Send ^a
Gui Show, x600, Add Timeline Item
Return
AddTLISaveItem:
Gui Submit
MsgBox Row item=%sTimelineItem%
sOtherTimelineItems := "new timeline item"
GuiControl,, sLBOtherTimelineItems, |%sTimelineItem%
GuiControl +Default, Save
Return
GuiClose:
ExitApp
[Mod edit: Added [code][/code] tags. Please use them yourself when posting code! This is not meant to be a service provided by the moderators.]