Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
CGridList strange behavior.
Message
From
18/04/2002 11:04:32
Jason Mesches
Ocean Systems Engineering Corporation
Carlsbad, California, United States
 
 
To
17/04/2002 12:09:39
General information
Forum:
Visual FoxPro
Category:
The Mere Mortals Framework
Miscellaneous
Thread ID:
00645436
Message ID:
00646359
Views:
10
PMFJI Igor,
We have the same situation where we dynamically add data-intensive pages to our pageframes dynamically as the user moves to each page.

First, cut and paste your container into a new class (e.g. IgorsFormpg2Controls)

Next, add this code to Page2.Activate():
IF TYPE('This.IgorsFormPg2Controls') # 'O'
   This.AddObject('IgorsFormPg2Controls', 'IgorsFormPg2Controls')
   WITH This.IgorsFormPg2Controls
      **Change Top and Left values to suit your needs!
      .Left = 1
      .Top = 1

      **You may need to set Visible and TabOrder properties here as well.
   ENDWITH
ENDIF 
This will add the control the first time the user selects the page, without interfering with the z-order of your other page controls.

Let me know if I hit this one in the eye, too. (I really think that version of the saying is better!)
---J

>All it was is that on the form I have a container with few controls. In design time it is below the PageFrame but on the form Init() I am bringing it back to the Page Frame to be displayed on the second page and it covers cGridList up to first 4 records!
>Is there any way I could use Send To Back and Bring Up Front in the run time? Probably not.
>Thank you for your time and help Kevin.
>Best Regards.
>Igor
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform