xq1xq1xq1 Posted March 26, 2008 Share Posted March 26, 2008 Hi Everyone, How can I add a Grahical diviiding line on a Tab which controls are create that is created by: $tab=GUICtrlCreateTab (10,10, 600,815) $tab1=GuiCtrlCreateTabItem("One") $tab3=GuiCtrlCreateTabItem("Three") GuiCtrlCreateTabItem("") The command I am using is: GUICtrlCreateGraphic(0 + $tab_x_delta, 540 + $tab_y_delta, 600, 2) ; dividing line ;Set Color to White GUICtrlSetColor(-1, 0xffffff) Thanx Link to comment Share on other sites More sharing options...
PsaltyDS Posted March 26, 2008 Share Posted March 26, 2008 Hi Everyone,How can I add a Grahical diviiding line on a Tab which controls are create that is created by:$tab=GUICtrlCreateTab (10,10, 600,815)$tab1=GuiCtrlCreateTabItem("One")$tab3=GuiCtrlCreateTabItem("Three")GuiCtrlCreateTabItem("")The command I am using is:GUICtrlCreateGraphic(0 + $tab_x_delta, 540 + $tab_y_delta, 600, 2) ; dividing line;Set Color to WhiteGUICtrlSetColor(-1, 0xffffff)ThanxTry the examples in the help file for GuiCtrlCreateGraphic(), which only creates the rectangular graphic area of the control, and GuiCtrlSetGraphic(), which actually draws the shapes.As an alternative, GuiCtrlCreateGroup() works on tabs, too. Valuater's AutoIt 1-2-3, Class... Is now in Session!For those who want somebody to write the script for them: RentACoder"Any technology distinguishable from magic is insufficiently advanced." -- Geek's corollary to Clarke's law Link to comment Share on other sites More sharing options...
xq1xq1xq1 Posted March 26, 2008 Author Share Posted March 26, 2008 Try the examples in the help file for GuiCtrlCreateGraphic(), which only creates the rectangular graphic area of the control, and GuiCtrlSetGraphic(), which actually draws the shapes.As an alternative, GuiCtrlCreateGroup() works on tabs, too. I tried the GuiCtrlSetGraphic() as suggested. There was still no line drawn on the Tab page. I use GuiCtrlCreateGraphic() on NON-Tabbed controls and it works fine so I am not sure why GuiCtrlSetGraphic() would be required on a Tabbed Control.Could you help me understand?Thanx Link to comment Share on other sites More sharing options...
PsaltyDS Posted March 26, 2008 Share Posted March 26, 2008 I tried the GuiCtrlSetGraphic() as suggested. There was still no line drawn on the Tab page. I use GuiCtrlCreateGraphic() on NON-Tabbed controls and it works fine so I am not sure why GuiCtrlSetGraphic() would be required on a Tabbed Control.Could you help me understand?ThanxOK, I get it. You're not drawing a line, just setting the background color on a long, skinny control. Valuater's AutoIt 1-2-3, Class... Is now in Session!For those who want somebody to write the script for them: RentACoder"Any technology distinguishable from magic is insufficiently advanced." -- Geek's corollary to Clarke's law 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