Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Resizing columns in a grid
Message
From
29/11/2002 19:20:03
 
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
00728199
Message ID:
00728274
Views:
20
I'm not sure you can really do what you want. As you found, the resize event doesn't fire until the user completes the resizing of the column. If I understand what you want, you'd like the column to resize as it's border is moved, rather than just having the border show the sizing that the column will achieve when the user is done.

The reason it works on the spinner, of course, is that the change of width is fired every time the spinner changes.

There might be some arcane way of getting what you want, but I can't think of one myself other than building a whole new grid system, and I wonder is it's really worth the effort.

Alan

>Is anyone aware of a way of resizing a column in a grid and as the size changes it updates a text box with the new width? The resize event fires after the user has selected the new width, whereas I would prefer the behavior where as the size gets smaller/larger the box reflects this even before the user releases the click.
>
>I've already subclassed a header in code to allow for right click functionality to produce a context menu. Would I approach this the same way, maybe detecting where the mouse pointer was somehow. I can also get the column to change size as a spinner value is changed, but this is the reverse of what I really wanted to achieve.
>
>Any help or guidance would be gratefully received.
>
>Simon Swan
>helpIT systems
Previous
Reply
Map
View

Click here to load this message in the networking platform