CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 4 of 4
  1. #1
    Join Date
    May 2000
    Location
    Langesund, Telemark in Norway!
    Posts
    292

    Question CListCtrl smooth scroll and touch-behavior?

    Hi

    Does anyone have experience of making the CListCtrl function like listview on eg Android/iPhones?

    I managed to get the smoothscroll for CListCtrl to work pretty good, but I'm challenged with the other touch parts, animation etc...

    Are there any available controls out there I could use instead?
    ==========================
    Lars Werner aka Large
    http://lars.werner.no/
    ==========================

  2. #2
    Join Date
    Sep 2004
    Location
    Holland (land of the dope)
    Posts
    4,123

    Re: CListCtrl smooth scroll and touch-behavior?

    As a non-adroid/iPhone user... do you have a example of what the android/iPhone listcontrol looks like ?

  3. #3
    Join Date
    Apr 2000
    Location
    Belgium (Europe)
    Posts
    4,626

    Re: CListCtrl smooth scroll and touch-behavior?

    The windows listcontrol is smooth scrolling in almost every mode, except for report mode which is "line mode" appearance.

    I'm guessing you want something like the tile interface and are simulating this with "icon view" in the listcontrol ?

    I don't own an android or iphone so don't know all the details of it, but typically, ADDING animation or behaviour to windows controls tends to be hard to impossible. You can sometimes "fake" what you need by other means however. Without more details on what you want to achieve, not much I can do to help either.

    If you really have very specific needs, then usually creating your own control is going to be the easier path long term.

  4. #4
    Join Date
    May 2000
    Location
    Langesund, Telemark in Norway!
    Posts
    292

    Re: CListCtrl smooth scroll and touch-behavior?

    Thanks for replies guys...
    I was getting frustrated that why I wrote the post

    My solution was to use the customdraw effect of the ClistCtrl to achive the smoothscroll for report-view.
    Then I got reply from the customer that they are going to use W7 and a touchscreen that is W7 compliant.
    In that case I could use the new CStroke-class: http://channel9.msdn.com/Learn/Cours...ws7/Multitouch

    Worked pretty well after some tweaking
    + I got to use my own "hack" to get rid of the scrollbars, hehe: http://lars.werner.no/?page_id=24

    Edit:
    Check out this video for the effect:
    http://www.youtube.com/watch?v=Ij-76GVAmgc
    Around 1:00 minute (in the settings tab)
    Last edited by Large; February 9th, 2011 at 03:37 AM. Reason: Added android listview (Froyo listview)
    ==========================
    Lars Werner aka Large
    http://lars.werner.no/
    ==========================

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  





Click Here to Expand Forum to Full Width

Featured