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

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

Bug Reports Post about errors or bugs encountered.

Tablecell 0 not selected

Reply
 
LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 07-23-2007, 08:47 PM
Senior Member
 
Join Date: Jun 2007
Location: Netherlands (Arnhem)
Posts: 107
Awards Showcase
Beta Tester 
Total Awards: 1
Default Tablecell 0 not selected

When playing with tables, I wondered why I couldn't set a cell selected of the 0 row. It's not that important, just for the record.

When I show a table the first time and has set tbl.SelectCell(Row, 0) it will not be selected (visual on the screen). It's just for the 0 record.

Quote:
Sub Globals
'Add control tbl to form

recNr = 0
maxRec = 9
End Sub

Sub App_Start
Form1.Show

tbl.AddCol(cNumber, "Nr", 100)
for ii = 0 to maxRec
tbl.AddRow(ii)
next

' Tbl.SelectCell("Nr", 1)
Tbl.SelectCell("Nr", 0)



End Sub
The marked line is a workaround.

Scub
__________________
PPC: IPAQ 2210, 2GB, CF GPS, CF Wireless
Mobile: Samsung Omnia I900 (WM6.1)
Reply With Quote
  #2 (permalink)  
Old 07-24-2007, 05:21 AM
Erel's Avatar
Administrator
 
Join Date: Apr 2007
Posts: 15,714
Awards Showcase
Basic4ppc Founder 
Total Awards: 1
Default

When you add the first row to a table, it gets selected by default.
Now when you do Tbl.SelectCell("Nr",0) nothing happens as this cell is already selected.
If you want to see the blue marking just do: Tbl.Focus
Reply With Quote
  #3 (permalink)  
Old 07-24-2007, 01:52 PM
Senior Member
 
Join Date: Jun 2007
Location: Netherlands (Arnhem)
Posts: 107
Awards Showcase
Beta Tester 
Total Awards: 1
Default

Quote:
Originally Posted by Erel View Post
If you want to see the blue marking just do: Tbl.Focus
When I do a SelectCell("col",x) where x is not equal to 0, the bleu marking is visible without doing a focus before. So only for the 0 I have to do a focus and for other records not?......

Scub

added: This behavier is only on the PC. On the PPC I only see the marking after a focus, no mather what record I choose.
__________________
PPC: IPAQ 2210, 2GB, CF GPS, CF Wireless
Mobile: Samsung Omnia I900 (WM6.1)

Last edited by Scubaticus : 07-24-2007 at 01:55 PM.
Reply With Quote
  #4 (permalink)  
Old 07-24-2007, 02:00 PM
Erel's Avatar
Administrator
 
Join Date: Apr 2007
Posts: 15,714
Awards Showcase
Basic4ppc Founder 
Total Awards: 1
Default

No, on the device the blue marking will only show when the table is focused.
So you need to do Table.Focus anyway if you want to see the marking.
Reply With Quote
  #5 (permalink)  
Old 07-30-2007, 09:03 PM
Junior Member
 
Join Date: May 2007
Location: Chicago Illinois USA
Posts: 23
Default Table line selection

I finally made the header visible as 'false', put my header listings on the first "0" line. The header line can never be selected and all other lines can be selected as needed.
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
Harware, get selected text from other application levi Questions (Windows Mobile) 3 07-15-2008 12:40 PM
currently-selected email message, contact, or appointment John F. Eldredge Questions (Windows Mobile) 2 04-30-2008 12:21 PM
Get and update selected cell in ListView tsteward Questions (Windows Mobile) 5 04-29-2008 03:45 PM
Settings for User's selected 'theme' willisgt Questions (Windows Mobile) 2 02-21-2008 04:06 PM
Newbie-Filling a table but selected fields enonod Questions (Windows Mobile) 7 10-13-2007 12:24 PM


All times are GMT. The time now is 04:01 PM.


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