GfxSelectStockObject
- select built-in graphic object

Low-level graphics
(AmiBroker 60)


SYNTAX GfxSelectStockObject( id )
RETURNS NOTHING
FUNCTION GfxSelectStockObject selects Windows built-in (stock) GDI object. The kind of object is defined by id argument. Possible values are as follows:
  1. WHITE_BRUSH = 0
  2. LTGRAY_BRUSH = 1
  3. GRAY_BRUSH = 2
  4. DKGRAY_BRUSH = 3
  5. BLACK_BRUSH = 4
  6. NULL_BRUSH = 5 (the same as hollow brush), HOLLOW_BRUSH = 5
  7. WHITE_PEN = 6
  8. BLACK_PEN = 7
  9. NULL_PEN = 8
  10. -
  11. OEM_FIXED_FONT = 10
  12. ANSI_FIXED_FONT = 11
  13. ANSI_VAR_FONT = 12
  14. SYSTEM_FONT = 13
  15. DEVICE_DEFAULT_FONT = 14
  16. -
  17. SYSTEM_FIXED_FONT = 16
  18. DEFAULT_GUI_FONT = 17
EXAMPLE GfxSelectPen( colorOrange, 4 );
GfxSelectStockObject( 5 ); // hollow brush
GfxCircle(100, 100, 20 );
SEE ALSO GfxSelectFont() function , GfxSelectHatchBrush() function , GfxSelectPen() function , GfxSelectSolidBrush() function

References:

The GfxSelectStockObject function is used in the following formulas in AFL on-line library:

More information:

See updated/extended version on-line.