![]() |
|
|||||||
| Home | Register | FAQ | Members List | Search | Today's Posts | Mark Forums Read |
| Questions & Help Needed Post any question regarding Basic4ppc. |
![]() |
|
|
LinkBack | Thread Tools | Display Modes |
|
|||
|
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
|
|
||||
|
|
|
||||
|
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 |
![]() |
| Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
| Thread Tools | |
| Display Modes | |
|
|
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 |