Lukepro2315 Posted May 16, 2015 Share Posted May 16, 2015 Hi guys, i created some GUI with few Tabs (GUICtrlCreateTabItem), but when i run my script i dont see my first main tab. Only when i click on another tab, then click back on main one, i see things that sould be there. Any ideas? Link to comment Share on other sites More sharing options...
Moderators Melba23 Posted May 16, 2015 Moderators Share Posted May 16, 2015 Lukepro2315,The problem obviously lies in the incorrect syntax on line 3176......Seriously, how on earth do you expect help if you do not let us see the code you use? Post the script and then you might get some sensible advice.M23 Any of my own code posted anywhere on the forum is available for use by others without any restriction of any kind Open spoiler to see my UDFs: Spoiler ArrayMultiColSort ---- Sort arrays on multiple columnsChooseFileFolder ---- Single and multiple selections from specified path treeview listingDate_Time_Convert -- Easily convert date/time formats, including the language usedExtMsgBox --------- A highly customisable replacement for MsgBoxGUIExtender -------- Extend and retract multiple sections within a GUIGUIFrame ---------- Subdivide GUIs into many adjustable framesGUIListViewEx ------- Insert, delete, move, drag, sort, edit and colour ListView itemsGUITreeViewEx ------ Check/clear parent and child checkboxes in a TreeViewMarquee ----------- Scrolling tickertape GUIsNoFocusLines ------- Remove the dotted focus lines from buttons, sliders, radios and checkboxesNotify ------------- Small notifications on the edge of the displayScrollbars ----------Automatically sized scrollbars with a single commandStringSize ---------- Automatically size controls to fit textToast -------------- Small GUIs which pop out of the notification area Link to comment Share on other sites More sharing options...
Lukepro2315 Posted May 16, 2015 Author Share Posted May 16, 2015 Lukepro2315,The problem obviously lies in the incorrect syntax on line 3176......Seriously, how on earth do you expect help if you do not let us see the code you use? Post the script and then you might get some sensible advice.M23Well i thought someone will have some experience with that, and say something like "aaaah that only small mistake, u have probably wrong placed (@SW_SHOW) or u forgot put something before first tab item"...something like that. Link to comment Share on other sites More sharing options...
Moderators Melba23 Posted May 16, 2015 Moderators Share Posted May 16, 2015 Lukepro2315,The solution probably is something as simple as that, but there are so many possibilities that I doubt anyone will waste their time enumerating them all - I certainly will not. Just post the code and you will soon get an answer.M23 Any of my own code posted anywhere on the forum is available for use by others without any restriction of any kind Open spoiler to see my UDFs: Spoiler ArrayMultiColSort ---- Sort arrays on multiple columnsChooseFileFolder ---- Single and multiple selections from specified path treeview listingDate_Time_Convert -- Easily convert date/time formats, including the language usedExtMsgBox --------- A highly customisable replacement for MsgBoxGUIExtender -------- Extend and retract multiple sections within a GUIGUIFrame ---------- Subdivide GUIs into many adjustable framesGUIListViewEx ------- Insert, delete, move, drag, sort, edit and colour ListView itemsGUITreeViewEx ------ Check/clear parent and child checkboxes in a TreeViewMarquee ----------- Scrolling tickertape GUIsNoFocusLines ------- Remove the dotted focus lines from buttons, sliders, radios and checkboxesNotify ------------- Small notifications on the edge of the displayScrollbars ----------Automatically sized scrollbars with a single commandStringSize ---------- Automatically size controls to fit textToast -------------- Small GUIs which pop out of the notification area Link to comment Share on other sites More sharing options...
Lukepro2315 Posted May 16, 2015 Author Share Posted May 16, 2015 Lukepro2315,The solution probably is something as simple as that, but there are so many possibilities that I doubt anyone will waste their time enumerating them all - I certainly will not. Just post the code and you will soon get an answer.M23OK here it is Work.au3 Link to comment Share on other sites More sharing options...
Lukepro2315 Posted May 16, 2015 Author Share Posted May 16, 2015 Lukepro2315,The solution probably is something as simple as that, but there are so many possibilities that I doubt anyone will waste their time enumerating them all - I certainly will not. Just post the code and you will soon get an answer.M23Ou...also i see on main Tab some items (Imputitems) from last Tab...i expect they be gone too when this problem resolves...or not? Link to comment Share on other sites More sharing options...
Moderators Melba23 Posted May 16, 2015 Moderators Share Posted May 16, 2015 Lukepro2315,You were quite right - it was something very simple:#include <GuiConstantsEx.au3> GUICreate("Reception tasks", 800, 600) GUISetState(@SW_SHOW) GUICtrlCreateTab(1, 0, 800, 600) GUICtrlCreateTabItem("Denní checklist") GUICtrlCreateTabItem("Noèní checklist") GUICtrlCreateTabItem("Info") GUICtrlCreateTabItem("Služby") GUICtrlCreateTabItem("Vzkazy") GUICtrlCreateTabItem("Buzení") GUICtrlCreateTabItem("") ; Do not forget to close the tabitem structure While 1 Switch GUIGetMsg() Case $GUI_EVENT_CLOSE Exit EndSwitch WEnd And when you reply, please use the "Reply to this topic" button at the top of the thread or the "Reply to this topic" editor at the bottom rather than the "Quote" button - I know what I wrote and it just pads the thread unnecessarily.M23 Any of my own code posted anywhere on the forum is available for use by others without any restriction of any kind Open spoiler to see my UDFs: Spoiler ArrayMultiColSort ---- Sort arrays on multiple columnsChooseFileFolder ---- Single and multiple selections from specified path treeview listingDate_Time_Convert -- Easily convert date/time formats, including the language usedExtMsgBox --------- A highly customisable replacement for MsgBoxGUIExtender -------- Extend and retract multiple sections within a GUIGUIFrame ---------- Subdivide GUIs into many adjustable framesGUIListViewEx ------- Insert, delete, move, drag, sort, edit and colour ListView itemsGUITreeViewEx ------ Check/clear parent and child checkboxes in a TreeViewMarquee ----------- Scrolling tickertape GUIsNoFocusLines ------- Remove the dotted focus lines from buttons, sliders, radios and checkboxesNotify ------------- Small notifications on the edge of the displayScrollbars ----------Automatically sized scrollbars with a single commandStringSize ---------- Automatically size controls to fit textToast -------------- Small GUIs which pop out of the notification area Link to comment Share on other sites More sharing options...
Lukepro2315 Posted May 16, 2015 Author Share Posted May 16, 2015 Ok, thank you very much. I go to try it. Link to comment Share on other sites More sharing options...
Lukepro2315 Posted May 16, 2015 Author Share Posted May 16, 2015 Ok, one more thing - if i close this structure as u said, its ok, but when i run script, it starts on last tab. Is it possible to start on first tab? Link to comment Share on other sites More sharing options...
Moderators Melba23 Posted May 16, 2015 Moderators Share Posted May 16, 2015 Lukepro2315,Go and look at the example script for GUICtrlCreateTabItem in the Help file - that shows you how to choose a tab to be open at start.M23 Any of my own code posted anywhere on the forum is available for use by others without any restriction of any kind Open spoiler to see my UDFs: Spoiler ArrayMultiColSort ---- Sort arrays on multiple columnsChooseFileFolder ---- Single and multiple selections from specified path treeview listingDate_Time_Convert -- Easily convert date/time formats, including the language usedExtMsgBox --------- A highly customisable replacement for MsgBoxGUIExtender -------- Extend and retract multiple sections within a GUIGUIFrame ---------- Subdivide GUIs into many adjustable framesGUIListViewEx ------- Insert, delete, move, drag, sort, edit and colour ListView itemsGUITreeViewEx ------ Check/clear parent and child checkboxes in a TreeViewMarquee ----------- Scrolling tickertape GUIsNoFocusLines ------- Remove the dotted focus lines from buttons, sliders, radios and checkboxesNotify ------------- Small notifications on the edge of the displayScrollbars ----------Automatically sized scrollbars with a single commandStringSize ---------- Automatically size controls to fit textToast -------------- Small GUIs which pop out of the notification area Link to comment Share on other sites More sharing options...
Lukepro2315 Posted May 16, 2015 Author Share Posted May 16, 2015 OK, thank you for all Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now