Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Bizarre behavior with image control???
Message
 
À
Tous
Information générale
Forum:
Visual FoxPro
Catégorie:
Classes - VCX
Titre:
Bizarre behavior with image control???
Divers
Thread ID:
00213533
Message ID:
00213533
Vues:
54
Can anyone suggest a reason for the following? I have a class with an image control (stretch = 0-clip) on it. I have put several of these objects on a page which are named myObject1 through myObject16. I need to change some of the images, so I change the picture property of the specific control on the form and resize it to fit appropriately. Now here is the weird part. When I run the form the height property goes back to the original class value, which cuts off the bottom of the image, but only for myObject1 through myObject6. MyOject7 through 16 work fine. I can change the name of the object to anything other than myObject1 through 6 and it will work fine. In getting to the bottom of this I created an assign method for the height property of my image control class. I just put in a wait window to tell me when the value changed. Sure enough the value went from the new value to the value from the class, but then went back to the new value!! It worked now!! For the final quirk, I discovered that having one line of remmed out code in the assign method makes the object display properly. Remove the code from the assign method, and it goes back to cutting off the image, because the height property goes back to the original class value. (scream!!!) Sorry for this rambling, but this has bothered me for days now. Any ideas?

Marcus.
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform