Alphabetical index of format codes

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.

%ac

Accelerator key format.

%ap

Absolute positioning of next control

%aw

Attach window format.

%bc

Button colour format - specifies the colour of the next %bt (Button) button.

%bd

Specifies all four window borders individually.

%bf

Switch to bold font.

%bg

Background colour format.

%bh

Bubble help format.

%bi

Supply an icon for the next button.

%bk

Allow a right mouse click to be used on the next %bt (Button) button.

%bm

Bitmap format draws a bitmap.

%bn

Split button.

%br

Bar format - draws a horizontal or vertical bar which is partially filled with a user-selected colour.

%bt

Button format - defines a button with text.

%bv

Hierarchical tree-view, alternative to %tv (Tree Control).

%bx

Adds a raised grey bar to a tool bar.

%ca

Caption format - defines the title of a dialog box.

%cb

Box close format - closes a box opened by %ob (Open Box).

%cc

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.

%ch

Child window format - inserts a child window.

%cl

Displays a colour palette.

%cn

Centring format - forces everything which follows it, up to the next new line or form-feed character, to be centred in the window.

%co

Control option format - used to modify subsequent %rd (Edit Integer), %rf (Edit Floating Point), and %rs (Edit String) boxes.

%cu

Establishes a cursor for the next control in a format.

%cv

Control variable format.

%cw

Embeds a ClearWin window.

%dc

Establishes a default cursor for the window.

%dd

Increase/decrease button for an integer.

%de

Disables some other window while the current window is active.

%df

Increase/decrease button for a floating point value.

%dl

Allows a call-back function to be called at regular intervals via a timer.

%dp

Parameter box format.

%dr

Drag and drop.

%dw

Owner draw box format - provides owner draw boxes.

%dy

Provides a vertical displacement by a non-integral number of character depth units.

%eb

Edit box format - presents a edit box in which a text file is displayed and modified.

%el

Inserts an editable combo box.

%ep

Parameter box format.

%eq

Equation format - inserts a mathematical equation in a window.

%es

Escape format - causes the program to exit when the Escape key is pressed.

%ew

Exit Windows format - provides a call-back function which is called when the user shuts down.

%fb

Remember current font for subsequent buttons.

%fd

To set the font to the default Windows 95 font.

%ff

Form feed. Move down to below any existing controls.

%fh

Font handle - use a font created by the API function CreateFont.

%fl

Floating point limit format - specifies the lower and upper limits for subsequent %rf (Edit Floating Point) formats.

%fn

Font name format - selects a font for subsequent text.

%fp

Parameter box format.

%fr

MDI frame format - defines a frame to contain child windows attached by %aw.

%fs

File selection format - specifies the working directory and file filter for subsequent file open call-backs.

%ft

File filter format - specifies filter information for subsequent file open call-backs.

%ga

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.

%gb

Group box for use with %wi (Window designer)

%gd

Programmer's grid format - supplies a temporary grid to help with the positioning of controls.

%gf

Get font handle format.

%gi

Draws a (possibly animated/transparent) GIF image.

%gp

Get window position format - used to get the current co-ordinates of the window position.

%gr

Graphics format - provides a rectangular area for Silverfrost graphics routines.

%he

Help format - specifies the location of help information.

%ht

Hypertext document attachment.

%hw

Obtains the window handle of the format window.

%hx

Attaches a horizontal scroll bar to the next control.

%ib

Image bar - a replacement format for %tb (Bitmap Button).

%ic

Icon format - draws an icon.

%id

To identify a button..

%if

Initial focus format - specifies that the next control will have the initial focus.

%il

Integer limit format - specifies the lower and upper limits for subsequent %rd (Edit Integer) formats.

%it

Switch to italic font.

%lc

Obtain the control handle.

%ld

LED format - displays a round LED (a coloured disk with a black border).

%ln

Etched line

%ls

List box format

%lv

Listview format

%lw

Leave window open format - allows winio@ to return without closing the window that it creates.

%mb

Multi-button toolbar.

%mg

Message format - provides a call-back function for a given Windows message.

%mi

Minimise icon format - supplies the name of an icon resource to be used if the window is minimised.

%mn

Menu format - used to attach a menu to the window.

%ms

Defines a multi-selection box that stores its settings in an array. Similar to %ls (List Box (or Combo Box))

%mv

Move format - provides a call-back function that is to be called when the user moves or resizes the window.

%nc

New class name format - provides a specified class name for the application.

%nd

Never-down format - prevents controls from sliding down when sizing a window.

%nl

New line

%nr

Never-right format - prevents controls from sliding to the right when sizing a window.

%ns

Disable screen saver.

%nw

To change certain properties of an existing window..

%ob

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.

%og

Graphics format - provides a rectangular area for OpenGL graphics routines

%pb

Parameter box format.

%pd

Is used to insert a Sterling pound symbol '£' regardless of editor mode.

%pm

Supplies a popup menu so that when the right mouse button is pressed in the main window a menu appears.

%ps

Property sheet - layer windows to produce a card index style.

%pv

Pivot format - used to create a pivotal point for any subsequent re-sizing of the window.

%rb

Radio button format - defines a radio button or check box with text supplied directly.

%rd

Integer input format - creates an edit box and displays an integer that can be updated.

%re

Creates an multi-line edit box.

%rf

Floating point input format - creates an edit box and displays a floating point value that can be updated.

%rj

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.

%rm

Read message format - Provides the name of a call-back function to handle messages from another ClearWin+ application.

%rp

Relative position format - Sets the position of the next control relative to the current position.

%rs

Character string input format - creates an edit box and displays a character variable (i.e. a string) that can be updated.

%sb

Status bar.

%sc

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.

%sd

Subscript text format.

%sf

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).

%sh

Used with property sheet format.

%si

Standard icon format - defines a standard icon that is to be placed to the left of the block of text that follows the descriptor.

%sl

Produces a slider control using a floating point variable to determine its position.

%sm

System menu format.

%sp

Set window position format - used to initialise the position of the window on the screen.

%ss

Allows the settings of selected controls to be auto saved and loaded from an INI file.

%st

Variable string format - lays a string out in a field of n characters. The string is re-drawn each time the window is renewed.

%su

Superscript text format.

%sv

Allows the program to become a screen saver executable.

%sy

Style format - changes the style of a window.

%sz

Size window format.

%ta

Insert tab 8-character intervals or to predefined tab stops. See %tl (Tab Locations).

%tb

Bitmap button and toolbar format - defines a bit mapped button or a whole tool-bar.

%tc

Sets the colour of subsequent text.

%th

Bubble help in the form of a 'Tool tip'.

%ti

To provide a taskbar icon in the system tray.

%tl

Sets up tab locations for use with %ta (Next Tabstop).

%tp

Parameter box format.

%ts

Text size format - used to scale the text font size either up or down.

%tt

Textual toolbar format.

%tv

Hierarchical tree - type view

%tx

Displays an array of text in a rectangular region, defined by its parameters.

%ul

Underline text.

%up

Parameter box format.

%uw

User window allows windows code to be interfaced to ClearWin+.

%vx

Attaches a vertical scroll bar to the next control.

%wb

Web browser.

%wc

Character output.

%wd

Integer output.

%we

Floating point output in exponent form.

%wf

Floating point output in decimal form.

%wg

Floating point output in decimal or exponent form.

%wi

To allow interactive window design.

%wp

Supplies the name of a wallpaper bitmap which is used as a back drop to its contents.

%ws

Character string output.

%ww

Window control format - causes the resultant window to look like a normal application window, rather than a dialog window.

%wx

Hexadecimal integer output.

 

 

Basket
Empty
 
Copyright © 1999-2024 Silverfrost Limited