Autosize = .F. Alignment is centered The Label class doesn't have IntegralHeight.
Tracy
-----Original Message----- From: ProfoxTech [mailto:profoxtech-bounces@leafe.com] On Behalf Of Richard Kaye Sent: Wednesday, July 07, 2021 3:17 PM To: profoxtech@leafe.com Subject: RE: VFP Label Height changes
Autosize? IntegralHeight?
--
rk
-----Original Message----- From: ProfoxTech profoxtech-bounces@leafe.com On Behalf Of Tracy Pearson Sent: Wednesday, July 7, 2021 2:07 PM To: profoxtech@leafe.com Subject: VFP Label Height changes
Maybe someone can tell me why this happens occasionally.
I have a base label (cLabel) in class library A. I have a container (cNavButton) containing cLabel in class library B. I have another container (cNavGroup) that will contain cNavButton also in class library B. There is a form (frm1 (based on cForm in class library A)) that has the cNavGroup and 5 cNavButtons in it. cLabel has a height set to 19. cNavButton.cLabel is default The cNavGroup.cNavButton.cLabel.Height in frm1 all show they are still default (19). Yet I have placed code in the Init event of cLabel to display the Height onto the screen and I get 17.
VFP can be so random sometimes.
My hack to get around this behavior: in cNavButton, I have placed code in cLabel.Init to see if the height is < 19 and reset the height to default.
[excessive quoting removed by server]