|
Post by fidokomik on Jun 6, 2005 19:32:00 GMT -5
I have Label where font style is defined as Bold. After click on button I want to change Label.Font.Style to normal (no bold, no italic...). In APB help file is no sample. How to do this? Can you write small sample here?
|
|
|
Post by Murariu Alexandru on Jun 7, 2005 4:14:44 GMT -5
//Change to normal Label.Font.Style := Label.Font.Style - [fsBold]; or Label.Font.Style := Label.Font.Style - [fsBold, fsItalic];
//Change To Bold Label.Font.Style := Label.Font.Style + [fsBold]; //Change To Bold and Italic Label.Font.Style := Label.Font.Style + [fsBold, fsItalic];
Valid Font Styles are: fsBold The font is boldfaced. fsItalic The font is italicized. fsUnderline The font is underlined. fsStrikeOut The font is displayed with a horizontal line through it.
|
|