Macro Scheduler 15

SetDialogObjectFont

SetDialogObjectFont>Dialog_Name,Object_Name,Font_Name,Font_Size,Font_Style,Font_Color

 

Not supported in Macro Scheduler Lite.

 

Sets the font characteristics of the specified dialog object.  Sets all objects if Object_Name left blank.

 

If you are unsure of the name of the object edit the dialog in the Dialog Designer and double click on the object to see it's name.

 

Font_Style can be one of:

 

0: Normal

1: Bold

2: Italic

3: Underline

4: Strikeout

 

For a combination of font styles call SetDialogObjectFont multiple times for the same object with a different style value.  E.g. for Bold and Italic call the function twice, first with Font_Style set to 1 and then the second time set to 2.  To reset the font style to normal pass in zero.

 

Use the RGB function to create a color code. 0 is black.

 

You cannot change the color of button captions, as button caption colors are defined in the Windows theme settings in Control Panel.

 

Abbreviation: SDF

 

Example:

 

SetDialogObjectFont>Dialog1,msMemo2,Arial,8,1,0