Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Error with grdFooter - Height: Exp. eval. to an illegal
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
Autre
Versions des environnements
Visual FoxPro:
VFP 9 SP1
Divers
Thread ID:
01407367
Message ID:
01407686
Vues:
41
This message has been marked as a message which has helped to the initial question of the thread.
>>See message #1199813 for details.
>
>Whew!! Your pointers really got this sorted for me thanks. This is my final for now atleast unless something slipped away to fight another day the war is over and won!!!
>
>Now the question is should I do this only for the trouble grid or at the base class level?!? Is this the most efficient way to do it?!?
>
>problemgrid.init()
>
*** 23/06/2009 set the nMinHeight based on the Window Title font size
>***            in conjunction with Height_Assign()
>***            to avoid height is illegal value error
>DO CASE
>	CASE SYSMETRIC(9) = 36
>		*** extra large font
>		THIS.nMinHeight = 24
>		
>	CASE SYSMETRIC(9) = 30
>		*** large font
>		THIS.nMinHeight = 22
>		
>	OTHERWISE
>		*** normal font
>		THIS.nMinHeight = 20
>ENDCASE
>
>
>problemgrid.height_assign()
>
LPARAMETERS vNewVal
>
>*** 23/06/2009 in conjunction with the code in Init()
>***            to avoid height is illegal value error
>THIS.HEIGHT = MAX(THIS.nMinHeight, m.vNewVal, THIS.HEADERHEIGHT)
>
>Thanks a lot

We can try it in the base grid class, I think. All other grid classes should call dodefault in Init then.
If it's not broken, fix it until it is.


My Blog
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform