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.

TreeviewItem events how to?

Xailer English public forum
Responder
Gejza Horvath
Mensajes: 281
Registrado: Mar Ago 15, 2006 1:50 pm

TreeviewItem events how to?

Mensaje 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
Avatar de Usuario
ignacio
Site Admin
Mensajes: 9447
Registrado: Lun Abr 06, 2015 8:00 pm
Ubicación: Madrid, Spain
Contactar:

TreeviewItem events how to?

Mensaje 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
>
Ignacio Ortiz de Zúñiga
[OZ Software]
https://www.ozs.es
--
[Equipo de Xailer / Xailer team]
https://www.xailer.com
Gejza Horvath
Mensajes: 281
Registrado: Mar Ago 15, 2006 1:50 pm

TreeviewItem events how to?

Mensaje 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
>>
>
>
>
Gejza Horvath
Mensajes: 281
Registrado: Mar Ago 15, 2006 1:50 pm

TreeviewItem events how to?

Mensaje por Gejza Horvath »

Stephan Hennekens
Mensajes: 305
Registrado: Jue Nov 30, 2006 12:17 am

TreeviewItem events how to?

Mensaje 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
>
>
Avatar de Usuario
ignacio
Site Admin
Mensajes: 9447
Registrado: Lun Abr 06, 2015 8:00 pm
Ubicación: Madrid, Spain
Contactar:

TreeviewItem events how to?

Mensaje 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
>
>
Ignacio Ortiz de Zúñiga
[OZ Software]
https://www.ozs.es
--
[Equipo de Xailer / Xailer team]
https://www.xailer.com
Gejza Horvath
Mensajes: 281
Registrado: Mar Ago 15, 2006 1:50 pm

TreeviewItem events how to?

Mensaje 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
>>
>>
>
>
>
Responder