Jump to content

Adding Graphics Line to Tab


Recommended Posts

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

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

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.

:)

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

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

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

OK, 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

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