Sign in to follow this  
Followers 0
alfa

Declaring same font style to different variables

4 posts in this topic

GUICtrlSetFont($output1, 12, 800, "", "Comic Sans MS")
    GUICtrlSetFont($output2, 12, 800, "", "Comic Sans MS")
    GUICtrlSetFont($output3, 12, 800, "", "Comic Sans MS")
    GUICtrlSetFont($output4, 12, 800, "", "Comic Sans MS")
    GUICtrlSetFont($output5, 12, 800, "", "Comic Sans MS")
    GUICtrlSetFont($output6, 12, 800, "", "Comic Sans MS")

What can i do instead if this.

Share this post


Link to post
Share on other sites



GuisetFont() sets the default font for a GUI and all his controls...

Share this post


Link to post
Share on other sites

#3 ·  Posted (edited)

you can use GUISetFont ( 12, 800, "", "Comic Sans MS" )

or use an array :

Dim $output[7]


For $_I = 1 To UBound ( $output ) -1
   GUICtrlSetFont($output[$_I], 12, 800, "", "Comic Sans MS")
Next
Edited by wakillon

AutoIt 3.3.14.2 X86 - SciTE 3.6.0WIN 8.1 X64 - Other Example Scripts

Share this post


Link to post
Share on other sites

Thank you :unsure:

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