Jump to content

Recommended Posts

Posted

Hello readers

I am trying to change the color of the tab created by GUICtrlCreateTabItem("text"). To be clear I am not referring to the background color of the GUI in the Tab Item, but the little tab at the top that would say in this case say "text"  (I see a lot of posts relating to background color - I have seen those posts)

Alternatively I would like to change just the color of the text in the tab if not the background.

 Any help much appreciated. 

Screenshot 2021-11-19 1908492.png

  • Moderators
Posted

Thelaughedking,

This is not a trivial problem. Nothing I can find on this subject is easily portable to AutoIt (code is either .Net or some form of C) and even in those languages it looks to be a tough task. Sorry to be the bearer of bad tidings, but I think you might be looking for something outwith AutoIt's capabilities.

M23

P.S. I only put in that last sentence to spur on the real gurus here to come up with something!

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 (edited)

Since a Tab control supports the $TCS_OWNERDRAWFIXED style, this is probably the easiest place to get started. Google "TCS_OWNERDRAWFIXED site: autoitscript.com" for some examples.

Edited by LarsJ
Posted

Maybe this :

 

 

is what you are looking for ?

 

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

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