show_graphic()

Purpose

Displays objects in map fields without reference to a resource file

Old Name

#define show_object show_graphic

Syntax

void pascal show_graphic(int mapnr, int fieldnr,
long object, int flags)

Parameters

int mapnr

Number of map to display object

 

int fieldnr

Number of field to display object

 

long object

Object handle

 

int flags

Specifies the position and source of the object to be displayed

 

The parameter flags may take the following values:

 

 

SHOW_ICON

Use this option if you wish to display an icon at the field position

 

SHOW_FOCUS

Use the focus position to display an icon, leaving the field available to display text

Description

The show_object function is generally similar to show_resource(), but handles the object do be displayed via a handle instead of a resource file reference.

It can be used, for example, to display an object that the application has itself created, such as a signature that has been scanned and converted to a bitmap using the Windows function CreateBitMap(). The handle returned from this call is passed as the object parameter and is in turn passed to the DP4 Terminal Manager.

Note that show_object does not destroy the object when the map is cleared.

 

See also

show_resource()