BUTTON_PICTURE_TARGET_IS_PICTURE

BUTTON_PICTURE_TARGET_IS_PICTURE

SENDS THE COMMANDS HEIGHT AND WIDTH TO THE PICTURES OF OBJECTS BUTTON_PICTURE

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

ACTION

The command BUTTON_PICTURE_TARGET_IS_PICTURE sends the commands HEIGHT and WIDTH to the pictures of objects BUTTON_PICTURE. Then, the commands HEIGHT and WIDTH change the size of the pictures inside the objects BUTTON_PICTURE.

SYNTAX: BUTTON_PICTURE_TARGET_IS_PICTURE

USE

  • The command BUTTON_PICTURE_TARGET_IS_PICTURE is used to change the sizes of the pictures inside the objects BUTTON_PICTURE when using the commands HEIGHT and WIDTH.

ERROR

  • None.

EXAMPLE

rem create a button_picture

button_picture 1

wait 1000

rem change the size of picture

button_picture_target_is_picture

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 2

2d_pen_color 0,0,200

2d_line 0,0,80,80

2d_line 0,80,80,0

rem give a text

caption 1,Text

wait 1000

rem change the size of object

button_picture_target_is_object

height 1,100:width 1,150

SEE ALSO

BUTTON_PICTURE

HEIGHT

WIDTH

BUTTON_PICTURE_TARGET_IS_OBJECT