Jump to content

Multiple Tab items, cannot seen 1st page


Recommended Posts

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

  • Moderators

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

Public_Domain.png.2d871819fcb9957cf44f4514551a2935.png 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 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

 

Link to comment
Share on other sites

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.

Link to comment
Share on other sites

  • Moderators

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

Public_Domain.png.2d871819fcb9957cf44f4514551a2935.png 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 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

 

Link to comment
Share on other sites

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

Link to comment
Share on other sites

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?

Link to comment
Share on other sites

  • Moderators

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

 

Public_Domain.png.2d871819fcb9957cf44f4514551a2935.png 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 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

 

Link to comment
Share on other sites

  • Moderators

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

Public_Domain.png.2d871819fcb9957cf44f4514551a2935.png 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 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

 

Link to comment
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
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...