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.

TTreeView y lCheckBoxes

Foro de Xailer profesional en español
Responder
desarrollo
Mensajes: 109
Registrado: Lun Abr 02, 2007 10:12 am

TTreeView y lCheckBoxes

Mensaje por desarrollo »

Hola,
¿Hay algún evento que se dispare al cambiar el estado del CheckBox de un
TreeView?
Quiero, por ejemplo, que al marcar el padre se marquen automáticamente los
hijos.
Saludos
Jose A. Suarez
Avatar de Usuario
ignacio
Site Admin
Mensajes: 9253
Registrado: Lun Abr 06, 2015 8:00 pm
Ubicación: Madrid, Spain
Contactar:

TTreeView y lCheckBoxes

Mensaje por ignacio »

José,
No, me temo que no lo hay, lo siento.
Estas son las notificaciones que ofrece el control:
Notification Description
TVN_BEGINDRAG Signals the start of a drag-and-drop operation.
TVN_BEGINLABELEDIT Signals the start of in-place label editing.
TVN_BEGINRDRAG Signals that the right mouse button has started a drag-and-drop operation.
TVN_DELETEITEM Signals the deletion of a specific item.
TVN_ENDLABELEDIT Signals the end of label editing.
TVN_GETDISPINFO Requests information that the tree-view control requires to display an item.
TVN_ITEMEXPANDED Signals that a parent item's list of child items was expanded or collapsed.
TVN_ITEMEXPANDING Signals that a parent item's list of child items is about to be expanded or collapsed.
TVN_KEYDOWN Signals a keyboard event.
TVN_SELCHANGED Signals that the selection has changed from one item to another.
TVN_SELCHANGING Signals that the selection is about to be changed from one item to another.
TVN_SETDISPINFO
Como puede ver no existe ninguna notificación del cambio de checkbox.
Un saludo
--
Ignacio Ortiz de Zúñiga
http://www.xailer.com
"Jose A. Suarez" <desarrollo@aseproda.com> escribió en el mensaje news:46653d87$[email=1@ozsrv2.ozlan.local...]1@ozsrv2.ozlan.local...[/email]
> Hola,
>
> ¿Hay algún evento que se dispare al cambiar el estado del CheckBox de un
> TreeView?
>
> Quiero, por ejemplo, que al marcar el padre se marquen automáticamente los
> hijos.
>
> Saludos
>
> Jose A. Suarez
>
>
--
Ignacio Ortiz de Zúñiga
[Equipo de Xailer / Xailer team]
https://www.xailer.com
desarrollo
Mensajes: 109
Registrado: Lun Abr 02, 2007 10:12 am

TTreeView y lCheckBoxes

Mensaje por desarrollo »

Gracias Ignacio.
Ya inventaré algo.
Saludos
Jose A. Suarez
"Ignacio Ortiz de Zúñiga" <NoName@xailer.com> escribió en el mensaje news:46654569$[email=1@ozsrv2.ozlan.local...]1@ozsrv2.ozlan.local...[/email]
José,
No, me temo que no lo hay, lo siento.
Estas son las notificaciones que ofrece el control:
Notification Description
TVN_BEGINDRAG Signals the start of a drag-and-drop operation.
TVN_BEGINLABELEDIT Signals the start of in-place label editing.
TVN_BEGINRDRAG Signals that the right mouse button has started a drag-and-drop operation.
TVN_DELETEITEM Signals the deletion of a specific item.
TVN_ENDLABELEDIT Signals the end of label editing.
TVN_GETDISPINFO Requests information that the tree-view control requires to display an item.
TVN_ITEMEXPANDED Signals that a parent item's list of child items was expanded or collapsed.
TVN_ITEMEXPANDING Signals that a parent item's list of child items is about to be expanded or collapsed.
TVN_KEYDOWN Signals a keyboard event.
TVN_SELCHANGED Signals that the selection has changed from one item to another.
TVN_SELCHANGING Signals that the selection is about to be changed from one item to another.
TVN_SETDISPINFO
Como puede ver no existe ninguna notificación del cambio de checkbox.
Un saludo
--
Ignacio Ortiz de Zúñiga
http://www.xailer.com
"Jose A. Suarez" <desarrollo@aseproda.com> escribió en el mensaje news:46653d87$[email=1@ozsrv2.ozlan.local...]1@ozsrv2.ozlan.local...[/email]
> Hola,
>
> ¿Hay algún evento que se dispare al cambiar el estado del CheckBox de un
> TreeView?
>
> Quiero, por ejemplo, que al marcar el padre se marquen automáticamente los
> hijos.
>
> Saludos
>
> Jose A. Suarez
>
>
--
Responder