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.


Tab-Control with Scrollbar


Reply
 
LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 02-13-2008, 09:49 PM
Junior Member
 
Join Date: Feb 2008
Location: Germany, Düsseldorf
Posts: 17
Default Tab-Control with Scrollbar

Hello there,

how can i build a tab-control with a scrollbar on right side like
the "contact"->"edit" funktion in PPC?
__________________
Best regards / Gruß
Sascha
Reply With Quote
  #2 (permalink)  
Old 02-13-2008, 10:24 PM
klaus's Avatar
Basic4ppc Expert
 
Join Date: Oct 2007
Location: Switzerland
Posts: 815
Awards Showcase
Beta Tester Competition Winner 
Total Awards: 2
Default

Do you really want a Tab control or a Table control ?
With the Table control when the number of lines becomes higher than the height of the control the ScrollBar is automatic.
You can add the table onto a page of the Tab control if you need it.

Best regards
Klaus
Switzerland
Reply With Quote
  #3 (permalink)  
Old 02-13-2008, 10:54 PM
willisgt's Avatar
Senior Member
 
Join Date: Aug 2007
Location: Nacogdoches, Texas USA
Posts: 164
Default

Klaus is right. It's possible to build something like the contacts list, but it requires you to reset the 'top' attribute of all the controls on the form every time the scrollbar moves. While this works fine with a short list, it begins to slow down - badly - with a longer list.

I have an example application I'll be happy to post if you want it, but really, a table would be the way to go.

Gary
__________________
PC: Windows XP Pro SP3 / Basic4PPC v6.5
PPC: HTC 8925 (AT&T Tilt) / Windows Mobile 6
Reply With Quote
  #4 (permalink)  
Old 02-13-2008, 11:12 PM
Cableguy's Avatar
Basic4ppc Expert
 
Join Date: Apr 2007
Location: N 41º11'30.30" W 8º39'46.60"
Posts: 1,463
Awards Showcase
Forum Contributer 
Total Awards: 1
Default

Quote:
Originally Posted by klaus View Post
Do you really want a Tab control or a Table control ?
With the Table control when the number of lines becomes higher than the height of the control the ScrollBar is automatic.
You can add the table onto a page of the Tab control if you need it.

Best regards
Klaus
Switzerland
Yes, But it is NOT editable in Place...

Quote:
Originally Posted by willisgt View Post
Klaus is right. It's possible to build something like the contacts list, but it requires you to reset the 'top' attribute of all the controls on the form every time the scrollbar moves. While this works fine with a short list, it begins to slow down - badly - with a longer list.

I have an example application I'll be happy to post if you want it, but really, a table would be the way to go.

Gary
Not quite, if we place all the needed controls in a panel we can then only move the panel, and all controls are relocated with it...
I have a sample here, but seem to have found a bug(?) in the Tab Control, in the ControlsEX Library...
The BringToFront method does NOTHING!!!!!

PS: you should copy the controlsEX lib into the same directory as my example...
Attached Files
File Type: zip teste.zip (828 Bytes, 14 views)
__________________
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 04-05-2008, 12:22 AM
Knows the basics
 
Join Date: Mar 2008
Posts: 54
Default Hi Cableguy, I meet this work :)

Here is answer of your question

I think this is what you want...
Attached Files
File Type: zip teste-New.zip (8.8 KB, 16 views)
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
Scrollbar on a Panel willisgt Questions & Help Needed 5 03-10-2008 09:12 PM
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:24 PM.


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