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.

TreeView Save State

Xailer English public forum
Responder
awr
Mensajes: 26
Registrado: Mar Jul 25, 2006 11:16 pm

TreeView Save State

Mensaje por awr »

I want to save the state of my treeview so when the application starts, the
treeview is shown as I have it in the designer. How can I do this? Do I
programmatically have to do this? If so, what event should I program the
TreeViewItem states? The documentation lacks several of the events shown in
the designer event list.
aross
Mensajes: 24
Registrado: Vie Jul 28, 2006 1:38 am

TreeView Save State

Mensaje por aross »

I'm trying to experiment with the OnShow event to accopmlish what I want
below, but the OnShow event never seems to fire. Is the OnShow event working
or should I be placing the code in some other event on the TreeView control?
"Andrew W. Ross" <awr@jps.net> wrote in message
news:44c93f62$[email=1@news.xailer.com...]1@news.xailer.com...[/email]
>I want to save the state of my treeview so when the application starts, the
>treeview is shown as I have it in the designer. How can I do this? Do I
>programmatically have to do this? If so, what event should I program the
>TreeViewItem states? The documentation lacks several of the events shown in
>the designer event list.
>
Avatar de Usuario
jfgimenez
Site Admin
Mensajes: 5706
Registrado: Lun Abr 06, 2015 8:48 pm
Contactar:

TreeView Save State

Mensaje por jfgimenez »

Andrew,
> I'm trying to experiment with the OnShow event to accopmlish what I want
> below, but the OnShow event never seems to fire. Is the OnShow event
> working or should I be placing the code in some other event on the
> TreeView control?
The OnShow event is fired for a form when it's shown. For any child control
placed onto a form, it's fired only if it is shown from a hidden state, but
not when the container form is shown.
--
Regards,
Jose F. Gimenez
http://www.xailer.com
José F. Giménez
[Equipo de Xailer / Xailer team]
http://www.xailer.com
http://www.xailer.info
Avatar de Usuario
jfgimenez
Site Admin
Mensajes: 5706
Registrado: Lun Abr 06, 2015 8:48 pm
Contactar:

TreeView Save State

Mensaje por jfgimenez »

Andrew,
>I want to save the state of my treeview so when the application starts, the
>treeview is shown as I have it in the designer. How can I do this? Do I
>programmatically have to do this? If so, what event should I program the
>TreeViewItem states? The documentation lacks several of the events shown in
>the designer event list.
The best event where do those kind of tasks if the form's OnInitialize
event. Please, take a look at this article:
http://sailingwithxailer.blogspot.com/2 ... nced-xaile r-techniques-what-happen.html
It explains step by step how a form is created, and what events are fired
and when.
--
Regards,
Jose F. Gimenez
http://www.xailer.com
José F. Giménez
[Equipo de Xailer / Xailer team]
http://www.xailer.com
http://www.xailer.info
aross
Mensajes: 24
Registrado: Vie Jul 28, 2006 1:38 am

TreeView Save State

Mensaje por aross »

Jose,
Thanks. I had actually tried that with success but I was hoping to keep it
as part of the TreeView events -- no problemo.
I love the blog. I didn't realize you had such detailed help/tutorials
there. It's hidden below the border on the support page. But even so, I
though it was your typical user oriented blog. Good stuff! You should
promote sailingwithxailer more.
Love the product!
"Jose F. Gimenez" <jfgimenez@wanadoo.es> wrote in message
news:44c9e3ee$[email=1@news.xailer.com...]1@news.xailer.com...[/email]
> Andrew,
>
>>I want to save the state of my treeview so when the application starts,
>>the treeview is shown as I have it in the designer. How can I do this? Do
>>I programmatically have to do this? If so, what event should I program the
>>TreeViewItem states? The documentation lacks several of the events shown
>>in the designer event list.
>
> The best event where do those kind of tasks if the form's OnInitialize
> event. Please, take a look at this article:
> http://sailingwithxailer.blogspot.com/2 ... nced-xaile r-techniques-what-happen.html
>
> It explains step by step how a form is created, and what events are fired
> and when.
>
> --
> Regards,
>
> Jose F. Gimenez
> http://www.xailer.com
>
Avatar de Usuario
jfgimenez
Site Admin
Mensajes: 5706
Registrado: Lun Abr 06, 2015 8:48 pm
Contactar:

TreeView Save State

Mensaje por jfgimenez »

Andrew,
> I love the blog. I didn't realize you had such detailed help/tutorials
> there. It's hidden below the border on the support page. But even so, I
> though it was your typical user oriented blog. Good stuff! You should
> promote sailingwithxailer more.
Yes, we'll write more articles soon ;-)
> Love the product!
Thanks!
--
Regards,
Jose F. Gimenez
http://www.xailer.com
José F. Giménez
[Equipo de Xailer / Xailer team]
http://www.xailer.com
http://www.xailer.info
Responder