Sign in to follow this  
Followers 0
jercfd

$SS_CENTER and $SS_BLACKFRAME styles

5 posts in this topic

i am getting some problems with using both the $SS_CENTER and $SS_BLACKFRAME styles with labels in my gui. The $SS_BLACKFRAME is always above everything for some reason

$H = GUICtrlCreateLabel("1" & @LF & "H", 10, 10, 30, 40, BitOr($SS_CENTER,$SS_BLACKFRAME))
GUICtrlSetBkColor($H, 0xa0ffa0)

Share this post


Link to post
Share on other sites



What you want? Create rectangle label with text and black border?

Share this post


Link to post
Share on other sites

I want a label with a black border and text centered and have a certain background color.

Share this post


Link to post
Share on other sites

I too am having the same problem. Is there a solution?

Share this post


Link to post
Share on other sites

I too am having the same problem. Is there a solution?

The easiest way I can think of to get a border round a label is to make another label bigger by twice the border width, and set it's style to $WS_CLIPSIBLINGS. You can easily change the colour of the 'border' label to make it flash for attention if you want or hide it.

Serial port communications UDF Includes functions for binary transmission and reception.printing UDF Useful for graphs, forms, labels, reports etc.Add User Call Tips to SciTE for functions in UDFs not included with AutoIt and for your own scripts.Functions with parameters in OnEvent mode and for Hot Keys One function replaces GuiSetOnEvent, GuiCtrlSetOnEvent and HotKeySet.UDF IsConnected2 for notification of status of connected state of many urls or IPs, without slowing the script.

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  
Followers 0