Introduction

Language Structure

IB Statements

File System

Comet 32 Runtime

Index

Graphics Device Interface (GDI) mnemonics

Miscellaneous Functions

Mnemonic Description
(AllowMaximize = state) Disables/enables the maximize controls on the COSW window
(PlaySound = WavFileName, flags) Plays the specified WAV file
(GetFuncResult) Requests the 32 bit (4 byte) result of the last GDI function

Metafile Functions

Mnemonic Description
(BeginMetafile = filename) Create and begin using the specified metafile
(EndMetafile = flags) End the metafile collection process by saving and/or executing the currently active metafile
(ExecuteMetafile = filename) Executes the previously saved metafile
(AutoMetafile = state) Enables/disables the automatic use of un-named metafiles

Wallpaper Functions

Mnemonic Description
(TransparentColor = QCRT color) Determines the QCRT field color that will be transparent to the underlying wallpaper
(WallpaperBitmap = filename) Creates a wallpaper (background) bitmap by tiling the specified bitmap file to fit the currently active Comet window
(WallpaperColor = Red,Green,Blue) Creates a wallpaper (background) bitmap using the specified RGB colors to fit the currently active Comet window
(WallpaperClear) Clears the wallpaper bitmap in the currently active Comet window to its original state
(WallpaperRemove) Removes the wallpaper bitmap in the currently active Comet window, restoring the window to its normal QCRT operation

Text & Font Functions

Mnemonic Description
(MapMode = Mode) Sets the current coordinate mapping mode
(SelectFont);LogFontData Selects the font specified by the LogFontData structure
(GetFontInfo = ItemCode) Returns the font information specified by ItemCode
(SetTextColor = Red,Green,Blue) Sets the current text color as specified by Red, Green, Blue
(GetTextColor) Returns the current text color
(SetBkColor = Red,Green,Blue) Sets the current background color as specified by Red, Green, Blue
(GetBkColor) Returns the current background color
(SetBkMode = Mode) Sets the background mode specified by Mode
(GetBkMode) Returns the current background mode
(SetTextAlign = Flags) Sets the text alignment mode to that specified by Flags
(GetTextAlign) Returns the current text alignment mode
(GetTextExtent);Printable Text Measures the size (width and height) of the specified Printable Text
(TextOut = X,Y);Printable Text Prints the specified Printable Text at the location specified by X and Y
(DrawText = Left,Top,Right,Bottom,Flags);Printable Text Prints the specified Printable Text into the rectangle specified by the coordinates Left, Top, Right, and Bottom using the format codes specified in Flags

Graphics and Drawing Functions

Mnemonic Description
(SelectPen = Style,Width,Red,Green,Blue) Selects the pen described by Style, Width and Red, Green, Blue
(SelectSolidBrush = Red,Green,Blue) Selects the solid brush described Red, Green, Blue
(SelectHatchBrush = Style,Red,Green,Blue) Selects the hatched brush described Style and Red, Green, Blue
(MoveTo = X,Y) Moves the current location pointer to the location specified by X and Y
(LineTo = X,Y) Draws a line using the currently selected pen from the current location pointer to the location specified by X, Y
(Ellipse = Left,Top,Right,Bottom) Draws an ellipse bound by the rectangle specified by Left, Top, Right, Bottom using the currently selected pen and brush
(Rectangle = Left, Top, Right, Bottom) Draws a the rectangle specified by Left, Top, Right, Bottom using the currently selected pen and brush
(RoundRect = Left,Top,Right,Bottom,CornerWidth,CornerHeight) Draws a rectangle with corners rounded using the ellipse specified by CornerWidth and CornerHeight at the location specified by Left, Top, Right, Bottom using the currently selected pen and brush
(DrawBitmap = Left,Top,Right,Bottom,ScaleX,ScaleY,Flags); Draws the bitmap contained in the file (.BMP/.JPG) specified in FileName in the rectangle specified by Left, Top, Right, Bottom using the format codes contained in Flags. Scaling factors can be specified in ScaleX, ScaleY
(SetROP2 = Mode) Sets the current foreground mix mode
(GetROP2) Returns the current foreground mix mode