Sign in to follow this  
Followers 0
armoros

Tab Control prob

8 posts in this topic

Well my friends i have an issue with my Tab Control, I have 2 tab sheets, in first i put some buttons but they are shown in both tab sheets, what i must do to have the buttons only in the 1 tab....

#include <ButtonConstants.au3>
#include <EditConstants.au3>
#include <GUIConstantsEx.au3>
#include <TabConstants.au3>
#include <WindowsConstants.au3>
#Region ### START Koda GUI section ### Form=
$Form1 = GUICreate("Form1", 690, 674, 197, 13)
$MenuItem1 = GUICtrlCreateMenu("&File")
$MenuItem2 = GUICtrlCreateMenuItem("About", $MenuItem1)
$MenuItem3 = GUICtrlCreateMenuItem("Exit", $MenuItem1)
$CMD_WINDOW = GUICtrlCreateEdit("", 0, 217, 688, 289, BitOR($GUI_SS_DEFAULT_EDIT,$ES_READONLY))
GUICtrlSetData(-1, "")
GUICtrlSetFont(-1, 12, 800, 0, "Times New Roman")
GUICtrlSetColor(-1, 0xFFFFFF)
GUICtrlSetBkColor(-1, 0x000000)
$Button1 = GUICtrlCreateButton("Button1", 24, 560, 75, 25)
$Button2 = GUICtrlCreateButton("Button2", 104, 560, 75, 25)
$Button3 = GUICtrlCreateButton("Button3", 184, 560, 75, 25)
$Button4 = GUICtrlCreateButton("Button4", 264, 560, 75, 25)
$Button5 = GUICtrlCreateButton("Button5", 344, 560, 75, 25)
$Button6 = GUICtrlCreateButton("Button6", 504, 560, 75, 25)
$Button7 = GUICtrlCreateButton("Button7", 584, 560, 75, 25)
$Button8 = GUICtrlCreateButton("Button8", 424, 560, 75, 25)
$Tab1 = GUICtrlCreateTab(8, 520, 673, 121)
$TabSheet1 = GUICtrlCreateTabItem("TabSheet1")
$TabSheet2 = GUICtrlCreateTabItem("TabSheet2")
GUICtrlCreateTabItem("")
GUISetState(@SW_SHOW)
#EndRegion ### END Koda GUI section ###
While 1
$nMsg = GUIGetMsg()
Switch $nMsg
  Case $GUI_EVENT_CLOSE
   Exit
EndSwitch
WEnd

[font="verdana, geneva, sans-serif"] [/font]

Share this post


Link to post
Share on other sites



$Tab1 = GUICtrlCreateTab(8, 520, 673, 121)

$TabSheet1 = GUICtrlCreateTabItem("TabSheet1")

$Button1 = GUICtrlCreateButton("Button1", 24, 560, 75, 25)

$TabSheet2 = GUICtrlCreateTabItem("TabSheet2")

GUICtrlCreateTabItem("")


Things that I've done..

Icon Resource Editor: icon resource editor 

AutoIt Piano: a piano

AutoIt Unlocker: unlocks files when you want to delete them

Colorful tooltips: a wrapper for the tool tips UDF

Rouge GoogleBot: a full screen animation

ASciTE text editor: a text editor written in autoit

Warning: Posts by this user are subject to change or may disappear without notice.

Share this post


Link to post
Share on other sites

$Tab1 = GUICtrlCreateTab(8, 520, 673, 121)

$TabSheet1 = GUICtrlCreateTabItem("TabSheet1")

$Button1 = GUICtrlCreateButton("Button1", 24, 560, 75, 25)

$TabSheet2 = GUICtrlCreateTabItem("TabSheet2")

GUICtrlCreateTabItem("")

With this kind of support i feel that i should pay for the help i get... ;)

Thank you very much ApudAngelorum for you response...that solved my prob and i learnd another thing..


[font="verdana, geneva, sans-serif"] [/font]

Share this post


Link to post
Share on other sites

armoros,

You might find the Tabs tutorial in the Wiki of interest. ;)

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

With this kind of support i feel that i should pay for the help i get... ;)

Thank you very much ApudAngelorum for you response...that solved my prob and i learnd another thing..

haha, it's just a simple error.


Things that I've done..

Icon Resource Editor: icon resource editor 

AutoIt Piano: a piano

AutoIt Unlocker: unlocks files when you want to delete them

Colorful tooltips: a wrapper for the tool tips UDF

Rouge GoogleBot: a full screen animation

ASciTE text editor: a text editor written in autoit

Warning: Posts by this user are subject to change or may disappear without notice.

Share this post


Link to post
Share on other sites

armoros,

You might find the Tabs tutorial in the Wiki of interest. :)

m23

Yeah the true is that i dont read the tutorial or help...this is a mistake..thats why i ask so much and put extra load to ur servers ;)


[font="verdana, geneva, sans-serif"] [/font]

Share this post


Link to post
Share on other sites

armoros,

i dont read the tutorial or help

Then I suggest you start - there are very good tutorials here and here and reading the Help file (at least the first few sections - Using AutoIt, Tutorials and the first couple of References) will, unsuprisingly, help you enormously. ;)

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

armoros,

Then I suggest you start - there are very good tutorials here and here and reading the Help file (at least the first few sections - Using AutoIt, Tutorials and the first couple of References) will, unsuprisingly, help you enormously. ;)

M23

Yes i must and i will..thank you Melba23 for the help and the links..

[font="verdana, geneva, sans-serif"] [/font]

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
Sign in to follow this  
Followers 0