Download the free trial version
Basic4android Video
Features
Tutorials and manuals
Showcase
Screenshots

Go Back   Android Development Forum - Basic4android > Basic4ppc (Windows Mobile) > Questions (Windows Mobile)
Documentation Wiki Register Members List B4P Search Today's Posts Mark Forums Read

Questions (Windows Mobile) Post any question regarding Basic4ppc.

Fixing a table collumn width,how?

Reply
 
LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 11-17-2008, 05:57 PM
Cableguy's Avatar
Basic4ppc Expert
 
Join Date: Apr 2007
Location: N 41º11'30.30" W 8º39'46.60"
Posts: 2,313
Awards Showcase
Forum Contributer 
Total Awards: 1
Default Fixing a table collumn width,how?

Hi, how can I achieve this?
I need to prevent the user from changing the column width....
__________________
Paulo Gomes - Porto, Portugal - Living/Working in France-Saumur
Mobile Device: Samsung Galaxy S, Android 2.3.4 CUstom ROM
Laptop: Toshiba NB100-130 (running on Win7Ultimate)
B4PPC DLL Version Listing - B4Android DLL Version Listing
Reply With Quote
  #2 (permalink)  
Old 11-17-2008, 05:59 PM
Erel's Avatar
Administrator
 
Join Date: Apr 2007
Posts: 13,162
Awards Showcase
Basic4ppc Founder 
Total Awards: 1
Default

Did you try to set Table.HeaderVisible to false?
__________________
Basic4android documentation
Reply With Quote
  #3 (permalink)  
Old 11-17-2008, 06:11 PM
Cableguy's Avatar
Basic4ppc Expert
 
Join Date: Apr 2007
Location: N 41º11'30.30" W 8º39'46.60"
Posts: 2,313
Awards Showcase
Forum Contributer 
Total Awards: 1
Default

Quote:
Originally Posted by Erel View Post
Did you try to set Table.HeaderVisible to false?
Actually NO....
I was using it to ref the collumns, but I can use a label for that...
Nice tip...
BTW, how can we add a collumn after a sql "table read" (this is the easy part), and then make this newly added collumn, the FIRST collumn...???
__________________
Paulo Gomes - Porto, Portugal - Living/Working in France-Saumur
Mobile Device: Samsung Galaxy S, Android 2.3.4 CUstom ROM
Laptop: Toshiba NB100-130 (running on Win7Ultimate)
B4PPC DLL Version Listing - B4Android DLL Version Listing
Reply With Quote
  #4 (permalink)  
Old 11-17-2008, 06:44 PM
Erel's Avatar
Administrator
 
Join Date: Apr 2007
Posts: 13,162
Awards Showcase
Basic4ppc Founder 
Total Awards: 1
Default

Quote:
Actually NO....
I was using it to ref the collumns, but I can use a label for that...
Nice tip..
You should test it, I'm not sure if the user can drag the vertical lines or not.

Quote:
BTW, how can we add a collumn after a sql "table read" (this is the easy part), and then make this newly added collumn, the FIRST collumn...???
You should add it during the query:
Code:
cmd.CommandText = "SELECT '' AS newcol, table1.* FROM table1"
__________________
Basic4android documentation
Reply With Quote
  #5 (permalink)  
Old 11-17-2008, 07:24 PM
Cableguy's Avatar
Basic4ppc Expert
 
Join Date: Apr 2007
Location: N 41º11'30.30" W 8º39'46.60"
Posts: 2,313
Awards Showcase
Forum Contributer 
Total Awards: 1
Default

Quote:
Originally Posted by Erel View Post
You should add it during the query:
Code:
cmd.CommandText = "SELECT '' AS newcol, table1.* FROM table1"
Hum, Inowseethat I've only started to suprficially tap the L command syntax....
It sems to be able do execute some very complex queries..
__________________
Paulo Gomes - Porto, Portugal - Living/Working in France-Saumur
Mobile Device: Samsung Galaxy S, Android 2.3.4 CUstom ROM
Laptop: Toshiba NB100-130 (running on Win7Ultimate)
B4PPC DLL Version Listing - B4Android DLL Version Listing
Reply With Quote
  #6 (permalink)  
Old 11-17-2008, 09:43 PM
Cableguy's Avatar
Basic4ppc Expert
 
Join Date: Apr 2007
Location: N 41º11'30.30" W 8º39'46.60"
Posts: 2,313
Awards Showcase
Forum Contributer 
Total Awards: 1
Default

Quote:
Originally Posted by Erel View Post
You should test it, I'm not sure if the user can drag the vertical lines or not.
Just tested and it works great...
__________________
Paulo Gomes - Porto, Portugal - Living/Working in France-Saumur
Mobile Device: Samsung Galaxy S, Android 2.3.4 CUstom ROM
Laptop: Toshiba NB100-130 (running on Win7Ultimate)
B4PPC DLL Version Listing - B4Android 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 Off
Pingbacks are Off
Refbacks are On

Similar Threads
Thread Thread Starter Forum Replies Last Post
IDE subs list width klaus Beta Versions 1 09-28-2008 04:56 AM
Is it possible to set a width of the scrollbar? aeror Questions (Windows Mobile) 2 06-19-2008 11:22 AM
Pen width and XOR drawing enonod Questions (Windows Mobile) 2 06-01-2008 07:43 PM
sqlite col width dennishea Questions (Windows Mobile) 1 01-20-2008 08:00 PM
table col width tvrman Questions (Windows Mobile) 8 06-16-2007 09:41 PM


All times are GMT. The time now is 04:19 AM.


Powered by vBulletin® Version 3.6.12
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.3.0