GUI Help > Special > setSelFont
setSelFont
setSelFont handle gadget, handle font, color textColor
Description: Sets the font and text colour used by the selected text in a richedit gadget. If there is no selected text, the font and colour at the current cursor position will be set.
Return Value:
Parameters:
gadget | Handle of a richedit gadget
font | Handle of a font created with createFont
textColor | The colour of the text, you can use the RGB command to generate this colour.
Remarks:
See Also:
Example: (Note: You will need to include the GUI constants file for this example to work)