Object Controls
Mnemonic Processing  
  Prior
 

In order to trap and handle key mnemonics generated from your application, an ODC Server can contain a property 'Mnemonics that contains the object ID for a mnemonic processor.   The system invokes this mnemonic processor when encountering any of the following mnemonics:

Mnemonic

Method call

Description

'FRAME'

'Frame(x1,y1,x2,y2,wide,ttl$)

Create a Frame

'PICTURE'

'Picture(x1,y1,x2,y2,path$,mode)

Display a picture

'TEXT'

'Text(x1,y1,x2,y2.txt$,atr$)

Display text.   If only one x/y co-ordinate given X2 and Y2 will be zero.

'FONT'

'Font(fnt$, sz, atr$, angle)

Set current font.

'CAPTION'

'Caption(ttl$)

Set caption line text

'OPTION'

'Option(opt$, value$)

Set option value.

''IMAGE'(n$)

''Image(n$)

Set current image name

'IMAGE'(DELETE n$)

'ImageDelete(n$)

Delete name image

'IMAGE'(ENABLE n$)

'ImageEnable(n$)

Enable/show image.

'IMAGE'(DISABLE n$)

'ImageDisable(n$)

Disable/hide image

'BEEP'

'Beep(sound$)

Play sound

'COLOUR'

'Colour(clr$)

Set foreground colour

'_COLOUR'

'_Colour(clr$)

Set Background colour

'CS'

'ClearScreen( )

Clear the screen and delete all graphics

'DO'

'DropObjects(c,l,w,h)

Drop all objects within specified area.   This mnemonic is generally sent when changed folder tabs.

When processing any of the above methods, a non-zero return value indicates that the mnemonic should not be sent to the terminal.   A return value of zero or no method present causes the normal mnemonic processing to take place.

  Prior