Jump to content

Recommended Posts

Posted

Code example:

$font="Comic Sans MS"
$Input_1 = GuiCtrlCreateInput("", 8, 26, 84, 20)
$Group_2 = GuiCtrlCreateGroup("Search buckets", 2, 2, 176, 111)
$font1 = GUICtrlSetFont($group_2, 8.5,400, "",$font)
$Input_3 = GuiCtrlCreateInput("", 8, 52, 84, 20)
$font2 = GUICtrlSetFont($Input_3, 9, 400, "",$font)
$Input_4 = GuiCtrlCreateInput("", 8, 78, 84, 20)
$font3 = GUICtrlSetFont($Input_4, 9,400, "",$font)
$Label_5 = GuiCtrlCreateLabel("Incident", 99, 29, 45, 15)
$font4 = GUICtrlSetFont($Label_5, 8.5,400, "",$font)
$Label_6 = GuiCtrlCreateLabel("Request", 99, 55, 41, 13)
$font5 = GUICtrlSetFont($Label_6, 8.5,400, "",$font)
$Label_7 = GuiCtrlCreateLabel("Change orders", 99, 81, 71, 17)
$font6 = GUICtrlSetFont($Label_7, 8.5,400, "",$font)

How do I make it so I can set the font only once for the entire GUI instead of repeating it for each item?

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
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...