-
February 8th, 2011, 08:11 AM
#1
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?
-
February 8th, 2011, 08:12 AM
#2
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 ?
-
February 8th, 2011, 09:31 AM
#3
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.
-
February 9th, 2011, 03:31 AM
#4
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)
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
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|