|
ds_SetStyleSheet |
|---|
Because stylesheets have new formats starting with 4D 6.8.1 (to handle Mac OS X and Windows XP) the routine accepts 2 differents syntaxes, changing only by the number of expected parameters:
Under 4D 6.7:| ds_SetStyleSheet (name; newName; macFontName; macFontSize; macFontFace; ntFontName; ntFontSize; ntFontFace; winFontName; winFontSize; winFontFace) <- errorCode | |||
|---|---|---|---|
| Parameter | Type | Description | |
| -> | Name | String | Style sheet to modify |
| -> | newName | String | New name for the style sheet |
| -> | macFontName | String | Mac font name |
| -> | macFontSize | Integer | Mac font size |
| -> | macFontFace | Integer | Mac font face |
| -> | ntFontName | String | WinNT font name |
| -> | ntFontSize | Integer | WinNT font size |
| -> | ntFontFace | Integer | WinNT font face |
| -> | winFontName | String | Win98 font name |
| -> | winFontSize | Integer | Win98 font size |
| -> | winFontFace | Integer | Win98 font face |
| <- | errorCode | Long Integer | Error Code (0 = no error) |
| ds_SetStyleSheet (name; newName; macFontName; macFontSize; macFontFace; ntFontName; ntFontSize; ntFontFace; osxFontName; osxFontSize; osxFontFace; xpFontName; xpFontSize; xpFontFace) <- errorCode | |||
|---|---|---|---|
| Parameter | Type | Description | |
| -> | Name | String | Style sheet to modify |
| -> | newName | String | New name for the style sheet |
| -> | macFontName | String | Mac font name |
| -> | macFontSize | Integer | Mac font size |
| -> | macFontFace | Integer | Mac font face |
| -> | ntFontName | String | WinNT font name |
| -> | ntFontSize | Integer | WinNT font size |
| -> | ntFontFace | Integer | WinNT font face |
| -> | osxFontName | String | Mac OS X font name |
| -> | osxFontSize | Integer | Mac OS X font size |
| -> | osxFontFace | Integer | Mac OS X font face |
| -> | xpFontName | String | Windows XP font name |
| -> | xpFontSize | Integer | Windows XP font size |
| -> | xpFontFace | Integer | Windows XP font face |
| <- | errorCode | Long Integer | Error Code (0 = no error) |
This routines changes a style sheet. .
"Special fonts"
Under 4D 6.7 only (it seems that 4D 6.8.2 has a bug on this and it is the current version at the time DynamicStructure is released), you can set the font to "System font", "Application font", ... by using a special char as the font name:
| Desired font | Use |
|---|---|
| System font | Char (1) |
| Application font | Char (2) |
|
System small font |
Char (2) |