On Time RTOS-32 Documentation
Welcome
RTTarget-32
RTKernel-32
RTFiles-32
RTIP-32
RTPEG-32
RTPEG-32 Programming Manual
Introduction
Overview
Programming with RTPEG-32
Application Program Structure
Rules Of Memory Ownership
Creating PegThings
Deleting/Removing PegThings
Obtaining a Pointer to PegPresentationManager
Finding an Object's Parent
Finding an Object's Children
Status Flags
Style Flags
Determining the Position of an Object
Using Object Types
Using Object IDs
Messages
Overriding the Message() Method
Drawing to the Screen
Overriding the Draw() Method
Drawing to Memory
Using PegTimer
Viewports
Fonts
Default Fonts
The Vector Font
Outlined Fonts
Anti-Aliased Fonts
Scrolling
Screen Drivers
Demo Programs
Utility Programs
RTPEG-32 Reference Manual
RTUSB-32
|
Default Fonts
Custom fonts can always be used through method SetFont(). To make a font a default font, use static member method SetDefaultFont or class PegTextThing:
static void SetDefaultFont(const UCHAR uIndex, PegFont * pFont);
The function sets a default font for an application and not just for one particular object. Parameter uIndex specifies for which purpose the given font is the new default:
Index |
Purpose |
PEG_TITLE_FONT |
Titles |
PEG_MENU_FONT |
Menus |
PEG_TBUTTON_FONT |
Text Buttons |
PEG_RBUTTON_FONT |
Radio Buttons |
PEG_CHECKBOX_FONT |
Check Boxes |
PEG_PROMPT_FONT |
Prompts |
PEG_STRING_FONT |
String |
PEG_TEXTBOX_FONT |
Text Boxes |
PEG_GROUP_FONT |
Groups |
PEG_ICON_FONT |
Icons |
PEG_CELL_FONT |
Spreadsheet Cells |
PEG_HEADER_FONT |
Spreadsheet Headers |
PEG_TAB_FONT |
Tab Control Labels |
PEG_MESGWIN_FONT |
Message Windows |
PEG_TREEVIEW_FONT |
Tree View |
Fonts
The Vector Font
|