Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Objects don't show up on class
Message
 
À
26/03/1998 13:05:45
Edward Crawford
City Facilities Management
Glasgow, Royaume Uni
Information générale
Forum:
Visual FoxPro
Catégorie:
Autre
Divers
Thread ID:
00087339
Message ID:
00087382
Vues:
31
>>Hi Ed,
>>
>>The label and image that are in your form class, are they in the same class library as your form class?
>>
>>>I have a class that is based on a form. The form has two objects. A label and an image.
>>>
>>>At the beginning of my program I create an instance of the form:
>>>
>>>oDisplayMessage = CREATEOBJECT("DisplayMessage")
>>>
>>>At some point in the program, I assign a value to the label and show the form:
>>>
>>>oDisplayMessage.lblMessage.Caption = "Checking Number"
>>>oDisplayMessage.Show()
>>>
>>>The form is displayed, but there is noting in it, no label or image. Both visible properties are set to .T.
>>>
>>>Does anybody have an idea of what is happening?
>>>
>>>Ed
>
>Colin:
>
>The form comes from a form library, and the image and label objects come from my subclassed base class library.
>
>Ed

Ed,

I'm not completely sure of the accuracy of this statement, but here goes: When you created an instance of your label and image the base class and class library are in appropriate properties. You then saved this form as a class to a different class library. I'm assuming that this new form class needs your subclassed base class library for the image and label contained in it. Are both class libraries included in your project?
Colin Magee
Team Leader, Systems Development
Metroland Media Group Ltd.
Mississauga, Ontario, Canada

cmagee@metroland.com

Never mistake having a career with having a life.
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform