In order for this site to work correctly we need to store a small file (called a cookie) on your computer. Most every site in the world does this, however since the 25th of May 2011, by law we have to get your permission first. Please abandon the forum if you disagree.

Para que este foro funcione correctamente es necesario guardar un pequeño fichero (llamado cookie) en su ordenador. La mayoría de los sitios de Internet lo hacen, no obstante desde el 25 de Marzo de 2011 y por ley, necesitamos de su permiso con antelación. Abandone este foro si no está conforme.

ColumnHeader RClick

Xailer professional forum in English
Responder
Ingo Junge-Herrmann
Mensajes: 339
Registrado: Lun Jul 02, 2007 7:17 pm

ColumnHeader RClick

Mensaje por Ingo Junge-Herrmann »

Hi,
the right click on the column header triggers the TBrowse-
OnContextMenu-event too.

Is there a workaround to prevent this behaviour?
Thanks in advance
Ingo
Giuseppe Bogetti
Mensajes: 281
Registrado: Vie Ago 04, 2006 4:58 pm

ColumnHeader RClick

Mensaje por Giuseppe Bogetti »

Il 7 Aug 2006 18:30:50 +0200, Ingo Junge-Herrmann ha scritto:
Ingo,
> Hi,
>
> the right click on the column header triggers the TBrowse-
> OnContextMenu-event too.
>
> Is there a workaround to prevent this behaviour?
>
use the :OnHeaderRClick of the column and simply return Nil
--
Best regards,
Giuseppe Bogetti
B.G. Soft
Cuneo - Italy
Giuseppe Bogetti
Mensajes: 281
Registrado: Vie Ago 04, 2006 4:58 pm

ColumnHeader RClick

Mensaje por Giuseppe Bogetti »

Il 7 Aug 2006 18:30:50 +0200, Ingo Junge-Herrmann ha scritto:
Ingo,
> Hi,
>
> the right click on the column header triggers the TBrowse-
> OnContextMenu-event too.
>
> Is there a workaround to prevent this behaviour?
>
use the :OnHeaderRClick of the column and simply return Nil
--
Best regards,
Giuseppe Bogetti
B.G. Soft
Cuneo - Italy
Ingo Junge-Herrmann
Mensajes: 339
Registrado: Lun Jul 02, 2007 7:17 pm

ColumnHeader RClick

Mensaje por Ingo Junge-Herrmann »

Guiseppe,
thanks for answering. But I don't want to install my own event-method, I
want to keep the standard header-method to select/unselect columns in the
browse.
The problem is, when the header-right-click-popup is closed after check/uncheck
a column the OnContextMenu-event of the browse is triggered and my defined
method is called too.
Regards
Ingo
Giuseppe Bogetti <orangeREMOVEMEsocks@bgsoft.it> wrote:
>Il 7 Aug 2006 18:30:50 +0200, Ingo Junge-Herrmann ha scritto:
>
>Ingo,
>> Hi,
>>
>> the right click on the column header triggers the TBrowse-
>> OnContextMenu-event too.
>>
>> Is there a workaround to prevent this behaviour?
>>
>use the :OnHeaderRClick of the column and simply return Nil
>
>--
>Best regards,
>
>Giuseppe Bogetti
>B.G. Soft
>Cuneo - Italy
Ingo Junge-Herrmann
Mensajes: 339
Registrado: Lun Jul 02, 2007 7:17 pm

ColumnHeader RClick

Mensaje por Ingo Junge-Herrmann »

Guiseppe,
thanks for answering. But I don't want to install my own event-method, I
want to keep the standard header-method to select/unselect columns in the
browse.
The problem is, when the header-right-click-popup is closed after check/uncheck
a column the OnContextMenu-event of the browse is triggered and my defined
method is called too.
Regards
Ingo
Giuseppe Bogetti <orangeREMOVEMEsocks@bgsoft.it> wrote:
>Il 7 Aug 2006 18:30:50 +0200, Ingo Junge-Herrmann ha scritto:
>
>Ingo,
>> Hi,
>>
>> the right click on the column header triggers the TBrowse-
>> OnContextMenu-event too.
>>
>> Is there a workaround to prevent this behaviour?
>>
>use the :OnHeaderRClick of the column and simply return Nil
>
>--
>Best regards,
>
>Giuseppe Bogetti
>B.G. Soft
>Cuneo - Italy
_support_
Mensajes: 146
Registrado: Lun Abr 10, 2006 1:29 pm

ColumnHeader RClick

Mensaje por _support_ »

Ingo,
Please could you check the BTS sample. It seems is working correctly. When
you click on the column Header the column selection menu is triggered and
not the Browse contextual menu.
Regards,
"Ingo Junge-Herrmann" <[email=XPRO-0031BA74-01@10.0.0.11]XPRO-0031BA74-01@10.0.0.11[/email]> escribió en el mensaje
news:44d76aba$[email=1@news.xailer.com...]1@news.xailer.com...[/email]
>
> Hi,
>
> the right click on the column header triggers the TBrowse-
> OnContextMenu-event too.
>
> Is there a workaround to prevent this behaviour?
>
> Thanks in advance
>
> Ingo
_support_
Mensajes: 146
Registrado: Lun Abr 10, 2006 1:29 pm

ColumnHeader RClick

Mensaje por _support_ »

Ingo,
Please could you check the BTS sample. It seems is working correctly. When
you click on the column Header the column selection menu is triggered and
not the Browse contextual menu.
Regards,
"Ingo Junge-Herrmann" <[email=XPRO-0031BA74-01@10.0.0.11]XPRO-0031BA74-01@10.0.0.11[/email]> escribió en el mensaje
news:44d76aba$[email=1@news.xailer.com...]1@news.xailer.com...[/email]
>
> Hi,
>
> the right click on the column header triggers the TBrowse-
> OnContextMenu-event too.
>
> Is there a workaround to prevent this behaviour?
>
> Thanks in advance
>
> Ingo
Ingo Junge-Herrmann
Mensajes: 339
Registrado: Lun Jul 02, 2007 7:17 pm

ColumnHeader RClick

Mensaje por Ingo Junge-Herrmann »

Ignacio,
yes now I have understand the meaning of the lines
IF !oSender:SelectCellFromPoint( nPosX, nPosY )
return nil
ENDIF
Thanks for the tip.
Ingo
"Ignacio Ortiz de Zúñiga" <_support_@xailer.com> wrote:
>Ingo,
>
>Please could you check the BTS sample. It seems is working correctly. When
>you click on the column Header the column selection menu is triggered and
>not the Browse contextual menu.
>
>Regards,
>
>"Ingo Junge-Herrmann" <[email=XPRO-0031BA74-01@10.0.0.11]XPRO-0031BA74-01@10.0.0.11[/email]> escribió en el mensaje
>news:44d76aba$[email=1@news.xailer.com...]1@news.xailer.com...[/email]
>>
>> Hi,
>>
>> the right click on the column header triggers the TBrowse-
>> OnContextMenu-event too.
>>
>> Is there a workaround to prevent this behaviour?
>>
>> Thanks in advance
>>
>> Ingo
>
>
Ingo Junge-Herrmann
Mensajes: 339
Registrado: Lun Jul 02, 2007 7:17 pm

ColumnHeader RClick

Mensaje por Ingo Junge-Herrmann »

Ignacio,
yes now I have understand the meaning of the lines
IF !oSender:SelectCellFromPoint( nPosX, nPosY )
return nil
ENDIF
Thanks for the tip.
Ingo
"Ignacio Ortiz de Zúñiga" <_support_@xailer.com> wrote:
>Ingo,
>
>Please could you check the BTS sample. It seems is working correctly. When
>you click on the column Header the column selection menu is triggered and
>not the Browse contextual menu.
>
>Regards,
>
>"Ingo Junge-Herrmann" <[email=XPRO-0031BA74-01@10.0.0.11]XPRO-0031BA74-01@10.0.0.11[/email]> escribió en el mensaje
>news:44d76aba$[email=1@news.xailer.com...]1@news.xailer.com...[/email]
>>
>> Hi,
>>
>> the right click on the column header triggers the TBrowse-
>> OnContextMenu-event too.
>>
>> Is there a workaround to prevent this behaviour?
>>
>> Thanks in advance
>>
>> Ingo
>
>
Responder