Jump to content

Change the background color of TabItem control.


Go to solution Solved by mLipok,

Recommended Posts

Posted

I can not change the background color of TabItem control, can anyone help?

GUICreate("GUI TAB", 300, 200)
GUISetBkColor(0x000FF0)
GUICtrlCreateTab(10, 10, 290, 190)

GUICtrlCreateTabItem("TAB 1"); How to change background color?
GUICtrlCreateTabItem("TAB 2"); How to change background color?
GUISetState()

While 1
    $msg = GUIGetMsg()
    If $msg = $GUI_EVENT_CLOSE Then ExitLoop
WEnd
  • Solution
Posted

Signature beginning:
Please remember: "AutoIt"..... *  Wondering who uses AutoIt and what it can be used for ? * Forum Rules *
ADO.au3 UDF * POP3.au3 UDF * XML.au3 UDF * IE on Windows 11 * How to ask ChatGPT for AutoIt Codefor other useful stuff click the following button:

  Reveal hidden contents

Signature last update: 2023-04-24

Posted

@mLipok thank you for showing, in this example it was necessary to create a label to change the color of the Tab is there another way without creating a new control?

  • Moderators
Posted

Belini,

No - and that is why it is not something to do unless you really need it. :(

M23

Public_Domain.png.2d871819fcb9957cf44f4514551a2935.png Any of my own code posted anywhere on the forum is available for use by others without any restriction of any kind

Open spoiler to see my UDFs:

  Reveal hidden contents

 

Posted

I will use this way why it seems to be the best solution.

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
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...