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

Xailer professional forum in English
Responder
Aguiar Costa
Mensajes: 115
Registrado: Jue Jun 01, 2006 7:21 pm

Event

Mensaje por Aguiar Costa »

Hi,
How or when are events produced ? What i want to know is if we can create
and trigger an event in our code. Or events are only triggered by windows ?
TIA.
Aguiar !!!
Avatar de Usuario
jfgimenez
Site Admin
Mensajes: 5718
Registrado: Lun Abr 06, 2015 8:48 pm
Contactar:

Event

Mensaje por jfgimenez »

Aguiar,
> How or when are events produced ?
Some of the most importants events are described here:
http://sailingwithxailer.blogspot.com/2 ... nced-xaile r-techniques-what-happen.html#links
> What i want to know is if we can create and trigger an event in our code.
> Or events are only triggered by windows ?
There are 2 types of events:
- windows events: are windows messages that are received by the Xailer's
kernel and send to the proper object via WM????? methods
- Xailer's events: are similar to any other object method, but they can be
assigned to each object individualy. See the chapter "Object oriented
programming" in the help file
And, of course, you can create your own events and use them in your own
classes.
--
Regards,
Jose F. Gimenez
José F. Giménez
[Equipo de Xailer / Xailer team]
http://www.xailer.com
http://www.xailer.info
Avatar de Usuario
jfgimenez
Site Admin
Mensajes: 5718
Registrado: Lun Abr 06, 2015 8:48 pm
Contactar:

Event

Mensaje por jfgimenez »

Aguiar,
> How or when are events produced ?
Some of the most importants events are described here:
http://sailingwithxailer.blogspot.com/2 ... nced-xaile r-techniques-what-happen.html#links
> What i want to know is if we can create and trigger an event in our code.
> Or events are only triggered by windows ?
There are 2 types of events:
- windows events: are windows messages that are received by the Xailer's
kernel and send to the proper object via WM????? methods
- Xailer's events: are similar to any other object method, but they can be
assigned to each object individualy. See the chapter "Object oriented
programming" in the help file
And, of course, you can create your own events and use them in your own
classes.
--
Regards,
Jose F. Gimenez
José F. Giménez
[Equipo de Xailer / Xailer team]
http://www.xailer.com
http://www.xailer.info
Aguiar Costa
Mensajes: 115
Registrado: Jue Jun 01, 2006 7:21 pm

Event

Mensaje por Aguiar Costa »

Jose,
> And, of course, you can create your own events and use them in your own
> classes.
That is my case...I build a class and want to create my own event to be used
by another programmer. How do i trigger that event ?? If i have a class that
creates 4 buttons in a form using some ShowButtons() method and i want an
event to be triggred after these 4 buttons are created (afeter calling
ShowButtons()), what should i do ?
It would be nice if you could show me a little code sample (it does not have
to really work), so that i can understand how to create my own events.
Thank you.
Regards
Aguiar !!!
Aguiar Costa
Mensajes: 115
Registrado: Jue Jun 01, 2006 7:21 pm

Event

Mensaje por Aguiar Costa »

Jose,
> And, of course, you can create your own events and use them in your own
> classes.
That is my case...I build a class and want to create my own event to be used
by another programmer. How do i trigger that event ?? If i have a class that
creates 4 buttons in a form using some ShowButtons() method and i want an
event to be triggred after these 4 buttons are created (afeter calling
ShowButtons()), what should i do ?
It would be nice if you could show me a little code sample (it does not have
to really work), so that i can understand how to create my own events.
Thank you.
Regards
Aguiar !!!
Avatar de Usuario
ignacio
Site Admin
Mensajes: 9440
Registrado: Lun Abr 06, 2015 8:00 pm
Ubicación: Madrid, Spain
Contactar:

Event

Mensaje por ignacio »

Aguiar
CLASS MyForm FROM TForm
EVENT MyEvent( oSender )
METHOD ShowButtons()
END CLASS
METHOD ShowButtons()
.....
.....
::MyEvent()
RETURN NIl
Regards,
"Aguiar Costa" <Aguiar.Costa@Sisbit.pt> escribió en el mensaje
news:4432508f$[email=1@ozsrvnegro.ozlan.local...]1@ozsrvnegro.ozlan.local...[/email]
> Jose,
>
>> And, of course, you can create your own events and use them in your own
>> classes.
> That is my case...I build a class and want to create my own event to be
> used by another programmer. How do i trigger that event ?? If i have a
> class that creates 4 buttons in a form using some ShowButtons() method and
> i want an event to be triggred after these 4 buttons are created (afeter
> calling ShowButtons()), what should i do ?
> It would be nice if you could show me a little code sample (it does not
> have to really work), so that i can understand how to create my own
> events.
> Thank you.
> Regards
> Aguiar !!!
>
Ignacio Ortiz de Zúñiga
[OZ Software]
https://www.ozs.es
--
[Equipo de Xailer / Xailer team]
https://www.xailer.com
NoName
Mensajes: 531
Registrado: Vie Feb 03, 2006 7:27 pm

Event

Mensaje por NoName »

Aguiar
CLASS MyForm FROM TForm
EVENT MyEvent( oSender )
METHOD ShowButtons()
END CLASS
METHOD ShowButtons()
.....
.....
::MyEvent()
RETURN NIl
Regards,
"Aguiar Costa" <Aguiar.Costa@Sisbit.pt> escribió en el mensaje
news:4432508f$[email=1@ozsrvnegro.ozlan.local...]1@ozsrvnegro.ozlan.local...[/email]
> Jose,
>
>> And, of course, you can create your own events and use them in your own
>> classes.
> That is my case...I build a class and want to create my own event to be
> used by another programmer. How do i trigger that event ?? If i have a
> class that creates 4 buttons in a form using some ShowButtons() method and
> i want an event to be triggred after these 4 buttons are created (afeter
> calling ShowButtons()), what should i do ?
> It would be nice if you could show me a little code sample (it does not
> have to really work), so that i can understand how to create my own
> events.
> Thank you.
> Regards
> Aguiar !!!
>
Aguiar Costa
Mensajes: 115
Registrado: Jue Jun 01, 2006 7:21 pm

Event

Mensaje por Aguiar Costa »

Ignacio,Jose
I read the help file but did not understand it at first...Sorry for all that
questions !!!
But it works...that is exatly what i wanted !!! Tht's a new world for me !!!
Thank you very much.
Regards
Aguiar !!!
"Ignacio Ortiz de Zúñiga" <NoName@xailer.com> escreveu na mensagem
news:443253dd$[email=1@ozsrvnegro.ozlan.local...]1@ozsrvnegro.ozlan.local...[/email]
> Aguiar
>
> CLASS MyForm FROM TForm
>
> EVENT MyEvent( oSender )
> METHOD ShowButtons()
>
> END CLASS
>
> METHOD ShowButtons()
>
> .....
> .....
> ::MyEvent()
>
> RETURN NIl
>
> Regards,
>
> "Aguiar Costa" <Aguiar.Costa@Sisbit.pt> escribió en el mensaje
> news:4432508f$[email=1@ozsrvnegro.ozlan.local...]1@ozsrvnegro.ozlan.local...[/email]
>> Jose,
>>
>>> And, of course, you can create your own events and use them in your own
>>> classes.
>> That is my case...I build a class and want to create my own event to be
>> used by another programmer. How do i trigger that event ?? If i have a
>> class that creates 4 buttons in a form using some ShowButtons() method
>> and i want an event to be triggred after these 4 buttons are created
>> (afeter calling ShowButtons()), what should i do ?
>> It would be nice if you could show me a little code sample (it does not
>> have to really work), so that i can understand how to create my own
>> events.
>> Thank you.
>> Regards
>> Aguiar !!!
>>
>
>
Aguiar Costa
Mensajes: 115
Registrado: Jue Jun 01, 2006 7:21 pm

Event

Mensaje por Aguiar Costa »

Ignacio,Jose
I read the help file but did not understand it at first...Sorry for all that
questions !!!
But it works...that is exatly what i wanted !!! Tht's a new world for me !!!
Thank you very much.
Regards
Aguiar !!!
"Ignacio Ortiz de Zúñiga" <NoName@xailer.com> escreveu na mensagem
news:443253dd$[email=1@ozsrvnegro.ozlan.local...]1@ozsrvnegro.ozlan.local...[/email]
> Aguiar
>
> CLASS MyForm FROM TForm
>
> EVENT MyEvent( oSender )
> METHOD ShowButtons()
>
> END CLASS
>
> METHOD ShowButtons()
>
> .....
> .....
> ::MyEvent()
>
> RETURN NIl
>
> Regards,
>
> "Aguiar Costa" <Aguiar.Costa@Sisbit.pt> escribió en el mensaje
> news:4432508f$[email=1@ozsrvnegro.ozlan.local...]1@ozsrvnegro.ozlan.local...[/email]
>> Jose,
>>
>>> And, of course, you can create your own events and use them in your own
>>> classes.
>> That is my case...I build a class and want to create my own event to be
>> used by another programmer. How do i trigger that event ?? If i have a
>> class that creates 4 buttons in a form using some ShowButtons() method
>> and i want an event to be triggred after these 4 buttons are created
>> (afeter calling ShowButtons()), what should i do ?
>> It would be nice if you could show me a little code sample (it does not
>> have to really work), so that i can understand how to create my own
>> events.
>> Thank you.
>> Regards
>> Aguiar !!!
>>
>
>
Responder