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.


Scrollbar on a Panel


Reply
 
LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 03-10-2008, 05:07 PM
willisgt's Avatar
Senior Member
 
Join Date: Aug 2007
Location: Nacogdoches, Texas USA
Posts: 157
Default Scrollbar on a Panel

I'm trying to add a progress bar to a panel. So far I've tried to:

1.) Create the progress bar (using progressbar.New1) with the panel as the parent (in place of the form name). No luck.

2.) Create the progress bar on the same form as the panel (works fine) and move it onto the panel by changing the parent via formlib. No Luck.

Is it even possible to place a progress bar on a panel? (I've encountered the same problem with scrollbars.)


Gary

__________________
PC: Windows XP Pro SP3 / Basic4PPC v6.5
PPC: HTC 8925 (AT&T Tilt) / Windows Mobile 6
Reply With Quote
  #2 (permalink)  
Old 03-10-2008, 05:44 PM
Erel's Avatar
Administrator
 
Join Date: Apr 2007
Posts: 3,199
Default

A small example is attached.
This is the code:
Code:
Sub Globals
    'Declare the global variables here.

End Sub

Sub App_Start
    Form1.Show
    bar.New1("panel1",10,10,200,30)
    bar.Value = 40
End Sub
Attached Files
File Type: sbp 1.sbp (453 Bytes, 12 views)
Reply With Quote
  #3 (permalink)  
Old 03-10-2008, 05:47 PM
agraham's Avatar
Basic4ppc Expert
 
Join Date: Jul 2007
Location: Cheshire, UK
Posts: 1,770
Awards Showcase
Beta Tester Forum Contributer 
Total Awards: 2
Default

1) works fine for me for both ProgressBar and ScrollBar!

EDIT :- Damn - Erel got in first while I was typing
Attached Files
File Type: zip PanelTest.ZIP (8.3 KB, 23 views)
Reply With Quote
  #4 (permalink)  
Old 03-10-2008, 05:56 PM
Erel's Avatar
Administrator
 
Join Date: Apr 2007
Posts: 3,199
Default

But your example is more comprehensive
Reply With Quote
  #5 (permalink)  
Old 03-10-2008, 06:06 PM
agraham's Avatar
Basic4ppc Expert
 
Join Date: Jul 2007
Location: Cheshire, UK
Posts: 1,770
Awards Showcase
Beta Tester Forum Contributer 
Total Awards: 2
Default

This example shows how to change parent with FormLib for a control from a library.
Attached Files
File Type: zip PanelTest2.zip (12.1 KB, 14 views)
Reply With Quote
  #6 (permalink)  
Old 03-10-2008, 09:12 PM
willisgt's Avatar
Senior Member
 
Join Date: Aug 2007
Location: Nacogdoches, Texas USA
Posts: 157
Default

Well, now I just feel plain silly...

My apologies, I just got back from a week in Minnesota and I think part of my brain must still be frozen. But thanks to all for pointing me in the right direction.


Gary

__________________
PC: Windows XP Pro SP3 / Basic4PPC v6.5
PPC: HTC 8925 (AT&T Tilt) / Windows Mobile 6
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
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
Tab-Control with Scrollbar Sascha K. Questions & Help Needed 4 04-05-2008 12:22 AM
panel or form with scrollbar? tvrman Code Samples & Tips 5 09-06-2007 06:39 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 02:20 AM.


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