Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
[BUG] - PageFrame Rendering
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
Autre
Divers
Thread ID:
00784296
Message ID:
00784830
Vues:
12
Hi Garrett

I am glad someone else has seen some odd behaviour with pageframes.

I subclass my standard container class and then add my standard pageframe class to the container and set the number of pages and then add controls to the various pages. All this is done in the Class designer. At run time I create a form and use the AddObject method to add my container to the form. That is when I see the pageframe being shorter on the form than in the Class designer.

I should try creating the pageframe with all the pages and controls before I add it to the container and see what happens.

I also see a similar problem with a shape/label combination. I sometimes use a shape to provide a 3D border around a label. If I set the background color of the label to other than the standard background color and ensure the label fills the entire area of the shape then I will see a 1 to 2 pixel gap between the shape and the label on the form that does not exist in the Class Designer. This behaviour did not exist in VFP 7

Regards,
Simon







>>>>When you layout a pageframe in the class designer it is always rendered in the
>>>>live form approximately 5 pixels shorted. So to get the look you want in the live
>>>>form you must make the pageframe longer in the class designer sometimes actually
>>>>overlapping the controls below it. This makes it difficult to actually design the
>>>>class visually because it does not look the same when rendered in the instance
>>>>object.
>>>
>>>I'm not seeing this, Simon: I just created a pgf class that was 100 by 200. When I
>>>dropped it onto a form and ran it, it was still 100 by 200. The Pages within the pgf
>>>were only 196 wide: I assume there's a 2 pixel border on each side.
>>
>>Can you try putting a control on the form below the pageframe in the class designer and
>>then see if the pageframe is further away from the control when the form is initiated?
>
>Oh, that's interesting: I didn't realize that you meant to create a Form class with a pageframe on it instead of a Pageframe class on a form. When I did that, my 150-pixel-high pageframe ended up being 154 pixels, instead of shorter, which you're reporting. An editbox placed outside the pgf overlapped the pgf: an editbox put on the bottom edge of a page had space below it.
Simon White
dCipher Computing
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform