<<

Contents

Search

>>

 

CHANGE_IMAGE

 

 

Function

 

 

Syntax:

CHANGE_IMAGE(<Mask Field>,<Attributes>[,<Handle>])

 

<Mask Field>

= #<MASK NUMBER>.#<MASK FIELD VARIABLE>

<Attributes>

= <STRING-EXPRESSION>

<Handle>

= <NUM-EXPRESSION>

 

 

Meaning:

Changes the image attributes of buttons and checkboxes.

 

CHANGE_IMAGE returns the following values:

 

0: no error

-1: Mask field not found

-99: Window not found

 

Attention: In Html programs 0 is returned when NOREPAINT is active.

 

Parameter:

Mask Field

Mask field whose image attributes are to be changed.

<Mask Field> has to be a button, a checkbox or a radiobutton.

 

Attributes

Structure of the attribute string.

 

The attributes must be separated by semi-colons ';' .

 

Nr.

Inhalt

1

Type of image: K/N/S/I
K = no image
N = no image
S = Standard image
I = Individual image

2

Image name, image name pressed, image name over or standard image number with image type S

3

Image position: L/M//R
L = left
M = center
R = right
O = top (only buttons)
U = bottom (only buttons)

4

Image size: O/A/T
O = Original size
A = customized
T = total

5

Text position: L/M/R
L = left
M = center
R = right
O = top (only buttons)
U = bottom (only buttons)

6

Transparent (Pushbuttons only):

J = The background of the pushbutton is tranparent.

otherwise = The background is not transparent.

7

No Border (Pushbuttons only):

J = The pushbutton has no border.

otherwise = The pushbutton has a border.

 

Handle

Window depth or handle of a split window or handle of a WINDOWCALL Window

 

Sample:

H% = CHANGE_IMAGE(#5.#BUTTON_1$,"S;3;L;A;R;N;N")

 

See also:

RESET_IMAGE

CHANGE_TOOLTIPTEXT