Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Objects don't show up on class
Message
From
26/03/1998 13:35:27
Edward Crawford
City Facilities Management
Glasgow, United Kingdom
 
General information
Forum:
Visual FoxPro
Category:
Other
Miscellaneous
Thread ID:
00087339
Message ID:
00087391
Views:
35
>>>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?

Yes they are. Here is the strange that I just discovered. It I suspend the program in the .Show() method of the class and step though it, everything is displayed as it should. Also if I call MESSAGEBOX while the class is visible, the objects appear (behind the MESSAGEBOX) as they should.

Ed
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform