Jump to content
Sign in to follow this  
Nick Duffill

Set underline without specifying font size and weight?

Recommended Posts

Nick Duffill

Is it possible to set the underline attribute on a label control, without also specifying the font size and weight? I would like them to remain as the system defaults, but apply the underline.

Best regards

Nick

Share this post


Link to post
Share on other sites
Nick Duffill

Maybe WM_SETFONT can do that (in conjuction with CreateFont) ...

Thanks Zedna, but as I understand it, the Windows Message Codes are used to handle events received from Windows. Is there a way to send a message to a control to change the font settings, apart from GUICtrlSetFont() ?

Best regards

Nick

Edited by Nick Duffill

Share this post


Link to post
Share on other sites
ResNullius

Is it possible to set the underline attribute on a label control, without also specifying the font size and weight? I would like them to remain as the system defaults, but apply the underline.

Best regards

Nick

If the label is on a gui you've crated then:

GuiCtrlSetFont($myLabel,default,default,4)

Edit: nevermind, didn't read you're whole reply to Zedna

Is there a way to send a message to a control to change the font settings, apart from GUICtrlSetFont() ?

Edited by ResNullius

Share this post


Link to post
Share on other sites
Zedna

Thanks Zedna, but as I understand it, the Windows Message Codes are used to handle events received from Windows. Is there a way to send a message to a control to change the font settings, apart from GUICtrlSetFont() ?

Best regards

Nick

Look here - for example of using WM_SETFONT

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  

×