In this section:
The following table provides a list and summary of the special format codes. Details are given in Input and output Hypertext windows. A reference guide is presented in Format code reference.
Accelerator key format. |
|
Absolute positioning of next control |
|
Attach window format. |
|
Button colour format - specifies the colour of the next %bt (Button) button. |
|
Specifies all four window borders individually. |
|
Switch to bold font. |
|
Background colour format. |
|
Bubble help format. |
|
Supply an icon for the next button. |
|
Allow a right mouse click to be used on the next %bt (Button) button. |
|
Bitmap format draws a bitmap. |
|
Split button. |
|
Bar format - draws a horizontal or vertical bar which is partially filled with a user-selected colour. |
|
Button format - defines a button with text. |
|
Hierarchical tree-view, alternative to %tv (Tree Control). |
|
Adds a raised grey bar to a tool bar. |
|
Caption format - defines the title of a dialog box. |
|
Box close format - closes a box opened by %ob (Open Box). |
|
Closure control format - provides a link to a call-back function by which the user controls the action to be taken when a window is closed. |
|
Child window format - inserts a child window. |
|
Displays a colour palette. |
|
Centring format - forces everything which follows it, up to the next new line or form-feed character, to be centred in the window. |
|
Control option format - used to modify subsequent %rd (Edit Integer), %rf (Edit Floating Point), and %rs (Edit String) boxes. |
|
Establishes a cursor for the next control in a format. |
|
Control variable format. |
|
Embeds a ClearWin window. |
|
Establishes a default cursor for the window. |
|
Increase/decrease button for an integer. |
|
Disables some other window while the current window is active. |
|
Increase/decrease button for a floating point value. |
|
Allows a call-back function to be called at regular intervals via a timer. |
|
Parameter box format. |
|
Drag and drop. |
|
Owner draw box format - provides owner draw boxes. |
|
Provides a vertical displacement by a non-integral number of character depth units. |
|
Edit box format - presents a edit box in which a text file is displayed and modified. |
|
Inserts an editable combo box. |
|
Parameter box format. |
|
Equation format - inserts a mathematical equation in a window. |
|
Escape format - causes the program to exit when the Escape key is pressed. |
|
Exit Windows format - provides a call-back function which is called when the user shuts down. |
|
Remember current font for subsequent buttons. |
|
To set the font to the default Windows 95 font. |
|
Form feed. Move down to below any existing controls. |
|
Font handle - use a font created by the API function CreateFont. |
|
Floating point limit format - specifies the lower and upper limits for subsequent %rf (Edit Floating Point) formats. |
|
Font name format - selects a font for subsequent text. |
|
Parameter box format. |
|
MDI frame format - defines a frame to contain child windows attached by %aw. |
|
File selection format - specifies the working directory and file filter for subsequent file open call-backs. |
|
File filter format - specifies filter information for subsequent file open call-backs. |
|
Gang format - enables radio buttons and/or bitmap buttons to be ganged together so that if one is switched on the others are switched off. |
|
Group box for use with %wi (Window designer) |
|
Programmer's grid format - supplies a temporary grid to help with the positioning of controls. |
|
Get font handle format. |
|
Draws a (possibly animated/transparent) GIF image. |
|
Get window position format - used to get the current co-ordinates of the window position. |
|
Graphics format - provides a rectangular area for Silverfrost graphics routines. |
|
Help format - specifies the location of help information. |
|
Hypertext document attachment. |
|
Obtains the window handle of the format window. |
|
Attaches a horizontal scroll bar to the next control. |
|
Image bar - a replacement format for %tb (Bitmap Button). |
|
Icon format - draws an icon. |
|
To identify a button.. |
|
Initial focus format - specifies that the next control will have the initial focus. |
|
Integer limit format - specifies the lower and upper limits for subsequent %rd (Edit Integer) formats. |
|
Switch to italic font. |
|
Obtain the control handle. |
|
LED format - displays a round LED (a coloured disk with a black border). |
|
Etched line |
|
List box format |
|
Listview format |
|
Leave window open format - allows winio@ to return without closing the window that it creates. |
|
Multi-button toolbar. |
|
Message format - provides a call-back function for a given Windows message. |
|
Minimise icon format - supplies the name of an icon resource to be used if the window is minimised. |
|
Menu format - used to attach a menu to the window. |
|
Defines a multi-selection box that stores its settings in an array. Similar to %ls (List Box (or Combo Box)) |
|
Move format - provides a call-back function that is to be called when the user moves or resizes the window. |
|
New class name format - provides a specified class name for the application. |
|
Never-down format - prevents controls from sliding down when sizing a window. |
|
New line |
|
Never-right format - prevents controls from sliding to the right when sizing a window. |
|
Disable screen saver. |
|
To change certain properties of an existing window.. |
|
Box open format - defines the top left hand corner of a rectangular box into which subsequent objects are to be placed until a corresponding %cb (Close Box) format is encountered. |
|
Graphics format - provides a rectangular area for OpenGL graphics routines |
|
Parameter box format. |
|
Is used to insert a Sterling pound symbol '£' regardless of editor mode. |
|
Supplies a popup menu so that when the right mouse button is pressed in the main window a menu appears. |
|
Property sheet - layer windows to produce a card index style. |
|
Pivot format - used to create a pivotal point for any subsequent re-sizing of the window. |
|
Radio button format - defines a radio button or check box with text supplied directly. |
|
Integer input format - creates an edit box and displays an integer that can be updated. |
|
Creates an multi-line edit box. |
|
Floating point input format - creates an edit box and displays a floating point value that can be updated. |
|
Right justifying format - forces everything which follows it, up to the next new line or form-feed character, to be right justified in the window. A window margin, if any, is still applied. |
|
Read message format - Provides the name of a call-back function to handle messages from another ClearWin+ application. |
|
Relative position format - Sets the position of the next control relative to the current position. |
|
Character string input format - creates an edit box and displays a character variable (i.e. a string) that can be updated. |
|
Status bar. |
|
Start-up call-back. Causes a call-back to be called once when a window is opened - useful for drawing initial %gr (Graphics Region) data. |
|
Subscript text format. |
|
Standard font format - resets to default text attributes after use of any combination of %bf (Bold Font), %it (Italic), %ul (Underlined), %fn (Font), and %ts (Text Size). |
|
Used with property sheet format. |
|
Standard icon format - defines a standard icon that is to be placed to the left of the block of text that follows the descriptor. |
|
Produces a slider control using a floating point variable to determine its position. |
|
System menu format. |
|
Set window position format - used to initialise the position of the window on the screen. |
|
Allows the settings of selected controls to be auto saved and loaded from an INI file. |
|
Variable string format - lays a string out in a field of n characters. The string is re-drawn each time the window is renewed. |
|
Superscript text format. |
|
Allows the program to become a screen saver executable. |
|
Style format - changes the style of a window. |
|
Size window format. |
|
Insert tab 8-character intervals or to predefined tab stops. See %tl (Tab Locations). |
|
Bitmap button and toolbar format - defines a bit mapped button or a whole tool-bar. |
|
Sets the colour of subsequent text. |
|
Bubble help in the form of a 'Tool tip'. |
|
To provide a taskbar icon in the system tray. |
|
Sets up tab locations for use with %ta (Next Tabstop). |
|
Parameter box format. |
|
Text size format - used to scale the text font size either up or down. |
|
Textual toolbar format. |
|
Hierarchical tree - type view |
|
Displays an array of text in a rectangular region, defined by its parameters. |
|
Underline text. |
|
Parameter box format. |
|
User window allows windows code to be interfaced to ClearWin+. |
|
Attaches a vertical scroll bar to the next control. |
|
Web browser. |
|
Character output. |
|
Integer output. |
|
Floating point output in exponent form. |
|
Floating point output in decimal form. |
|
Floating point output in decimal or exponent form. |
|
To allow interactive window design. |
|
Supplies the name of a wallpaper bitmap which is used as a back drop to its contents. |
|
Character string output. |
|
Window control format - causes the resultant window to look like a normal application window, rather than a dialog window. |
|
Hexadecimal integer output. |