Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Q: read-only property, the shortest implementation?
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
Classes - VCX
Divers
Thread ID:
00927230
Message ID:
00927510
Vues:
21
I'm working on set of GDI+ classes. The Image class among others contains Width and Height properties. A possible way of instantiating the Image object is by an image file. For example:
img = CreateObject("gdiplus_image", "c:\windows\forest.bmp")
A protected method loads the image and retrieves its width and height into corresponding properties.

I want these values to be available not through methods, like GetWidth and GetHeight, but through properties. They should be visible in FoxPro debugger, for example.

As well these properties should be read-only for an object instantiated from this class.
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform