WireLess Studio Widgets Developer's Guide |
This method creates a font that can be later referenced by its id. Almost all the widgets allow the modification of it's font (See WStForm::SetFont for more information).
VARIANT_BOOL CreateCustomFont(SHORT usId, SHORT usHeight, VARIANT_BOOL bBold, VARIANT_BOOL bItalic, VARIANT_BOOL bUnderlined, LPCTSTR sFaceName, SHORT usAlignment);
On success, CreateCustomFont returns TRUE, FALSE otherwise. To get extended information, call WStError::GetLastErrorCode.
On a WS_BUTTON the use of the alignment WS_CENTER has the same effect as using the alignment WS_LEFT.
If the given font face name is not found, the mobile unit uses the first font that match the other given attributes.
Every time this method is called a transaction is sent to the mobile unit, so the creation of multiple fonts can take a few seconds.
using WirelessStudioOleWidgets; WStFactory oFactory = new WStFactory(); oFactory.CreateCustomFont(3, 14, true, false, false, "Courier New",(short)WSFontAlignment.WS_LEFT);
Public wsForm As New WStForm Public wsFactory As New WStFactory ...
wsFactory.CreateCustomFont 3, 11, True, False, False, "Times New Roman", WS_LEFT wsFactory.CreateCustomFont 4, 16, False, True, True, "Tahoma", WS_RIGHT wsFactory.CreateCustomFont 5, 16, False, False, False, "Courier New", WS_CENTER ...
WStWidget::SetFont | LoadExternalIcon
WStWiget class reference | WStForm class reference | WStFactory class reference | WStError class reference
WireLess Studio by SofToGo S.A. | Visit our site www.softogo.com | Contact us help@softogo.com |