Dear David,
summarized: as Big Brother would say: it is by design.
(Like built-in-machine-slowdoner in every MS Win version)
bb
>Bela,
>
>I think the issue is that VFP doesn't set the width property of am AutoSize label until the label is first painted on the screen. I have had to delay any method code that uses the .Width until very late (like Form.Activate()). You might be able to use the UIEnable event for your purpose.
>
>>sublassed label control, with AutoSize set .t.
>>Put it on a non active (non visible) page of a visible pageframe.
>>
>>Setting the caption of this label, its size won't change untill the page - containing this label -, become active.
>>
>>You can check this only programatically! (Don't forget, when you click to this page, the label will resized automatically!)
Précédent
Suivant
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