Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
How to trap Autofit() button
Message
 
General information
Forum:
Visual FoxPro
Category:
Visual FoxPro Beta
Miscellaneous
Thread ID:
00951253
Message ID:
00951278
Views:
9
I'm using a grid that is dynamic, it rebuilds itself and I want to set columns width just after the Autofit() method. This way the columns won't change size once the grid is regenerated.


>Luc,
>
>What do you need to do? You can prevent resizing via the AllowAutoColumnFit. Otherwise the Resize() events of the columns fire. You can also check the mouse coordinates in the grid.MouseDown and determine if they are within the autofit button boundaries.
>
>>Is there a way to trap if a user is clicking on the autofit button in a Grid?
Luc Nadeau
lnadeau@neova.ca

"the theory, it is when all is known and that nothing works. The practice, it is when all works and that nobody knows why." - Albert Einstein (Nobel of physique 1921)
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform