 |
GUI Elements
|
The KwikPeg Library includes a number of commonly required
drawing components from which your application GUI can be created.
Many of these components are optional and, if not used, will not even
be present in your final system.
The following lists summarize some,
but not all, of the KwikPeg drawing objects (sometimes called widgets)
which are at your disposal.
 |
KwikPeg Control Objects
|
 |
PegBitmapButton |
 |
 |
| PegCheckBox |
 |
| PegGroup |
 |
| PegIcon |
 |
| PegRadioButton |
 |
| PegProgressBar |
 |
| PegSlider |
 |
| PegSpinButton |
 |
| PegStatusBar |
 |
| PegTitle |
 |
PegVScroll
 |
PegTextButton
 |
PegHScroll
 |
 |
Menu and Toolbar Controls
(Examples) |
 |
PegMenu | PegToolBar |
| PegMenuBar | PegToolBarPanel |
| PegMenuButton |
| |
 |
Window Objects
(Examples) |
 |
PegAnimationWindow | PegProgressWindow |
| PegComboBox | PegSpreadSheet |
| PegDecoratedWindow | PegTable |
| PegDialog | PegTextBox |
| PegEditBox | PegTreeNode |
| PegHorzList | PegTreeView |
| PegList | PegVertList |
| PegMessageWindow | PegWindow |
| PegNotebook |
| |
 |
Charts
(Examples) |
 |
PegChart | PegLineChart |
| PegStripChart | PegMultiLineChart |
| |
 |
Lights, Dials and Scales
(Examples) |
 |
PegLight | PegDial |
| PegColorLight | PegFiniteDial |
| PegBitmapLight | PegFiniteBitmapDial |
| |
| PegScale | PegCircularDial |
| PegLinearScale | PegCircularBitmapDial |
| PegLinearBitmapScale |
The KwikPeg Library provides a wide range of drawing services from which to
choose. Many of the services are optional and, if not used, will not even
be present in your final system.
While KwikPeg applications rely primarily on KwikPeg class library
objects for window and control drawing, it is often useful to perform
custom drawing. For this reason all KwikPeg drawing primitives can be
invoked at any time by your application. The following lists summarize
some, but not all, of the KwikPeg drawing primitives which are at
your disposal.
 |
KwikPeg System Control Services |
 |
BeginDraw |
|
Begins a sequence of drawing operations |
| Capture | Captures an area of the screen |
| EndDraw | Ends a sequence of drawing operations |
| Invalidate | Make a screen region ready for drawing |
| ResetPalette | Restores default palette |
| Restore | Restore previously captured screen area |
| SetPalette | Allow loading custom palette |
 |
 |
Text and Fonts |
 |
DeleteFont |
|
Delete font created with MakeFont |
| DrawText | Any color, position, font, transparent background or fill |
| MakeFont | Create bitmapped font from vector font |
| TextHeight | Returns height of string in current font, in pixels |
| TextWidth | Returns width of string in current font, in pixels |
 |
 |
Bitmaps and Shapes |
 |
Bitmap |
|
Draws a bitmap at the desired location |
| BitmapFill | Tiles a bitmap to fill a given area |
| Circle | Any color outline or fill, optional fill, any outline width |
| CreateBitmap | Used to draw offscreen or for animations |
| Ellipse | Any color border or fill, any outline width |
| Line | Any width, color, orientation |
| PatternLine | Any width, color, orientation, pattern |
| PlotPoint | Any color |
| Polygon | Outline and/or fill, any outline width |
| Rectangle | Outline and/or fill, any outline width |
| RectangleXOR | Performs logical XOR operation with pixels in region |
| RectMove | Used for scrolling and animation |
 |
 |
Position Services |
 |
GetPointerType |
|
Returns mouse pointer type |
| GetXRes | Display x resolution, in pixels |
| GetYRes | Display y resolution, in pixels |
| ShowPointer | Hide or restore the screen mouse pointer |
| SetPointer | Sets mouse pointer position |
| SetPointerType | Sets mouse pointer shape |
 |
|