Jump to content
Lukepro2315

Multiple Tab items, cannot seen 1st page

Recommended Posts

Lukepro2315

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?

Share this post


Link to post
Share on other sites
Melba23

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._______My UDFs:

Spoiler

ArrayMultiColSort ---- Sort arrays on multiple columns
ChooseFileFolder ---- Single and multiple selections from specified path treeview listing
Date_Time_Convert -- Easily convert date/time formats, including the language used
ExtMsgBox --------- A highly customisable replacement for MsgBox
GUIExtender -------- Extend and retract multiple sections within a GUI
GUIFrame ---------- Subdivide GUIs into many adjustable frames
GUIListViewEx ------- Insert, delete, move, drag, sort, edit and colour ListView items
GUITreeViewEx ------ Check/clear parent and child checkboxes in a TreeView
Marquee ----------- Scrolling tickertape GUIs
NoFocusLines ------- Remove the dotted focus lines from buttons, sliders, radios and checkboxes
Notify ------------- Small notifications on the edge of the display
Scrollbars ----------Automatically sized scrollbars with a single command
StringSize ---------- Automatically size controls to fit text
Toast -------------- Small GUIs which pop out of the notification area

 

Share this post


Link to post
Share on other sites
Lukepro2315

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

​Well 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.

Share this post


Link to post
Share on other sites
Melba23

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._______My UDFs:

Spoiler

ArrayMultiColSort ---- Sort arrays on multiple columns
ChooseFileFolder ---- Single and multiple selections from specified path treeview listing
Date_Time_Convert -- Easily convert date/time formats, including the language used
ExtMsgBox --------- A highly customisable replacement for MsgBox
GUIExtender -------- Extend and retract multiple sections within a GUI
GUIFrame ---------- Subdivide GUIs into many adjustable frames
GUIListViewEx ------- Insert, delete, move, drag, sort, edit and colour ListView items
GUITreeViewEx ------ Check/clear parent and child checkboxes in a TreeView
Marquee ----------- Scrolling tickertape GUIs
NoFocusLines ------- Remove the dotted focus lines from buttons, sliders, radios and checkboxes
Notify ------------- Small notifications on the edge of the display
Scrollbars ----------Automatically sized scrollbars with a single command
StringSize ---------- Automatically size controls to fit text
Toast -------------- Small GUIs which pop out of the notification area

 

Share this post


Link to post
Share on other sites
Lukepro2315

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

​OK here it is

Work.au3

Share this post


Link to post
Share on other sites
Lukepro2315

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

​Ou...also i see on main Tab some items (Imputitems) from last Tab...i expect they be gone too when this problem resolves...or not?

Share this post


Link to post
Share on other sites
Melba23

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._______My UDFs:

Spoiler

ArrayMultiColSort ---- Sort arrays on multiple columns
ChooseFileFolder ---- Single and multiple selections from specified path treeview listing
Date_Time_Convert -- Easily convert date/time formats, including the language used
ExtMsgBox --------- A highly customisable replacement for MsgBox
GUIExtender -------- Extend and retract multiple sections within a GUI
GUIFrame ---------- Subdivide GUIs into many adjustable frames
GUIListViewEx ------- Insert, delete, move, drag, sort, edit and colour ListView items
GUITreeViewEx ------ Check/clear parent and child checkboxes in a TreeView
Marquee ----------- Scrolling tickertape GUIs
NoFocusLines ------- Remove the dotted focus lines from buttons, sliders, radios and checkboxes
Notify ------------- Small notifications on the edge of the display
Scrollbars ----------Automatically sized scrollbars with a single command
StringSize ---------- Automatically size controls to fit text
Toast -------------- Small GUIs which pop out of the notification area

 

Share this post


Link to post
Share on other sites
Lukepro2315

Ok, thank you very much. I go to try it. :)

Share this post


Link to post
Share on other sites
Lukepro2315

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?

Share this post


Link to post
Share on other sites
Melba23

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._______My UDFs:

Spoiler

ArrayMultiColSort ---- Sort arrays on multiple columns
ChooseFileFolder ---- Single and multiple selections from specified path treeview listing
Date_Time_Convert -- Easily convert date/time formats, including the language used
ExtMsgBox --------- A highly customisable replacement for MsgBox
GUIExtender -------- Extend and retract multiple sections within a GUI
GUIFrame ---------- Subdivide GUIs into many adjustable frames
GUIListViewEx ------- Insert, delete, move, drag, sort, edit and colour ListView items
GUITreeViewEx ------ Check/clear parent and child checkboxes in a TreeView
Marquee ----------- Scrolling tickertape GUIs
NoFocusLines ------- Remove the dotted focus lines from buttons, sliders, radios and checkboxes
Notify ------------- Small notifications on the edge of the display
Scrollbars ----------Automatically sized scrollbars with a single command
StringSize ---------- Automatically size controls to fit text
Toast -------------- Small GUIs which pop out of the notification area

 

Share this post


Link to post
Share on other sites
Lukepro2315

OK, thank you for all

Share this post


Link to post
Share on other sites

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 account

Sign in

Already have an account? Sign in here.

Sign In Now

×