Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Resizing Grid.Width
Message
 
 
To
22/12/2002 17:55:47
General information
Forum:
Visual FoxPro
Category:
Troubleshooting
Miscellaneous
Thread ID:
00735271
Message ID:
00735302
Views:
8
>Thanks Nadya,
>Yur message got me started, but I found that this works for every resize() I could think of.
>
>with Column
>  lnWidthTotal ;
>    = 3 ;
>    + IIF(.DELETEMARK,8,0) ;
>    + IIF(.RECORDMARK,10,0) ;
>    + IIF(.SCROLLBARS>1,sysmetric(5),0) ;
>    + .COLUMNCOUNT
>  for each loColumn in .Columns
>    lnWidthTotal = lnWidthTotal + loColumn.Width
>  endfor
>endwith
>
>Do you have any idea why my formula works better for me? Maybe different screen resolutions?
>
After re-reading my formula I see, that mine is incorrect. Why I use GridLineWidth*2? Should it be (.ColumnCount-1)*GridLineWidth instead? May be that's why I added some numbers like + 10 here...
If it's not broken, fix it until it is.


My Blog
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform