Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
RightClick On a Disabled Column
Message
From
06/02/2003 14:36:18
 
 
To
05/02/2003 19:26:35
General information
Forum:
Visual FoxPro
Category:
Classes - VCX
Miscellaneous
Thread ID:
00749652
Message ID:
00750103
Views:
22
>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.
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform