Hi,

I have created a table with 2 columns & 3 rows. 
First & Second row in the First Column are labelTableItem.
Item Style of the second column is textTableItem. 
I have complexity in choosing an item style for the 3rd row � First column
(called 3R-1C).

I want 3R-1C cell to display a static text with a repeating button beside
(like popup trigger). Selecting the cell should pop-up a list. If the user
taps the screen & releases within the list we should retrieve the current
selected list item�s text and set it to the second column.

1.      3R-1C cell should not display the currently selected list item. Faced
this problem when choosing popupTriggerTableItem.
2.      Selecting the list item should generate an event (like popSelectEvent)
to select the list text in the second column. (popupTriggerTableItem
doesn�t generate popSelectEvent).

Please give ur guidance for a precise workaround. 
 
1.      CustomTableItem - setting a callback functions for drawing a static
text with FontID (Symbol 7).
2.      Capturing the tblselectevent for 3R-1C cell to show up (FrmShowObject)
a list for selection.
3.      When the user taps on the list, the selected text should be displayed
in the text column. The list object should be hided.
4.      When the List is visible & if the user taps anywhere outside the list,
hide the list.  To do this we should capture the pendown event, get the
bound region for the list. Instead of showing/hiding the list is there an
easier way to popup?

Empty text is displayed in 3R-1C. 
static void DrawCustomTableItem(void *table,Int16 row,Int16
column,RectangleType *bounds)
{
        if(row == 2)
        {
        //FrmCustomAlert(EditAaaAlert,"fieldIndex value --> ",NULL,NULL);       
        FontID curFont;
        Char symbol = '\0';
        symbol = symbolRepeat;

        curFont = FntSetFont(symbol7Font);
        WinDrawChars(&symbol,1,bounds->topLeft.x + 5,bounds->topLeft.y);
        FntSetFont(curFont);
        }

}

Any help appreciated.

Thanks
Jeff





 








-- 
For information on using the Palm Developer Forums, or to unsubscribe, please see 
http://www.palmos.com/dev/support/forums/

Reply via email to