PICTURE_TOP

PICTURE_TOP N

PLACES THE PICTURE IN TOP POSITION (AND THE CAPTION IN BOTTOM POSITION) IN THE OBJECT BUTTON_PICTURE NUMBER N

  • Type: Command
  • Parameter: 1
  • Group: System Objects

ACTION

The command PICTURE_TOP N places the picture in top position (and the caption in bottom position) in the object BUTTON_PICTURE number N

SYNTAX: PICTURE_TOP N

  • N = system object number (integer or real). Must be greater than 0 and less than or equal to the allowed maximum number of system objects.

USE

  • The command PICTURE_TOP is used to places the picture in top position and the caption in bottom position in an object BUTTON_PICTURE.

ERROR

  • If number N is not a correct expression.
  • If number N exceeds the allowed maximum number of system objects.
  • If number N is less than 0.
  • If system object number N does not exist.
  • If system object number N is not of the type : BUTTON_PICTURE.

EXAMPLE

rem create a button_picture

button_picture 1

height 1,80:width 1,80

rem draw a blue cross with red background

color 1,200,0,0

2d_target_is 1

2d_pen_width 3

2d_pen_color 0,0,200

2d_line 0,0,25,25

2d_line 0,25,25,0

rem give a text

caption 1,"Text"

wait 1000

picture_bottom 1

wait 1000

picture_left 1

wait 1000

picture_right 1

wait 1000

picture_top 1

SEE ALSO

PICTURE_BOTTOM

PICTURE_LEFT

PICTURE_RIGHT