Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Editable grid column shifts to left
Message
From
23/02/1999 11:04:16
 
General information
Forum:
Visual FoxPro
Category:
Forms & Form designer
Miscellaneous
Thread ID:
00190116
Message ID:
00190458
Views:
12
>The sum of my column widths is 775. I set the grid width to 776, and hit tab. The grid still shifts over. I shall continue to look at this, and think that your suggestion is close, but if you have any further insights, I would appreciate them.
>
>Thanks,
>Marie

Actually, I should have been more specific. Arrange the grid width visually so that it is one pixelwider than the rightmost column's border.

to do it programmatically or in a builder, you have to use something like:

TotalColWidth = 0

FOR i = 1 TO THIS.COLUMNCOUNT
TotalColWidth = TotalColWidth + THIS.COLUMNS(i).WIDTH
ENDFOR

DeleteMarkWidth = IIF(THIS.DELETEMARK, 8,0)
RecordMarkWidth = IIF(THIS.RECORDMARK, 10, 0)
ScrollBarWidth = IIF(THIS.SCROLLBARS > 1, SYSMETRIC(7), 0)
TotalGridLineWidth = THIS.COLUMNCOUNT * THIS.GRIDLINEWIDTH
NewGridWidth = TotalColWidth + DeleteMarkWidth + RecordMarkWidth + ScrollBarWidth + TotalGridLineWidth + 2
Erik Moore
Clientelligence
Previous
Reply
Map
View

Click here to load this message in the networking platform