Jump to content
Sign in to follow this  
thepip3r

GUI Tab Help.

Recommended Posts

On one of my tabs in my GUI, I have data written all over it. When I click a different tab, I can see the data from the other tab in the areas of the new tab where I don't have controls being written. Does that make sense?? In other words, when I click off the first tab, I can still see parts of it while the second tab's information is showing. I can probably get around this by placing a label on the new tab of the exact dimensions of the tab window but it's really a band-aid. Do I have some Z-index problem or is there a way to make the windows non-transparent or something? TIA.

Share this post


Link to post
Share on other sites

Heres An Example... Works 100%

Source : Tab - Example.Au3

#Include <GUIConstants.Au3> 
Opt ('GUIOnEventMode','1') 
Opt ('TrayMenuMode','1')

GUICreate ('Tab Example','200','145','-1','-1','-1','128') 
GUISetOnEvent ($GUI_EVENT_CLOSE, '_Exit') 
;=========================================
GUICtrlCreateTab ('0','0','200','145') ; Creates Tab Menu One
GUICtrlCreateTabItem ('Tab One') ; Creates Tab Item One
#Region ; Tab One Items ;
GUICtrlCreateButton ('Example One','40','65','120','25')
GUICtrlSetOnEvent ('-1','_Example_One')
GUICtrlSetFont ('-1','14','','','Arial')
#EndRegion ; Tab One Items;
;=========================================
#Region ; Tab Two Items ;
GUICtrlCreateTab ('0','0','200','145')
GUICtrlCreateTabItem ('Tab Two')
GUICtrlCreateButton ('Example Two','40','65','120','25')
GUICtrlSetOnEvent ('-1','_Example_Two')
GUICtrlSetFont ('-1','14','','','Arial')
#EndRegion ; Tab Two Items;
;=========================================
#Region ; Tab Three Items ;
GUICtrlCreateTab ('0','0','200','145')
GUICtrlCreateTabItem ('Tab Three')
GUICtrlCreateButton ('Example Three','35','65','130','25')
GUICtrlSetOnEvent ('-1','_Example_Three')
GUICtrlSetFont ('-1','14','','','Arial')
#EndRegion ; Tab Three Items;
;=========================================
GUISetState (@SW_SHOW)

While ('1')
     Sleep ('100') ; Idle Loop
WEnd
 
Func _Example_One ()
MsgBox ('0','Notice','Button Pressed : Example One','0')
EndFunc 

Func _Example_Two ()
MsgBox ('0','Notice','Button Pressed : Example Two','0')
EndFunc 

Func _Example_Three ()
MsgBox ('0','Notice','Button Pressed : Example Three','0')
EndFunc 

Func _Exit ()
TrayTip ('Notice','Exiting...','0')
Sleep ('1000')
     Exit
EndFunc

Hope This Helps :D

- John

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  

×
×
  • Create New...