Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
AddObject and pageframe
Message
From
27/01/2005 14:44:34
 
 
To
27/01/2005 14:40:38
General information
Forum:
Visual FoxPro
Category:
Forms & Form designer
Miscellaneous
Thread ID:
00981384
Message ID:
00981389
Views:
32
>>I have a pageframe with no pages. I have the following code in INIT method of the form:
>>
>>SET PROCEDURE TO classes.fxp ADDITIVE
>>This.pgfLabels.AddObject('Page1', 'PageObject')
>>
>>Here is a class definition:
>>
>>DEFINE CLASS PageObject AS Page
>> Caption = '1.15 X 1.5'
>> PROCEDURE mClick
>> ENDPROC
>>ENDDEFINE
>>
>>When form runs I dont see the page untill I click on it. What am I missing?
>
>You have to set the page visible = .t. and you have to set the pageframe's activepage = 1.

activepage = 1 did the trick. Thanks
Previous
Reply
Map
View

Click here to load this message in the networking platform