Basic4ppc - Windows Mobile Development  

Go Back   Basic4ppc - Windows Mobile Development > Main Category > Questions & Help Needed
Home Register FAQ Members List Search Today's Posts Mark Forums Read

Questions & Help Needed Post any question regarding Basic4ppc.


autoscrollable panel


Reply
 
LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 11-12-2007, 08:28 AM
Junior Member
 
Join Date: Oct 2007
Posts: 18
Question autoscrollable panel

Hi everyone

I wanted to make "autoscrollable panel" - to move it left-right on button click. Form width is 240, panel width 480, I want to show left or right part of it with a nice animation between. It works slow on ppc (refresh of controls takes too long). Any chance to make this move more smooth?

Code:
  
For i=-10 To -240 Step -20 
    Panel1.Left=i
    Sleep(50)
    Panel1.Refresh 
 Next
 Panel1.Left=-240
Reply With Quote
  #2 (permalink)  
Old 11-12-2007, 09:14 AM
agraham's Avatar
Basic4ppc Expert
 
Join Date: Jul 2007
Location: Cheshire, UK
Posts: 1,690
Awards Showcase
Beta Tester Forum Contributer 
Total Awards: 2
Default

Quote:
Originally Posted by Henry View Post
Any chance to make this move more smooth?
You will have to wait for version 6.0

Basic4ppc Milestones
Reply With Quote
  #3 (permalink)  
Old 11-12-2007, 09:22 AM
Junior Member
 
Join Date: Oct 2007
Posts: 18
Default

It's ok for me - now I'm only testing and start more serious programing in next year - then new version should be ready, beacause I see that Erel is by heart involved in developing new versions.
Reply With Quote
  #4 (permalink)  
Old 11-12-2007, 09:25 AM
Erel's Avatar
Administrator
 
Join Date: Apr 2007
Posts: 3,134
Default

I'm not sure that version 6.0 will help here.
The controls refresh procedure is done by the OS so there is nothing much that can be done in Basic4ppc side.
Why do you need 'Panel1.Refresh' ?
Reply With Quote
  #5 (permalink)  
Old 11-12-2007, 09:31 AM
Junior Member
 
Join Date: Oct 2007
Posts: 18
Default

Without Refresh there is no effect of move on my ppc (on desktop it works fine) - just switch between left and right (strange - panel is automatically redrawn after animation and not during it)
Reply With Quote
  #6 (permalink)  
Old 11-12-2007, 09:35 AM
Erel's Avatar
Administrator
 
Join Date: Apr 2007
Posts: 3,134
Default

You can set the Visible property of some of the controls to false during the movement to make the scrolling smoother.
Reply With Quote
  #7 (permalink)  
Old 11-12-2007, 04:44 PM
Junior Member
 
Join Date: Oct 2007
Posts: 18
Default

Thanks Erel - I try to hide numupdown boxes
Reply With Quote
  #8 (permalink)  
Old 11-12-2007, 07:40 PM
Cableguy's Avatar
Basic4ppc Expert
 
Join Date: Apr 2007
Location: N 41º11'30.30" W 8º39'46.60"
Posts: 1,316
Default

I personally would go with two timers, one for each directio, assuming just left or right, or 4 if up and down were required!!!....Redraw inside the timer automaticaly refreshes the screen(?)....Th eonly prob I ever encoutered were when usin more than 1 timer simultaneously, the timer ticks are not very accurate!!!
__________________
Paulo Gomes
Porto, Portugal

PC: Dual-Core 1,8Ghz, 2GB RAM, 80GB HD
PPC: Qtek9000, 1GB SD

DLL Version Listing
Reply With Quote
Reply



Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

Similar Threads
Thread Thread Starter Forum Replies Last Post
a panel question Ricky D Questions & Help Needed 2 10-23-2008 09:08 AM
Panel Georg Questions & Help Needed 1 08-06-2008 10:01 AM
Scrollbar on a Panel willisgt Questions & Help Needed 5 03-10-2008 09:12 PM
How to draw into a Panel? BasicUser Questions & Help Needed 1 07-21-2007 07:28 AM
Input Panel Erel Code Samples & Tips 17 07-04-2007 04:29 AM


All times are GMT. The time now is 02:38 AM.


Powered by vBulletin® Version 3.6.12
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO 3.1.0