Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Discard a click event in grids
Message
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
00204922
Message ID:
00204937
Views:
21
Esteban,

I added a JustResized property to my grid class. When a column's resize event fires it sets the grid's JustResized property to .T. Each header click event starts with the code:
IF THIS.Parent.Parent.JustResized
   THIS.Parent.Parent.JustResized=.T.
   RETURN
ENDIF
This ensures that the rest of the click event code won't run if the user resized the column. I'm sure you could do the same thing with the Moved event.

>Hi, When I move or resize a column in a grid, the CLICK event of the Header is fired. What to do discard it ??? Where I must put a NODEFAULT statement ????
>
>Thanks in advance!
Previous
Reply
Map
View

Click here to load this message in the networking platform