Basic4ppc - Windows Mobile Development  

Go Back   Basic4ppc - Windows Mobile Development > Main Category > Bug Reports
Home Register FAQ Members List Search Today's Posts Mark Forums Read

Bug Reports Post about errors or bugs encountered.


ColWidth problem in Tables


Reply
 
LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 02-17-2008, 10:16 AM
klaus's Avatar
Basic4ppc Veteran
 
Join Date: Oct 2007
Location: Switzerland
Posts: 434
Awards Showcase
Competition Winner 
Total Awards: 1
Default ColWidth problem in Tables

Hi Erel,
In looking at Linecutter's problem to position a TextBos onto a selected cell in a table I found a problem with the ColWidth values.
- when the user changes a column with, the ColWidth value is not updated.
- when the user changes the ColWidth value, the value is changed, but not on the dispayed table.

I joined LineCutters code and a XML file:
I added in the code:
- a Label that shows the width of the column of the selected cell.
- a TextBox to change a value.
- a Button that changes the column with of the "Date" column.

Can you please have a look at it.

Thank you in advace.
Klaus
Switzerland
Attached Files
File Type: zip EditableTable1.3.zip (1.6 KB, 8 views)

Last edited by klaus : 02-17-2008 at 10:20 AM.
Reply With Quote
  #2 (permalink)  
Old 02-17-2008, 11:43 AM
Erel's Avatar
Administrator
 
Join Date: Apr 2007
Posts: 2,651
Default

I see this problem.
It will only happen after you load a XML table (unlike a CSV table which will work fine).
We will further check it.

BTW, using XML tables is not recommended as they are larger and slower than CSV tables.
Reply With Quote
  #3 (permalink)  
Old 02-17-2008, 04:16 PM
Knows the basics
 
Join Date: May 2007
Location: Daarsit
Posts: 92
Default

Erel, I presume that you are referring to the loading/saving of the xml data, rather than the internal table representation.

Klaus: It seems that the scrollbar control available in ControlsEx.dll might be a workaround... if the change in column width can trigger an event so that we know when to add the control, or we accept that it needs to be there all the time & for every table event we bring the scrollbar to the front, hiding the real one if it's being displayed.
Haven't played with it yet, nor thought through the maths - that has to wait until we can tell if the total table (column) width has changed.
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
Newbie question - arrays and tables BjornF Questions & Help Needed 3 05-15-2008 09:29 AM
Tables - column position LineCutter Questions & Help Needed 6 02-22-2008 02:30 PM
Tables J12345T Questions & Help Needed 6 07-09-2007 09:04 PM
Passing references to tables to subs LineCutter Questions & Help Needed 5 05-31-2007 08:27 PM
tables Fotis Nakos Questions & Help Needed 3 04-29-2007 08:40 AM


All times are GMT. The time now is 05:50 PM.


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