Página 1 de 1

ocx Control Events

Publicado: Mié Oct 24, 2007 8:23 pm
por Dionisis Divaris
Hello Ignacio , Jose , Josi
I have an ocx control with the following events defined in the contol class:
/* Fired when right mouse button is clicked */
EVENT RClick()
/* Fired when the browsed date is changed. */
EVENT DateChanged()
/* Fired when the selection is changed. */
EVENT SelectionChanged()
/* Fired when the focused date is changed. */
EVENT FocusChanged()
/* Occurs when the user is about to change the browsed date. */
EVENT DateChanging( uHeaderArrow, vCancel )
How can i conrol those events to make them working? I try all known ways
but nothing happens.
Any help would be apreciated.
Regards
Dionisis

ocx Control Events

Publicado: Mié Oct 24, 2007 11:12 pm
por Stephan Hennekens
Hi Dionisis,
you should define the events of the control concerned in in the
FormInitialize event of your form:
For example:
CLASS TMainForm FROM TForm
METHOD RClick()
// other events
ENDCLASS
METHOD FormInitialize( oSender ) CLASS TMainForm
WITH OBJECT ::oControl := TMyControl:New(<parent control>l)
:nAlign := alCLIENT
:Create()
:RClick := "MyControlRClick"
// other events
END
METHOD MyControlRClick()
MsgInfo("Right click")
RETURN Nil
Hope this clarifies!
Regards,
Stephan
"Dionisis Divaris" <info@sgs-soft.gr> wrote in message
news:471f8daa$[email=1@ozsrv2.ozlan.local...]1@ozsrv2.ozlan.local...[/email]
> Hello Ignacio , Jose , Josi
>
> I have an ocx control with the following events defined in the contol
> class:
> /* Fired when right mouse button is clicked */
> EVENT RClick()
>
> /* Fired when the browsed date is changed. */
> EVENT DateChanged()
>
> /* Fired when the selection is changed. */
> EVENT SelectionChanged()
>
> /* Fired when the focused date is changed. */
> EVENT FocusChanged()
>
> /* Occurs when the user is about to change the browsed date. */
> EVENT DateChanging( uHeaderArrow, vCancel )
>
> How can i conrol those events to make them working? I try all known
> ways but nothing happens.
>
> Any help would be apreciated.
>
> Regards
> Dionisis
>

ocx Control Events

Publicado: Mié Oct 24, 2007 11:12 pm
por Stephan Hennekens
Hi Dionisis,
you should define the events of the control concerned in in the
FormInitialize event of your form:
For example:
CLASS TMainForm FROM TForm
METHOD RClick()
// other events
ENDCLASS
METHOD FormInitialize( oSender ) CLASS TMainForm
WITH OBJECT ::oControl := TMyControl:New(<parent control>l)
:nAlign := alCLIENT
:Create()
:RClick := "MyControlRClick"
// other events
END
METHOD MyControlRClick()
MsgInfo("Right click")
RETURN Nil
Hope this clarifies!
Regards,
Stephan
"Dionisis Divaris" <info@sgs-soft.gr> wrote in message
news:471f8daa$[email=1@ozsrv2.ozlan.local...]1@ozsrv2.ozlan.local...[/email]
> Hello Ignacio , Jose , Josi
>
> I have an ocx control with the following events defined in the contol
> class:
> /* Fired when right mouse button is clicked */
> EVENT RClick()
>
> /* Fired when the browsed date is changed. */
> EVENT DateChanged()
>
> /* Fired when the selection is changed. */
> EVENT SelectionChanged()
>
> /* Fired when the focused date is changed. */
> EVENT FocusChanged()
>
> /* Occurs when the user is about to change the browsed date. */
> EVENT DateChanging( uHeaderArrow, vCancel )
>
> How can i conrol those events to make them working? I try all known
> ways but nothing happens.
>
> Any help would be apreciated.
>
> Regards
> Dionisis
>

ocx Control Events

Publicado: Mié Oct 24, 2007 11:49 pm
por Dionisis Divaris
Hello Stephan
Many thanks for your answer. This is the first thing that i try , but
nothing happens. Work well with xailer inherit conrols but not with third
party activex conrols.
Regards
Dionisis
Ο "Stephan Hennekens" <stephan.hennekens@wur.nl> έγραψε στο μήνυμα
news:471fb55b$[email=1@ozsrv2.ozlan.local...]1@ozsrv2.ozlan.local...[/email]
> Hi Dionisis,
>
> you should define the events of the control concerned in in the
> FormInitialize event of your form:
>
> For example:
>
> CLASS TMainForm FROM TForm
> METHOD RClick()
> // other events
> ENDCLASS
>
> METHOD FormInitialize( oSender ) CLASS TMainForm
> WITH OBJECT ::oControl := TMyControl:New(<parent control>l)
> :nAlign := alCLIENT
> :Create()
> :RClick := "MyControlRClick"
> // other events
> END
>
> METHOD MyControlRClick()
> MsgInfo("Right click")
> RETURN Nil
>
> Hope this clarifies!
>
> Regards,
> Stephan
>
>
> "Dionisis Divaris" <info@sgs-soft.gr> wrote in message
> news:471f8daa$[email=1@ozsrv2.ozlan.local...]1@ozsrv2.ozlan.local...[/email]
>> Hello Ignacio , Jose , Josi
>>
>> I have an ocx control with the following events defined in the contol
>> class:
>> /* Fired when right mouse button is clicked */
>> EVENT RClick()
>>
>> /* Fired when the browsed date is changed. */
>> EVENT DateChanged()
>>
>> /* Fired when the selection is changed. */
>> EVENT SelectionChanged()
>>
>> /* Fired when the focused date is changed. */
>> EVENT FocusChanged()
>>
>> /* Occurs when the user is about to change the browsed date. */
>> EVENT DateChanging( uHeaderArrow, vCancel )
>>
>> How can i conrol those events to make them working? I try all known
>> ways but nothing happens.
>>
>> Any help would be apreciated.
>>
>> Regards
>> Dionisis
>>
>
>

ocx Control Events

Publicado: Mié Oct 24, 2007 11:49 pm
por Xailer
Hello Stephan
Many thanks for your answer. This is the first thing that i try , but
nothing happens. Work well with xailer inherit conrols but not with third
party activex conrols.
Regards
Dionisis
Ο "Stephan Hennekens" <stephan.hennekens@wur.nl> έγραψε στο μήνυμα
news:471fb55b$[email=1@ozsrv2.ozlan.local...]1@ozsrv2.ozlan.local...[/email]
> Hi Dionisis,
>
> you should define the events of the control concerned in in the
> FormInitialize event of your form:
>
> For example:
>
> CLASS TMainForm FROM TForm
> METHOD RClick()
> // other events
> ENDCLASS
>
> METHOD FormInitialize( oSender ) CLASS TMainForm
> WITH OBJECT ::oControl := TMyControl:New(<parent control>l)
> :nAlign := alCLIENT
> :Create()
> :RClick := "MyControlRClick"
> // other events
> END
>
> METHOD MyControlRClick()
> MsgInfo("Right click")
> RETURN Nil
>
> Hope this clarifies!
>
> Regards,
> Stephan
>
>
> "Dionisis Divaris" <info@sgs-soft.gr> wrote in message
> news:471f8daa$[email=1@ozsrv2.ozlan.local...]1@ozsrv2.ozlan.local...[/email]
>> Hello Ignacio , Jose , Josi
>>
>> I have an ocx control with the following events defined in the contol
>> class:
>> /* Fired when right mouse button is clicked */
>> EVENT RClick()
>>
>> /* Fired when the browsed date is changed. */
>> EVENT DateChanged()
>>
>> /* Fired when the selection is changed. */
>> EVENT SelectionChanged()
>>
>> /* Fired when the focused date is changed. */
>> EVENT FocusChanged()
>>
>> /* Occurs when the user is about to change the browsed date. */
>> EVENT DateChanging( uHeaderArrow, vCancel )
>>
>> How can i conrol those events to make them working? I try all known
>> ways but nothing happens.
>>
>> Any help would be apreciated.
>>
>> Regards
>> Dionisis
>>
>
>

ocx Control Events

Publicado: Jue Oct 25, 2007 9:02 am
por Stephan Hennekens
Works fine here with ActiveX controls from other parties. Take a look at the
OCX sample Xailer provides. Otherwise give us more details. Which control do
you want to use BTW?
Regards,
Stephan
"Dionisis Divaris" <info@sgs-soft.gr> wrote in message
news:[email=471fbdd5@ozsrv2.ozlan.local...]471fbdd5@ozsrv2.ozlan.local...[/email]
> Hello Stephan
>
> Many thanks for your answer. This is the first thing that i try , but
> nothing happens. Work well with xailer inherit conrols but not with third
> party activex conrols.
>
> Regards
> Dionisis
>
> Ï "Stephan Hennekens" <stephan.hennekens@wur.nl> Ýãñáøå óôï ìÞíõìá
> news:471fb55b$[email=1@ozsrv2.ozlan.local...]1@ozsrv2.ozlan.local...[/email]
>> Hi Dionisis,
>>
>> you should define the events of the control concerned in in the
>> FormInitialize event of your form:
>>
>> For example:
>>
>> CLASS TMainForm FROM TForm
>> METHOD RClick()
>> // other events
>> ENDCLASS
>>
>> METHOD FormInitialize( oSender ) CLASS TMainForm
>> WITH OBJECT ::oControl := TMyControl:New(<parent control>l)
>> :nAlign := alCLIENT
>> :Create()
>> :RClick := "MyControlRClick"
>> // other events
>> END
>>
>> METHOD MyControlRClick()
>> MsgInfo("Right click")
>> RETURN Nil
>>
>> Hope this clarifies!
>>
>> Regards,
>> Stephan
>>
>>
>> "Dionisis Divaris" <info@sgs-soft.gr> wrote in message
>> news:471f8daa$[email=1@ozsrv2.ozlan.local...]1@ozsrv2.ozlan.local...[/email]
>>> Hello Ignacio , Jose , Josi
>>>
>>> I have an ocx control with the following events defined in the contol
>>> class:
>>> /* Fired when right mouse button is clicked */
>>> EVENT RClick()
>>>
>>> /* Fired when the browsed date is changed. */
>>> EVENT DateChanged()
>>>
>>> /* Fired when the selection is changed. */
>>> EVENT SelectionChanged()
>>>
>>> /* Fired when the focused date is changed. */
>>> EVENT FocusChanged()
>>>
>>> /* Occurs when the user is about to change the browsed date. */
>>> EVENT DateChanging( uHeaderArrow, vCancel )
>>>
>>> How can i conrol those events to make them working? I try all known
>>> ways but nothing happens.
>>>
>>> Any help would be apreciated.
>>>
>>> Regards
>>> Dionisis
>>>
>>
>>
>

ocx Control Events

Publicado: Jue Oct 25, 2007 9:02 am
por Stephan Hennekens
Works fine here with ActiveX controls from other parties. Take a look at the
OCX sample Xailer provides. Otherwise give us more details. Which control do
you want to use BTW?
Regards,
Stephan
"Dionisis Divaris" <info@sgs-soft.gr> wrote in message
news:[email=471fbdd5@ozsrv2.ozlan.local...]471fbdd5@ozsrv2.ozlan.local...[/email]
> Hello Stephan
>
> Many thanks for your answer. This is the first thing that i try , but
> nothing happens. Work well with xailer inherit conrols but not with third
> party activex conrols.
>
> Regards
> Dionisis
>
> Ï "Stephan Hennekens" <stephan.hennekens@wur.nl> Ýãñáøå óôï ìÞíõìá
> news:471fb55b$[email=1@ozsrv2.ozlan.local...]1@ozsrv2.ozlan.local...[/email]
>> Hi Dionisis,
>>
>> you should define the events of the control concerned in in the
>> FormInitialize event of your form:
>>
>> For example:
>>
>> CLASS TMainForm FROM TForm
>> METHOD RClick()
>> // other events
>> ENDCLASS
>>
>> METHOD FormInitialize( oSender ) CLASS TMainForm
>> WITH OBJECT ::oControl := TMyControl:New(<parent control>l)
>> :nAlign := alCLIENT
>> :Create()
>> :RClick := "MyControlRClick"
>> // other events
>> END
>>
>> METHOD MyControlRClick()
>> MsgInfo("Right click")
>> RETURN Nil
>>
>> Hope this clarifies!
>>
>> Regards,
>> Stephan
>>
>>
>> "Dionisis Divaris" <info@sgs-soft.gr> wrote in message
>> news:471f8daa$[email=1@ozsrv2.ozlan.local...]1@ozsrv2.ozlan.local...[/email]
>>> Hello Ignacio , Jose , Josi
>>>
>>> I have an ocx control with the following events defined in the contol
>>> class:
>>> /* Fired when right mouse button is clicked */
>>> EVENT RClick()
>>>
>>> /* Fired when the browsed date is changed. */
>>> EVENT DateChanged()
>>>
>>> /* Fired when the selection is changed. */
>>> EVENT SelectionChanged()
>>>
>>> /* Fired when the focused date is changed. */
>>> EVENT FocusChanged()
>>>
>>> /* Occurs when the user is about to change the browsed date. */
>>> EVENT DateChanging( uHeaderArrow, vCancel )
>>>
>>> How can i conrol those events to make them working? I try all known
>>> ways but nothing happens.
>>>
>>> Any help would be apreciated.
>>>
>>> Regards
>>> Dionisis
>>>
>>
>>
>