Jump to content
Sign in to follow this  
ericire

draw a colored rectangle on a tab

Recommended Posts

colored rectangleHello,
a basic trick that does not work and I do not understand why.
I want to put a 
colored rectangle on a tab
in my tab I tried without success (nothing appears at all)

 

$GUICtrlCreateTabItem = GUICtrlCreateTabItem("Paramètres")
;cadre
$cadre1 = GUICtrlCreateGraphic($left+4, $top+4, 1162, 450,0) ; $SS_GRAYRECT, $SS_GRAYFRAME
GUICtrlSetColor($cadre1, 0xE69CFF )
GUICtrlSetBkColor($cadre1, 0xE69CFF);660066

I also tried without it, 0 as I saw in some examples, without more success
also play on the $ COLOR_RED color with the corresponding constants

Share this post


Link to post
Share on other sites

New users are not allowed to edit topics until you have a number of posts under your belt. Simply post an addendum as needed.


"Profanity is the last vestige of the feeble mind. For the man who cannot express himself forcibly through intellect must do so through shock and awe" - Spencer W. Kimball

How to get your question answered on this forum!

Share this post


Link to post
Share on other sites
On 4/2/2019 at 3:03 PM, ericire said:

yes but this label prevents to click on control GUICtrlCreateRadio for example

GUICtrlCreateLabel("", 30, 80, 50, 20)
GUICtrlSetBkColor (-1,0xFF0000)
GUICtrlSetState(-1, $GUI_DISABLE)

will work now :)

Share this post


Link to post
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
Sign in to follow this  

  • Recently Browsing   0 members

    No registered users viewing this page.

×
×
  • Create New...