ListView question
-
THE POST BELOW IS MORE THAN 5 YEARS OLD. RELATED SUPPORT INFORMATION MIGHT BE OUTDATED OR DEPRECATED
On 10/10/2006 at 08:09, xxxxxxxx wrote:
User Information:
Cinema 4D Version: 9.x +
Platform: Windows ; Mac ; Mac OSX ;
Language(s) : C++ ;---------
Howdy,I have a list view in my tool that shows a list of joints. When I select one of them in the list, it makes that one active in the OM and visa versa when I select one of them in the OM it makes that one active in the list.
Now my question is, when the list is long to where it has a scroll bar on the side, is it possible to force the scroll bar down to where the active list element is? As it is now, if I select a joint in the OM and it is way down in the list, I have to manually scroll the bar down until the highlighted element appears in the ListView.
It's not an important thing, but it would be nice if I could get it to automatically scroll down to show the selected element in the list when a joint is selected in the OM.
Of course I would only want this to be forced once at the moment a change in OM selection is detected. So, it would need to work something like:
"If the newly selected element is not visible in the listview window, scroll the listview window to the postion of the newly selected element."Is this possible with ListView?
Adios,
Cactus Dan -
THE POST BELOW IS MORE THAN 5 YEARS OLD. RELATED SUPPORT INFORMATION MIGHT BE OUTDATED OR DEPRECATED
On 10/10/2006 at 14:29, xxxxxxxx wrote:
The TreeViewCustomGui in R9 has a new call MakeVisible() which does this, but SimpleListView/GeListView does not. With the TreeViewCustomGui, you can even get the GeUserArea and use its ScrollArea() method (though it would be more work).
As far as I know, it isn't possible for a listview. You can fake a listview with a treeview, but it does require more setup (as you are aware).