Welcome! Log In Create A New Profile

Advanced

WD12 - How to catch an event on a Table header

Posted by Andres Sanchez 
Andres Sanchez
WD12 - How to catch an event on a Table header
July 07, 2009 04:36AM
Hi:

Is it possible to catch an event (Right Click) on the header of a column of a Control Table ?

It seems it is being handled by WD, but maybe there is a way to bypass that.

Does anyone knows how ?

Thanks

Andres Sanchez



Edited 1 time(s). Last edit at 07/07/2009 04:36AM by Andres Sanchez.
Jan de Bruin
Re: WD12 - How to catch an event on a Table header
July 07, 2009 08:49AM
Hi Andres

Look at the Event statement


I use the left click on the header

Event(Procedure ,TableName, 1529)


Procedure
ColumnNumber is int = (_EVE.wParam-7)
_EVE.Return = 0


I hope this helped you ??

Jan
Andres Sanchez
Re: WD12 - How to catch an event on a Table header SOLVED
July 07, 2009 05:42PM
Jan:

Thanks a lot

Andres Sanchez
Andres Sanchez
Re: WD12 - How to catch an event on a Table header
July 08, 2009 07:15PM
Hi Again:

Event 1529

Catch the Left Click in a Table Column, but what if I want to cath a Right Click.

What will be the Event number ? Does anyone knows ?


Andres Sanchez
Jimbo
Re: WD12 - How to catch an event on a Table header
July 08, 2009 07:26PM
Hi, you can find out any Event numbers by yourself, just filter events of the Table and show relevant event numbers with Info(..) .. Guenter
Andres Sanchez
Re: WD12 - How to catch an event on a Table header
July 09, 2009 02:01AM
Guenter:

Thanks for your help, I understand every word of it. But don't know what to do.
how can I filter events on a table ?
and where and how can I catch the event numbers in order to display them with Info()

Please help

Andres Sanchez
Fabrice Harari
Re: WD12 - How to catch an event on a Table header
July 09, 2009 12:33PM
Hi Andres

- declare an event on your table with number 0 (which means all)
- in your procedure, do a trace of your first param (the event message number)

Do what yo want to trap on your table (I think right click on column header)...

Best regards

Andres Sanchez
Re: WD12 - How to catch an event on a Table header SOLVED
July 09, 2009 05:46PM
Fabrice:

It worked fine.

Thanks

Andres Sanchez
Author:

Your Email:


Subject:


Spam prevention:
Please, enter the code that you see below in the input field. This is for blocking bots that try to post this form automatically. If the code is hard to read, then just try to guess it right. If you enter the wrong code, a new image is created and you get another chance to enter it right.
Message: