Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Trouble with Top and Left Assign Methods
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
Classes - VCX
Divers
Thread ID:
00630359
Message ID:
00630389
Vues:
21
This message has been marked as a message which has helped to the initial question of the thread.
Bill,

>Everything works great when the command button is on a form, however when it is on a toolbar and the toolbar inits I got an error message 'Property TOP is readonly'.

That's what I tried to do in VFP7 some time ago. At the beginning I thought this was a great idea. Until I got to the same problems concerning toolbars. I then created methods like SetLeft(), SetTop(), etc. Instead of using the properties directly, my resizer users the according methods. The methods then check their nMinLeft, nMinHeight, ... properties and set the size of the control accordingly.

I didn't find any way of doing this with assign methods. The only way would be to have special controls for use in toolbars, but that way didn't seem like the better way to me.

Regards,
Armin

Armin Neudert
Regional Director (Stuttgart) of German FoxPro User Group dFPUG

MCP for Visual FoxPro

Expert/Editor of the VFP section in the German Codezone community portal
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform