Página 1 de 1

ColumnHeader RClick

Publicado: Lun Ago 07, 2006 6:30 pm
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

ColumnHeader RClick

Publicado: Lun Ago 07, 2006 7:07 pm
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

ColumnHeader RClick

Publicado: Lun Ago 07, 2006 7:07 pm
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

ColumnHeader RClick

Publicado: Mar Ago 08, 2006 9:50 am
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

ColumnHeader RClick

Publicado: Mar Ago 08, 2006 9:50 am
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

ColumnHeader RClick

Publicado: Mar Ago 08, 2006 11:36 am
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

ColumnHeader RClick

Publicado: Mar Ago 08, 2006 11:36 am
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

ColumnHeader RClick

Publicado: Mar Ago 08, 2006 1:43 pm
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
>
>

ColumnHeader RClick

Publicado: Mar Ago 08, 2006 1:43 pm
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
>
>