Jump to content
Sign in to follow this  
van_renier

Multiple styles per label/button/etc?

Recommended Posts

van_renier

Is it possible to combine different styles on the same label/button/edit/etc? :)

I'd like the text centered: $SS_CENTER

And to have a black border: $SS_BLACKFRAME

I've tried having them using the following syntax, but it fails to accomplish desired results:

$Label = GUICtrlCreateLabel ( "Agents", 5, 5, 9, 9, $SS_CENTER & $SS_BLACKFRAME)

Any Ideas?

Van Renier

vanrenier AT hotmail . com

Share this post


Link to post
Share on other sites
van_renier

$Label = GUICtrlCreateLabel ( "Agents", 5, 5, 9, 9, BitOR($SS_CENTER, $SS_BLACKFRAME) )

<{POST_SNAPBACK}>

Thanks, Larry!

Share this post


Link to post
Share on other sites
van_renier

$Label = GUICtrlCreateLabel ( "Agents", 5, 5, 9, 9, BitOR($SS_CENTER, $SS_BLACKFRAME) )

<{POST_SNAPBACK}>

Larry,

When I use that syntax, the text is no longer visible within.

(the above X,Y, and sizes are examples, not absolute)

without both styles, the text shows, but with the styles they don't .

I even increased the dimensions of the control/label to ensure it has enough room.

Any suggestions?

Van

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  

×