Página 1 de 1

Treeview Images

Publicado: Jue Jul 27, 2006 9:58 pm
por awr
Is there a way to have root elements in a treeview show an image but not in
the child elements? I can assign a TImagelist to the TreeView , but the root
*and* childs indent with a blank space for an image.

Treeview Images

Publicado: Vie Jul 28, 2006 12:18 pm
por jfgimenez
Andrew,
> Is there a way to have root elements in a treeview show an image but not
> in the child elements? I can assign a TImagelist to the TreeView , but the
> root *and* childs indent with a blank space for an image.
It's the windows behavior, AFAIK.
IF you are using a rather simple treeview, perhaps could be replaced by an
optionlist, which allow to set images to items individually.
--
Regards,
Jose F. Gimenez
http://www.xailer.com

Treeview Images

Publicado: Vie Jul 28, 2006 7:11 pm
por aross
I tried the option list which I think it a better looking solution, but I
didn't see a way to highlight the selected option. With the button style, is
there a way to alter or highlight the selected button so the user knows the
context?
I want to switch data entry screens when the user selects an option, but I
also want to have some of the same effects as a treeview. For example, the
lSingleExpand option on the Treeview control is great for collapsing all
root items but I had to program the same for option lists -- collapse all
expanded option lists in the explorer bar other than the one clicked on.
I just don't see a way to highlight the selected button item in an option
list. I can assign a pointer graphic using the OnClick event of the button
item, but I would need to cycle through the other options an assign 0 to the
other options images in the list. Maybe you have a better solution.
Thanks,
Andy
"Jose F. Gimenez" <jfgimenez@wanadoo.es> wrote in message
news:[email=44c9e46e@news.xailer.com...]44c9e46e@news.xailer.com...[/email]
> Andrew,
>
>> Is there a way to have root elements in a treeview show an image but not
>> in the child elements? I can assign a TImagelist to the TreeView , but
>> the root *and* childs indent with a blank space for an image.
>
> It's the windows behavior, AFAIK.
>
> IF you are using a rather simple treeview, perhaps could be replaced by an
> optionlist, which allow to set images to items individually.
>
>
> --
> Regards,
>
> Jose F. Gimenez
> http://www.xailer.com
>

Treeview Images

Publicado: Lun Jul 31, 2006 11:51 am
por jfgimenez
Andrew,
>I tried the option list which I think it a better looking solution, but I
>didn't see a way to highlight the selected option. With the button style,
>is there a way to alter or highlight the selected button so the user knows
>the context?
No, sorry. I've just added a note to our BTS to do it in the future.
> I want to switch data entry screens when the user selects an option, but I
> also want to have some of the same effects as a treeview. For example, the
> lSingleExpand option on the Treeview control is great for collapsing all
> root items but I had to program the same for option lists -- collapse all
> expanded option lists in the explorer bar other than the one clicked on.
>
> I just don't see a way to highlight the selected button item in an option
> list. I can assign a pointer graphic using the OnClick event of the button
> item, but I would need to cycle through the other options an assign 0 to
> the other options images in the list. Maybe you have a better solution.
No, sorry. You have to do it programatically.
--
Regards,
Jose F. Gimenez
http://www.xailer.com