Graphical Keywords

In GFA-BASIC 32 graphical commands are performed directly on the form's client area. VB uses a second 'layer' to perform graphics methods like Line and Shape; they are therefore named 'controls'.

The Graphical keywords can be used on a Form and on the Printer objects.

Action Keywords GB VB6
Color Color, QBColor, ForeColor, BackColor v v
Color BkColor, RGB, _RGB, GetRValue, GetGValue, GetBValue, PALETTEINDEX, PALETTERGB v  
System colors SysCol v  
Clear screen Cls v  
DPI WinDpi v  
Pen, brush DefLine, DefFill v  
Mode and background mode DrawMode

GraphMode

v

v

v
Print Print

Locate, LocaYX, LocaXY, Print At, Vtab, Htab

v

v

v
Text DrawText, Text, TextXor, GrayText v  
Line, rectangle Line v v
(3d) Rectangles Box, Pbox, Rbox, PRBox, Box3D, Pbox3D v  
Circle, ellipse Circle, Pcircle, Ellipse, Pellipse v  
Set and get point Pset, Plot, Draw, Line, SetDraw, Point, RGBPoint, PTst v  
'Logo" drawing SetDraw, Draw, QBDraw v  
Bezier curve Curve v  
Polygon PolyLine, PolyFill v  
Scaling OffsetXY, ScaleMode, ScaleHeight, ScaleWidth, ScaleLeft, ScaleTop v v
Scaling extended ScaleMMOO, ScaleMode$, ScaleMX, ScaleMY v  
Conversion between scales Scale(), ScaleToDpi, ScaleX(), ScaleY() v  
Drag rectangle RubberBox, DragBox v  
Rectangle intersection rc_Intersect v  
Clip Clip v  
Bitmaps Get, Put, BitBlt, PatBlt, Stretch, FreeBmp v  
Fonts Font, Font To, SetFont, GetFont, Rfont, Dlg Font, _hFont, _font$, _font$=, FreeFont, DelFont v  
GDI GdiFlush v  
Himets, Pixel, Twips conversion HimetsToPixelX, HimetsToPixelY, PixelsToHimetX, PixelsToHimetY, PixelsToTwipX, PixelsToTwipY, TwipsToPixelX, TwipsToPixelY v  

See Also

Miscellaneous Keywords

OCX/OLE Keywords

Window Keywords

{Created by Sjouke Hamstra; Last updated: 06/03/2022 by James Gaite}