Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Grid - Row and Column Resize
Message
From
27/03/2001 00:51:34
Gerry Schmitz
GHS Automation Inc.
Calgary, Alberta, Canada
 
 
To
26/03/2001 16:48:08
General information
Forum:
Visual FoxPro
Category:
Classes - VCX
Miscellaneous
Thread ID:
00488711
Message ID:
00488835
Views:
15
>Hi folks,
>
>Is there an event in a VFP grid in which a row and/or column resize event can be trapped? I have found nothing int the grid that traps these events. The column resize event is raised and can be trapped in the column object, but I need to trap it in the grid object itself.
>
>Any ideas that don't use a timer would be appreciated?
>
>Thanks,

Can you not have your Columns "delegate" to your Grid ? eg.

Add a Custom "event" to your Grid (base class):

PROC Col_Resize
LPARAMETER
...
Return



In the (subclassed) Column's Resize event, do the following:

PROC Resize
xRet = THIS.Parent.Col_Resize( )


The Grid's "Col_Resize event" is now triggered anytime a Column is resized.

The parameters and return codes are of course optional.
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform