maqleod Posted September 18, 2005 Share Posted September 18, 2005 my gui has a background color set, I want the color inside the tab box to match it, but all I get is the default here is my code for the tab/tabitem control: Opt("GUICoordMode",0) $tab = GUICtrlCreateTab(10, 10, 195, 175) GUICtrlSetBkColor(-1,$background[1][1]) $tab1 = GUICtrlCreateTabItem("Apps") GUICtrlSetState(-1, $GUI_DEFBUTTON) $but1 = GUICtrlCreateButton ("1", 32, 40, 32, 32,$BS_ICON) GUICtrlSetImage (-1, $but1opt1[2][1]) any help would be appreciated [u]You can download my projects at:[/u] Pulsar Software Link to comment Share on other sites More sharing options...
Xavier Posted October 13, 2005 Share Posted October 13, 2005 my gui has a background color set, I want the color inside the tab box to match it, but all I get is the defaulthere is my code for the tab/tabitem control:Opt("GUICoordMode",0)$tab = GUICtrlCreateTab(10, 10, 195, 175)GUICtrlSetBkColor(-1,$background[1][1])$tab1 = GUICtrlCreateTabItem("Apps")GUICtrlSetState(-1, $GUI_DEFBUTTON)$but1 = GUICtrlCreateButton ("1", 32, 40, 32, 32,$BS_ICON)GUICtrlSetImage (-1, $but1opt1[2][1])any help would be appreciatedHello,Found in AutoIT help file, GUICtrlSetColorFunction Reference ->> RemarksOnly Label and Progress controls can currently be colored. Link to comment Share on other sites More sharing options...
quaizywabbit Posted October 13, 2005 Share Posted October 13, 2005 you can add a label to the tab item and make it the size of the tab item's client area. get the handle to the label using ControlGetHandle() , then make a child window the exact same size and position as the label, use the handle for the label as the last parameter in GuiCreate(). you can then set the background color of the child window as you wish and continue adding controls to that child window. it's a pain, but it works.....also how I make "Nested" tabs.... [u]Do more with pre-existing apps![/u]ANYGUIv2.8 Link to comment Share on other sites More sharing options...
jpm Posted October 14, 2005 Share Posted October 14, 2005 about GUICtrlSetColor: the beta is doing a wider job see docOnly Label, Checkox, Group, Radio, Edit, Input, Listview, Treeview, Graphic and Progress controls can currently be colored. Link to comment Share on other sites More sharing options...
momar33 Posted July 9, 2007 Share Posted July 9, 2007 Could you show some code for this method? When i tried it on the first of two tabs, the second tab would not show up and the background color would not show. Link to comment Share on other sites More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now