Pocket PC Thoughts - Daily News, Views, Rants and Raves

Check out the hottest Windows Mobile devices at our Expansys store!





Go Back   Thoughts Media Forums > POCKET PC THOUGHTS > Pocket PC Developer

Reply
 
LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 04-18-2008, 07:47 PM
Pupil
Join Date: Mar 2008
Posts: 12
Default Thinlet table in Pocket PC app

Trying to determine what cell is clicked in a thinlet table. I'm aware that a cell is not selectable in the table. I tried using the setMethod to pass a thinlet cell java file that permits access to the XML file.

Here's a sample:

Code:
cell = thinlet.create("cell");
thinlet.setString(cell, "name", String.valueOf(1) + String.valueOf(i));    
thinlet.setString(cell, "text", "some data");
thinlet.add(row, cell);                
thinlet.setMethod(table, "action", "getSelectedCell(cell)", row,thinlet);
However, object (cell) is null in getSelectedCell.

I'm able to use place the method call in the action attribute of the
XML file, i.e. action="getSelectedCell(item)", which of course returns
the row.

Actually, I would like to get the column if the cell can't be determine from a mouse click. Is this possible if the mouse click event is overriden?

any help is appreciated

Last edited by wrappingduke; 04-19-2008 at 01:57 AM.
 
Reply With Quote
  #2 (permalink)  
Old 05-03-2008, 07:43 PM
Pupil
Join Date: Mar 2008
Posts: 12
Smile thinlet table in Pocket PC app

Found solution to problem w/ the use of Object Wrapper Thinlet. With the wrapper was able to determine the width of a column and as a result, determine what column a cell belongs to when clicked.

First the processEvent was overriden to capture mouse events. Then, retrieved x-coordinate from event. Lastly, determined column from x-coordinate.
 
Reply With Quote
Reply


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

BB code is On
Smilies are On
[IMG] code is On
HTML code is On
Trackbacks are On
Pingbacks are On
Refbacks are On


All times are GMT +1. The time now is 06:04 PM.



Search Engine Friendly URLs by vBSEO 3.2.0 RC7