Diese Seite mit anderen teilen ...

Informationen zum Thema:
Forum:
WinDev Forum
Beiträge im Thema:
8
Erster Beitrag:
vor 8 Jahren, 2 Monaten
Letzter Beitrag:
vor 8 Jahren, 2 Monaten
Beteiligte Autoren:
Andres Sanchez, Fabrice Harari, Jan de Bruin, Jimbo

WD12 - How to catch an event on a Table header

Startbeitrag von Andres Sanchez am 07.07.2009 02:36

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

Antworten:

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

von Jan de Bruin - am 07.07.2009 06:49

Re: WD12 - How to catch an event on a Table header SOLVED

Jan:

Thanks a lot

Andres Sanchez

von Andres Sanchez - am 07.07.2009 15:42
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

von Andres Sanchez - am 08.07.2009 17:15
Hi, you can find out any Event numbers by yourself, just filter events of the Table and show relevant event numbers with Info(..) .. Guenter


von Jimbo - am 08.07.2009 17:26
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

von Andres Sanchez - am 09.07.2009 00:01
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



von Fabrice Harari - am 09.07.2009 10:33

Re: WD12 - How to catch an event on a Table header SOLVED

Fabrice:

It worked fine.

Thanks

Andres Sanchez

von Andres Sanchez - am 09.07.2009 15:46
Zur Information:
MySnip.de hat keinen Einfluss auf die Inhalte der Beiträge. Bitte kontaktieren Sie den Administrator des Forums bei Problemen oder Löschforderungen über die Kontaktseite.
Falls die Kontaktaufnahme mit dem Administrator des Forums fehlschlägt, kontaktieren Sie uns bitte über die in unserem Impressum angegebenen Daten.