Bob, thanks for the help! This should do the trick. I suspected the table
pop-up had nothing to do with a normal pop-up.

Cheers,
-Mark



"Robert McKenzie" <[EMAIL PROTECTED]> wrote in message
news:39915@palm-dev-forum...
>
> I don't believe that there really is a popup tigger inside
> the table.  The table simply synthesizes its appearance and
> behavior.
>
> It is fairly direct to catch the table select and popup
> your own list off of a table select.  The following code
> snippet should give you the idea:
>
> TblUnhighlightSelection(tbl);
>
> // move the list to the item's position
> TblGetItemBounds(tbl, row, col, &bounds);
> lst = TblGetItemPtr(tbl, row, col);
> LstSetPosition(lst, bounds.topLeft.x, bounds.topLeft.y);
>
> // fetch prior selection & give it to the list
> sel = TblGetItemInt(tbl, row, col);
> LstSetSelection(lst, sel);
>
> // pop it up
> sel = LstPopupList(lst);
>
> // reset things
> TblSetItemInt(tbl, row, col, sel);
> TblMarkRowInvalid(tbl, row);
> TblRedrawTable(tbl);
>
> This assumes that you have set up the list earlier
> and stored its pointer in the table, and that you
> use the table's item int for the selection.  You
> can use a custom draw procedure to fetch the selection
> and format and draw it as you like.
>
> -bob mckenzie
>
> > -----Original Message-----
> > From: [EMAIL PROTECTED]
> > [mailto:[EMAIL PROTECTED]]On Behalf Of Mark
> > Cameron
> > Sent: Friday, February 16, 2001 1:18 AM
> > To: Palm Developer Forum
> > Subject: Formatting pop-up triggers in tables
> >
> >
> > Howdy,
> >
> > I have set up a table which has a column of pop-up triggers to a
> > list whose
> > items are generated dynamically. It works okay, but I seem to have no
> > control over how the selected text is displayed in the table. I can't
find
> > any way to access the popup trigger, so I'm unable to do the following:
> >
> > 1. left-justify the text in the cell
> > 2. get rid of the ':' that is automatically placed after the selected
text
> >
> > I am tempted to set up the cells as custom draw items (i.e. to fake the
> > popup trigger), but I'm really hoping I won't have to. Any
> > suggestions would
> > be greatly appreciated.
> >
> > Thanks,
> > -Mark
> >
> >
> > --
> > For information on using the Palm Developer Forums, or to
> > unsubscribe, please see http://www.palmos.com/dev/tech/support/forums/
>
>
>



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

Reply via email to