Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Moving an object around
Message
 
À
24/03/2004 15:29:41
Erick Miranda
Formata Data Business - Grupo Linx
Contagem, Brésil
Information générale
Forum:
Visual FoxPro
Catégorie:
Gestionnaire d'écran & Écrans
Divers
Thread ID:
00889390
Message ID:
00889394
Vues:
16
>Hi Timothy!
>
>>Is there a way to move a shape to another location on a form, obviously while the form is running. The form was created programatically as such
>>frmMyForm = CREATEOBJECT('Form') && Create a Form
>>frmMyForm.AddObject('SHAPEBAR','THESHAPE2')
>>I want shapebar to move to another location but I get the "can only be used within a method" when I try :
>>"With thisform.shapebar
>>Top = 150 && Specify Line control row
>> Left = 58 && Specify Line control column
>> height=42
>> width=4
>>Endw
>

>Try this:
>
>With frmMyForm.shapebar
>   .Top = 150 && Specify Line control row
>   .Left = 58 && Specify Line control column
>   .height=42
>   .width=4
>EndWith
>
>I hope this help you.

Actually, to test, I put this code in another object's click event. But however, the shapebar does not move anywhere when I changed the .left property. Hmmm?
"Build a man a fire, and he's warm for a day.
Set a man on fire, and he's warm for the rest of his life."
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform