BUTTON_PICTURE_TARGET_IS_OBJECT

BUTTON_PICTURE_TARGET_IS_OBJECT

DIRIGE LES COMMANDES HEIGHT ET WIDTH VERS LES OBJETS BUTTON_PICTURE

  • Type: Commande
  • Paramètre: 0
  • Groupe: Objets Système

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

  • La commande BUTTON_PICTURE_TARGET_IS_OBJECT est utilisée pour pouvoir modifier les dimensions des objets BUTTON_PICTURE en applicant ensuite les commandes HEIGHT et WIDTH.

ERREUR

  • Rien.

EXEMPLE

rem créer un button_picture

button_picture 1

wait 1000

rem changer la taille de l'image

button_picture_target_is_picture

height 1,80:width 1,80

rem 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

rem donner un texte

caption 1,"Texte"

wait 1000

rem 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