Jump to content

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.

My Additions:- RunAs AdminDeviant Fun:- Variable Sound Volume

Link to comment
Share on other sites

Can you post an example?

" I haven't failed. I've just found 10,000 ways that won't work." Thomas Edison "You cannot help men permanently by doing for them what they could and should do for themselves." Abraham Lincoln

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

Latest Projects :- New & Improved TCP Chat

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