SRL Archive - OSR Help

Form Font Styles


smurg

2012-01-05 22:09:43

I just want to bold some text on a form and there's zero documentation.

Checked wiki.
Ctrl + Space doesn't show anything, just that it's type TFONTSTYLES

Anyone help and/or explain how to quickly look through the includes to find the record.

BraK

2012-01-06 00:51:09

Check the tutorial's in the Advanced scripting area. If you still can't get it I'll help you more when I get home tonight. It should be something like Font.style := fsBold; Call that before you call Caption for what ever you are making making on the TForm.

Coh3n

2012-01-06 01:21:45


TLabel.FontStyle := [fsBold];
Ctrl + Space and type "fs" for the fill list. :)

smurg

2012-01-06 01:29:32

From: Coh3n
Simba Code:
[LEFT]TLabel.FontStyle := [fsBold];
[/LEFT]

Ctrl + Space and type "fs" for the fill list. :)


Well if I knew it started with fs :)

Coh3n

2012-01-06 02:48:43

From: smurg
Well if I knew it started with fs :)
Yeah. :p

If you see a type you don't know the valid arguments for, just search for the letters. It's usually a pretty good guess. Like, TEdit.DragMode is a TDragMode. Ctrl + Space for "dm" and they come up.