Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Randomly Moving Controls
Message
 
À
20/09/2000 15:02:54
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:
00418701
Vues:
40
>How can I shuffle a set of command buttons(15) in a container. No two buttons can occupy the same coordinates. The coordinates have to be LEFT(2,32,62,92) TOP(2,32,62,92). Something similar to the puzzle in Fox 2.6. Thanks!

Set up an array of coordinates and make that a property of the container. MyArray(15,3)
1 - .top
2 - .left
3 - assigned

Set the container to default visible = .F. In the container's init, randomly assign the values from MyArray to each button until each element has been used. Use a FOR... ENDFOR to scan through the buttons.
I try to stay online, to get better information.
I try to get away from the office once in a while..
But they KEEP... PULLING.. ME.. BACK.. IN!!!
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform