Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
PageFrame's page SetFont causes Unknown Member error
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
Autre
Divers
Thread ID:
00863501
Message ID:
00863642
Vues:
7
Hi Anatoliy,

this is a bug ( VFP not filter the pageframe Resize event when
the pageframe object is builded )

For a pageframe this occur because:

1. when you change the font height metric of the page, the pageheight value changed and this fire a resize event on the pageframe.
2. this event occurs after form.load event, when VFP build the form objects, and then apply the page1 Object properties ( not the page class !!!!! ), but before all the Init events.
3. but the page object is build before the inner textbox object, and then
on pageframe resize event the textbox not exist.

But this bug occurs only if the pageframe height is redefined
(if you reset the pageframe height Reset to default ) the
problem disappear.

3 solution ( or more ) exists:
- put on pageframe class a flag property
resizeOn = .F.
set it to .T. on Pageframe Init
and test it on Resize event.

- define a page class with font redefinitions.

- put the page font redefinitions on the Page Init

Fabio
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform