Maxon Developers Maxon Developers
    • Documentation
      • Cinema 4D Python API
      • Cinema 4D C++ API
      • Cineware API
      • ZBrush Python API
      • ZBrush GoZ API
      • Code Examples on Github
    • Forum
    • Downloads
    • Support
      • Support Procedures
      • Registered Developer Program
      • Plugin IDs
      • Contact Us
    • Categories
      • Overview
      • News & Information
      • Cinema 4D SDK Support
      • Cineware SDK Support
      • ZBrush 4D SDK Support
      • Bugs
      • General Talk
    • Unread
    • Recent
    • Tags
    • Users
    • Login

    ListView question

    Scheduled Pinned Locked Moved SDK Help
    2 Posts 0 Posters 290 Views
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • H Offline
      Helper
      last edited by

      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

      1 Reply Last reply Reply Quote 0
      • H Offline
        Helper
        last edited by

        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).

        1 Reply Last reply Reply Quote 0
        • First post
          Last post