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.

EVENT management

Xailer professional forum in English
Responder
Giuseppe Bogetti
Mensajes: 281
Registrado: Vie Ago 04, 2006 4:58 pm

EVENT management

Mensaje por Giuseppe Bogetti »

Hi,
I've got a problem with the EVENT class in a class.
I've designed a control that mimic Outlook bar behaviour
which inherit from TPanel.
In the class definition I've added the following events:
EVENT OnChange( oSender, nIndex, nOldIndex )
EVENT OnClick( oSender, nGroup, nItem )
When a new group of options is selected the OnChange event is called
::OnChange( nNewIndex, nOldIndex )
When a group or single options is clicked the OnClick event is called
::OnClick( nGroupIndex, nBtnIndex )
The events are called but I only receive the first parameter as oSender and
none of the remaing parameters are passed to the event.
What am I doing wrong ?
--
Best regards,
Giuseppe Bogetti
B.G. Soft
Cuneo - Italy
Giuseppe Bogetti
Mensajes: 281
Registrado: Vie Ago 04, 2006 4:58 pm

EVENT management

Mensaje por Giuseppe Bogetti »

Il Mon, 5 Jun 2006 14:33:42 +0200, Giuseppe Bogetti ha scritto:
> Hi,
>
> I've got a problem with the EVENT class in a class.
>
> I've designed a control that mimic Outlook bar behaviour
> which inherit from TPanel.
> In the class definition I've added the following events:
>
> EVENT OnChange( oSender, nIndex, nOldIndex )
> EVENT OnClick( oSender, nGroup, nItem )
>
> When a new group of options is selected the OnChange event is called
>::OnChange( nNewIndex, nOldIndex )
>
> When a group or single options is clicked the OnClick event is called
>::OnClick( nGroupIndex, nBtnIndex )
>
> The events are called but I only receive the first parameter as oSender and
> none of the remaing parameters are passed to the event.
>
> What am I doing wrong ?
Forget about it. Renaming the events has solved everything !!!
--
Best regards,
Giuseppe Bogetti
B.G. Soft
Cuneo - Italy
Giuseppe Bogetti
Mensajes: 281
Registrado: Vie Ago 04, 2006 4:58 pm

EVENT management

Mensaje por Giuseppe Bogetti »

Il Mon, 5 Jun 2006 14:33:42 +0200, Giuseppe Bogetti ha scritto:
> Hi,
>
> I've got a problem with the EVENT class in a class.
>
> I've designed a control that mimic Outlook bar behaviour
> which inherit from TPanel.
> In the class definition I've added the following events:
>
> EVENT OnChange( oSender, nIndex, nOldIndex )
> EVENT OnClick( oSender, nGroup, nItem )
>
> When a new group of options is selected the OnChange event is called
>::OnChange( nNewIndex, nOldIndex )
>
> When a group or single options is clicked the OnClick event is called
>::OnClick( nGroupIndex, nBtnIndex )
>
> The events are called but I only receive the first parameter as oSender and
> none of the remaing parameters are passed to the event.
>
> What am I doing wrong ?
Forget about it. Renaming the events has solved everything !!!
--
Best regards,
Giuseppe Bogetti
B.G. Soft
Cuneo - Italy
Responder