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
>