Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Grid - Row and Column Resize
Message
De
27/03/2001 00:51:34
Gerry Schmitz
GHS Automation Inc.
Calgary, Alberta, Canada
 
 
À
26/03/2001 16:48:08
Information générale
Forum:
Visual FoxPro
Catégorie:
Classes - VCX
Divers
Thread ID:
00488711
Message ID:
00488835
Vues:
14
>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.
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform