Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Moving shapes in run time
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
Programmation Orientée Object
Divers
Thread ID:
00691580
Message ID:
00691604
Vues:
32
>Hi Friends! I have a new trivia.
>
>I´m triying to build a system that uses some shapes in a container. This shapes will act like a button, changing color for diferent status, and they´ll represent a workstation. At this point, there´s no problem.
>
>But what I need to do is to allow the user to build a "map" with the location of the computers, so I need the system moves the shape to a new position inside the container and save the values for left and top for redraw the map when need it and to allow the shape to take the new position in real time. I´d tried in diferente ways and can´t move the shape, so I think I am missing something (NOO! Really? :-)).
>
>Anybody could help? THANKS IN ADVANCE!!!

Not sure what the problem is, but it should be easily done with setting Shape's Left and Top properties:

thisform.mycontainer.shape1.left = 300
thisform.mycontainer.shape1.top = 100

What exact code you are using?
Nick Neklioudov
Universal Thread Consultant
3 times Microsoft MVP - Visual FoxPro

"I have not failed. I've just found 10,000 ways that don't work." - Thomas Edison
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform