Página 1 de 1

Event

Publicado: Mar Abr 04, 2006 11:52 am
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 !!!

Event

Publicado: Mar Abr 04, 2006 12:11 pm
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

Event

Publicado: Mar Abr 04, 2006 12:11 pm
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

Event

Publicado: Mar Abr 04, 2006 12:55 pm
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 !!!

Event

Publicado: Mar Abr 04, 2006 12:55 pm
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 !!!

Event

Publicado: Mar Abr 04, 2006 1:09 pm
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 !!!
>

Event

Publicado: Mar Abr 04, 2006 1:09 pm
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 !!!
>

Event

Publicado: Mar Abr 04, 2006 1:19 pm
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 !!!
>>
>
>

Event

Publicado: Mar Abr 04, 2006 1:19 pm
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 !!!
>>
>
>