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
Voir le fil de ce thread
Voir le fil de ce thread à partir de ce message seulement
Voir tous les messages de ce thread
Voir tous les messages de ce thread à partir de ce message seulement