Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
RightClick On a Disabled Column
Message
De
06/02/2003 14:36:18
 
 
À
05/02/2003 19:26:35
Information générale
Forum:
Visual FoxPro
Catégorie:
Classes - VCX
Divers
Thread ID:
00749652
Message ID:
00750103
Vues:
23
>Hi all
>
>Anyway of trapping the rightclick on a disabled column within a grid? In my applications I use rightclick to call help. I can't find anyway of calling the rightclick of the column if it is disabled.
>
>Any idea?
>
>Best regards

maybe this helps:
in the forms activate event put
on key label rightmouse MyFunc()
create a function MyFunc
Func MyFunc
TmpVar = AMouseObj(a_ObjPointer)
if TmpVar > 0
   * *** mouse is over an object
   LOCAL ;
      ObjPointer
   ObjPointer = a_MouseObj(1,1)
   * *** test here for obj type and availability
   if ObjPointer.Parent.BaseClass = "Column" .and. ObjPointer.Parent.enabled = .f.
       * *** do your stuff
   endif
endif
you might have to check if the object is the current control in that column to make sure the program fires for the correct object.

something along this line hopefully works for you.
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform