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.


Tablecell 0 not selected


Reply
 
LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 07-23-2007, 09:47 PM
Knows the basics
 
Join Date: Jun 2007
Location: Netherlands (Arnhem)
Posts: 71
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
Reply With Quote
  #2 (permalink)  
Old 07-24-2007, 06:21 AM
Erel's Avatar
Administrator
 
Join Date: Apr 2007
Posts: 3,185
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, 02:52 PM
Knows the basics
 
Join Date: Jun 2007
Location: Netherlands (Arnhem)
Posts: 71
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

Last edited by Scubaticus : 07-24-2007 at 02:55 PM.
Reply With Quote
  #4 (permalink)  
Old 07-24-2007, 03:00 PM
Erel's Avatar
Administrator
 
Join Date: Apr 2007
Posts: 3,185
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, 10:03 PM
Junior Member
 
Join Date: May 2007
Location: Chicago Illinois USA
Posts: 14
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 On
Pingbacks are On
Refbacks are On

Similar Threads
Thread Thread Starter Forum Replies Last Post
Harware, get selected text from other application levi Questions & Help Needed 3 07-15-2008 01:40 PM
currently-selected email message, contact, or appointment John F. Eldredge Questions & Help Needed 2 04-30-2008 01:21 PM
Get and update selected cell in ListView tsteward Questions & Help Needed 5 04-29-2008 04:45 PM
Settings for User's selected 'theme' willisgt Questions & Help Needed 2 02-21-2008 05:06 PM
Newbie-Filling a table but selected fields enonod Questions & Help Needed 7 10-13-2007 01:24 PM


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


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