Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Randomly Moving Controls
Message
 
À
21/09/2000 14:16:18
Steven Dyke
Safran Seats USA
Texas, États-Unis
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Divers
Thread ID:
00418697
Message ID:
00419208
Vues:
29
>Matt,
>
>I have my container shuffleing the controls. Now the container is a 4 x 4 and has 15 controls in it which leaves a space empty. I am tring to get the code right that will move a control into the empty space when clicked only if the button is adjacent to the empty space. I am having trouble testing for a button residing to the left, top, bottom, right of a clicked button.

Create a two dimensional array where you store with a logical field which positions are filled.
Also create a property to the command button to store the postion of that button.
With this information you can do you checking.
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform