Basic4ppc - Windows Mobile Development  

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

Code Samples & Tips Share your recent discoveries and ideas with other users.


panel or form with scrollbar?


Reply
 
LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 09-06-2007, 03:46 PM
Knows the basics
 
Join Date: May 2007
Posts: 60
Default panel or form with scrollbar?

Hi,

I'm busy now for day's to find a way to make the form or an panel
larger than the screen size, this can be easly done by choosing the
screen size , but what happends with the form or panel which will
be out of the screen size?, it seems it's still there but you can't
reach it, so a scrollbar should be very usefull, so you don't have
to create an amount of panels or form (on the exact size of the screen
self i mean).
Does there is an way to build an form or panel wich you can reach over
the full length?, like putting an button on the right corner which contains
next or more.. e.t..

I'll hope there is some solution for this, because im writing some text
on the screen which are more rows than the current form or panel can
take.

thanks
Reply With Quote
  #2 (permalink)  
Old 09-06-2007, 04:08 PM
Erel's Avatar
Administrator
 
Join Date: Apr 2007
Posts: 3,141
Default

Quote:
Originally Posted by tvrman View Post
I'm busy now for day's...
You should have asked earlier
You can use a ScrollBar and a panel to achieve it.
Code:
Sub Globals
'Declare the global variables here.
End Sub
 
Sub App_Start
 Form2.Show
 sb.New1("form2",220,0,20,270,true)
 sb.Maximum = panel1.Height - form2.Height
 AddTextBox("panel1","txt1",10,400,100,25,"")
End Sub
 
Sub sb_ValueChanged
 panel1.Top = -sb.Value
End Sub
The application and the ScrollBar library are also attached.
Attached Files
File Type: zip ScrollablePanel.zip (3.0 KB, 129 views)
Reply With Quote
  #3 (permalink)  
Old 09-06-2007, 04:18 PM
Knows the basics
 
Join Date: May 2007
Posts: 60
Default

Hi Erel,

Sjee why i didn't ask before this, im searching now for days at the forum,
(im learning too on this).

this is the solution for my project

Let me say many thanks again!
Reply With Quote
  #4 (permalink)  
Old 09-06-2007, 06:05 PM
Cableguy's Avatar
Basic4ppc Expert
 
Join Date: Apr 2007
Location: N 41º11'30.30" W 8º39'46.60"
Posts: 1,320
Awards Showcase
Forum Contributer 
Total Awards: 1
Default

Quote:
im searching now for days at the forum
Also, the best place to ask is in the questions forum, not on the samples one....

And of course, we all have learned a new bit with EREL's example...
__________________
Paulo Gomes
Porto, Portugal

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

DLL Version Listing
Reply With Quote
  #5 (permalink)  
Old 09-06-2007, 06:26 PM
Erel's Avatar
Administrator
 
Join Date: Apr 2007
Posts: 3,141
Default

Quote:
Also, the best place to ask is in the questions forum, not on the samples one....
I moved this thread to the Code Samples as it is a good tip for a common problem.
Reply With Quote
  #6 (permalink)  
Old 09-06-2007, 06:39 PM
Cableguy's Avatar
Basic4ppc Expert
 
Join Date: Apr 2007
Location: N 41º11'30.30" W 8º39'46.60"
Posts: 1,320
Awards Showcase
Forum Contributer 
Total Awards: 1
Default

OK, Sorry, I didn't noticed it was a moved post...

My appologies
__________________
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
Panel verschieben in andere Form ? Paulsche German Forum 2 09-23-2008 08:03 AM
Is it possible to set a width of the scrollbar? aeror Questions & Help Needed 2 06-19-2008 11:22 AM
Scrollbar aerohost Basic4ppc Wishlist 1 06-15-2008 03:56 PM
Scrollbar on a Panel willisgt Questions & Help Needed 5 03-10-2008 09:12 PM
possible to add a scrollbar to the textbox? Stellaferox Questions & Help Needed 4 06-16-2007 01:15 PM


All times are GMT. The time now is 11:32 PM.


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