I've got some code where I set up a gui with multiple tabs,
I then try to add a listview to one of the tabs. But by adding in the bold line below, the listbox appears, but all my tabs disappear? What am I missing here?
Code: Select all
;~ ===== Changes the font temporarily to add the Tabs, then changes back
Gui, 1:font,s12, Verdana
Gui, 1:add, Tab, x1 y1 w1300 h900 vTabs, Search|Add|Edit
Gui, 1:font,s8, Verdana
;~ ==========================================
;~ ===== TAB 1 : SEARCH PAGE (a)
;~ ==========================================
{
Gui, 1:tab, Search ;~ ===== Changes the focus to the managers tab, so all changes apply to it.
Gui, 1:font, s18 cE31B23, Verdana ;~ ===== Makes text larger and red for title
Gui, 1:add, text, x5 y40 w200 h50, Accident Search ;~ ===== Adds title textbox
Gui, 1:font, s8 c000000, Verdana ;~ ===== Makes text back to default for rest of window
;~ ==========================================
;~ ===== Main Search Results
;~ ==========================================
{
MSStartx := 5 ;~ ===== Start X coord for the section
MSStarty := 145 ;~ ===== Start Y coord for the section
Offx := MSStartx + 0
Offy := MSStarty + 0
[b][u]Gui, 1:Add, ListView, aResults x%Offx% y%Offy% h500 w1285 , Item1|Item1|Item1|Item1|Item1|Item1 ;~ ===== Listbox for Account Code[/u][/b]
;LV_ModifyCol(3, N500)
}
}
jack