Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Prevent grid from horizontal 'scrolling'
Message
 
To
25/05/2005 15:39:36
Dragan Nedeljkovich (Online)
Now officially retired
Zrenjanin, Serbia
General information
Forum:
Visual FoxPro
Category:
Classes - VCX
Miscellaneous
Thread ID:
01017496
Message ID:
01017768
Views:
21
Dragan,
Thanks for the fix. This has been bugging me since I moved from VFP 6 to 8.
>
>
n=0
>FOR i=1 to this.ColumnCount-1
>	n = n + this.Columns[i].width
>endfor
>* bittest is there in case we don't have a vertical scrollbar
>this.Columns[this.columncount].width=this.width-n   ;
>   -iif(bittest(this.ScrollBars,1),Sysmetric(5)+this.ColumnCount,0)-4
>
>
>The sysmetric() call gives the width of the vertical scrollbar. And 4 is the rule-of-thumb amount for the grid's own border, padding etc whatever it may have.
Beer is proof that God loves man, and wants him to be happy. - Benjamin Franklin
John J. Henn
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform