BUTTON_PICTURE_TARGET_IS_OBJECT

DIRIGE LES COMMANDES HEIGHT ET WIDTH VERS LES OBJETS BUTTON_PICTURE



ACTION

La commande BUTTON_PICTURE_TARGET_IS_OBJECT dirige les commandes HEIGHT et WIDTH vers les objets BUTTON_PICTURE. Les commandes HEIGHT et WIDTH modifient alors les dimensions des objets BUTTON_PICTURE.

C'est l'option par défaut.


SYNTAXE : BUTTON_PICTURE_TARGET_IS_OBJECT


UTILISATION


ERREUR


EXEMPLE

' créer un BUTTON_PICTURE

button_picture 1

wait 1000

' changer la taille de l'image

button_picture_target_is_picture

height 1,80:width 1,80

' dessiner une croix bleue sur fond rouge

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

' donner un texte

caption 1,"Texte"

wait 1000

' changer la taille de l'objet

button_picture_target_is_object

height 1,100:width 1,150


EN RAPPORT

BUTTON_PICTURE

HEIGHT

WIDTH

BUTTON_PICTURE_TARGET_IS_PICTURE


Content created by Jack. Updated March 07, 2025