Página 1 de 1

TreeviewItem events how to?

Publicado: Mar Jun 12, 2007 5:50 pm
por Gejza Horvath
Guys,
I would like to process some things, when the TreeViewItem checkbox status is changed, but
nothing about it. The only way is the TTreeView:OnClick(oSender) method, but the oSender
is the treeview object. I need to know, which item was changed. Any idea?
Gejza

TreeviewItem events how to?

Publicado: Mar Jun 12, 2007 5:55 pm
por ignacio
Gejza,
I am afraid the Windows API for that control does not have any message for
that operation.
Sorry
--
Ignacio Ortiz de Zúñiga
http://www.xailer.com
"Gejza Horvath" <_hsoftkn@nextra.sk> escribió en el mensaje
news:[email=466ec122@ozsrv2.ozlan.local...]466ec122@ozsrv2.ozlan.local...[/email]
> Guys,
>
> I would like to process some things, when the TreeViewItem checkbox status
> is changed, but nothing about it. The only way is the
> TTreeView:OnClick(oSender) method, but the oSender is the treeview object.
> I need to know, which item was changed. Any idea?
>
> Gejza
>

TreeviewItem events how to?

Publicado: Lun Jun 18, 2007 9:13 pm
por Gejza Horvath
Ignacio,
I need to change the lChecked state for all the items, when the parent item's check state
is changed. This event is not implemented directly in API, but I found a solution in
Visual Basic at http://vbnet.mvps.org/index.html?code/c ... eckbox.htm. I'm not
familiar with VB. Can you implement this behaviour in the standard TTreeView class, or
help me to translate this into xHarbour?
Gejza
"Ignacio Ortiz de Zúñiga" <NoName@xailer.com> pí¹e v diskusním pøíspìvku
news:466ec207$[email=1@ozsrv2.ozlan.local...]1@ozsrv2.ozlan.local...[/email]
> Gejza,
>
> I am afraid the Windows API for that control does not have any message for that
> operation.
>
> Sorry
>
> --
> Ignacio Ortiz de Zúñiga
> http://www.xailer.com
>
>
> "Gejza Horvath" <_hsoftkn@nextra.sk> escribió en el mensaje
> news:[email=466ec122@ozsrv2.ozlan.local...]466ec122@ozsrv2.ozlan.local...[/email]
>> Guys,
>>
>> I would like to process some things, when the TreeViewItem checkbox status is changed,
>> but nothing about it. The only way is the TTreeView:OnClick(oSender) method, but the
>> oSender is the treeview object. I need to know, which item was changed. Any idea?
>>
>> Gejza
>>
>
>
>

TreeviewItem events how to?

Publicado: Lun Jun 18, 2007 9:26 pm
por Gejza Horvath

TreeviewItem events how to?

Publicado: Mié Jun 20, 2007 12:01 am
por Stephan Hennekens
Hi Gejza,
why not try to use Microsoft TreeView Control 6.0 (SP6)
PROPERTY cCLSID INIT "MSComctlLib.TreeCtrl.2"
it has an event for checkboxes
/* Occurs when Checkboxes = True and a Node object is checked/unchecked. */
EVENT NodeCheck( @uNode )
Regards,
Stephan
PS
In the Xailer menu select Component --> ActiveX and see if this control is
installed on your machine.
"Gejza Horvath" <_hsoftkn@nextra.sk> wrote in message
news:4676dcab$[email=1@ozsrv2.ozlan.local...]1@ozsrv2.ozlan.local...[/email]
> Another source:
>
> http://support.microsoft.com/kb/261289
>
>
> Gejza
>
>

TreeviewItem events how to?

Publicado: Mié Jun 20, 2007 9:16 am
por ignacio
Gejza,
Done. It will be available on next release. BTW, the Microsoft code was just
a very bad script on how to do the job, as usual. :-(
Regards,
"Gejza Horvath" <_hsoftkn@nextra.sk> escribió en el mensaje
news:4676dcab$[email=1@ozsrv2.ozlan.local...]1@ozsrv2.ozlan.local...[/email]
> Another source:
>
> http://support.microsoft.com/kb/261289
>
>
> Gejza
>
>

TreeviewItem events how to?

Publicado: Mié Jun 20, 2007 5:52 pm
por Gejza Horvath
Thanks, I'm waiting the next release .....
Gejza
"Ignacio Ortiz de Zúñiga" <NoName@xailer.com> pí¹e v diskusním pøíspìvku
news:[email=4678d43b@ozsrv2.ozlan.local...]4678d43b@ozsrv2.ozlan.local...[/email]
> Gejza,
>
> Done. It will be available on next release. BTW, the Microsoft code was just a very bad
> script on how to do the job, as usual. :-(
>
> Regards,
>
> "Gejza Horvath" <_hsoftkn@nextra.sk> escribió en el mensaje
> news:4676dcab$[email=1@ozsrv2.ozlan.local...]1@ozsrv2.ozlan.local...[/email]
>> Another source:
>>
>> http://support.microsoft.com/kb/261289
>>
>>
>> Gejza
>>
>>
>
>
>