Home

  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.

Graphic Objects
Drawing Primitives


  Graphic Objects

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
 
PegScalePegCircularDial
PegLinearScalePegCircularBitmapDial
PegLinearBitmapScale


  Drawing Primitives

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
CaptureCaptures an area of the screen
EndDrawEnds a sequence of drawing operations
InvalidateMake a screen region ready for drawing
ResetPaletteRestores default palette
RestoreRestore previously captured screen area
SetPaletteAllow loading custom palette
 Text and Fonts
DeleteFont   Delete font created with MakeFont
DrawTextAny color, position, font, transparent background or fill
MakeFont Create bitmapped font from vector font
TextHeightReturns height of string in current font, in pixels
TextWidthReturns width of string in current font, in pixels
 Bitmaps and Shapes
Bitmap   Draws a bitmap at the desired location
BitmapFillTiles a bitmap to fill a given area
CircleAny color outline or fill, optional fill, any outline width
CreateBitmapUsed to draw offscreen or for animations
Ellipse Any color border or fill, any outline width
LineAny width, color, orientation
PatternLineAny width, color, orientation, pattern
PlotPoint Any color
PolygonOutline and/or fill, any outline width
RectangleOutline and/or fill, any outline width
RectangleXORPerforms logical XOR operation with pixels in region
RectMoveUsed for scrolling and animation
 Position Services
GetPointerType   Returns mouse pointer type
GetXResDisplay x resolution, in pixels
GetYResDisplay y resolution, in pixels
ShowPointerHide or restore the screen mouse pointer
SetPointerSets mouse pointer position
SetPointerTypeSets mouse pointer shape


Copyright © 1996-2007

















































RTOS
TCP/IP
Graphics
File System
License
Showcase
Targets
Toolsets
Manuals
Demos
Support
What's New
Press
Newsletters
White Papers
Tools
Alliances
Dealers
Contractors
Site Map
Company
Support
Home
FAQ
Get Info