I have built an app that mixes text fields and a field with multiple popup
triggers in the same table column. Your assertion that "TextTableItem types
do not play well with other data types b'coz of setting the load & save
callback functions for the entire column" does not match my experience.
Doing this works fine for me...
I implmemented this as follows:
1. use textTableItem for the text fields
2. use customTableItem for the multiple popup trigger fields
3. call TblSetLoadDataProcedure, TblSetSaveDataProcedure, and
TblSetCustomDrawProcedure all for the same column - this does not create any
problems for me.
4. call TblSetItemStyle(tblP, row, column, textTableItem) for those cells
that contain text fields
5. call TblSetItemStyle(tblP, row, column, customTableItem) for those cells
that contain the popup-triggers.
6. The CustomDrawProcedure manually draws the popup trigger icons and the
currently selected text using WinDrawBitmap and WinDrawChars. You need to
create your own bitmap for the drop-down arrow. It looks like:
xxxxxxx
xxxxx
xxx
x
Draw it at bounds->topLeft.y+2.
7. In the form's HandleEvent function, catch tblEnterEvent. If the row and
column are in the customTableItem, use the screenX coordinate to determine
which of the 3 lists was clicked.
8. make the list usable, position it where you want it, and call
LstPopupList.
9. when LstPopupList returns, make the list unusable again, mark the table
invalid, call the LoadTable function, call TblRedrawTable, and have the
HandleEvent function return handled=true.
I have found that use of textTableItem is prone to crashing if you don't do
everything right, especially setting and removing focus at the proper times,
and properly responding to fldHeightChangedEvent. I'm guessing that this is
the source of your problems, rather than the mixing of table item types.
Hope that helps...
Dave
"Jefferson" <[EMAIL PROTECTED]> wrote in message
news:[EMAIL PROTECTED]
>
> Hi Palmites,
>
> I'm trying to create an app for accepting 4 inputs from the user.
> Name: <multi line text field>
> Date Of Birth: <three pop-up triggers>
> Address: <multi line text field>
> Phone: <multi line text field>
>
> If the "Address:" field exceeds the form size, I would require a scroll
> function just like the AddressEdit screens in Address Book application.
>
> Exploring Address Book source code reveals that they have used scrollable
> table.
>
> void EditViewLoadTable (void)
> 1.Get the height of the table and the width of the description column.
> 2.Compute the height of the field's text string.
> 3.If the height or the position of the item has changed draw the item.
>
> In my case, I cannot use tables b'coz of "Date Of Birth:" field contains
> three pop-up triggers. TextTableItem types do not play well with other
> data types b'coz of setting the load & save callback functions for the
> entire column.
>
>
> Thanks in advance
>
> Jeff
>
>
--
For information on using the Palm Developer Forums, or to unsubscribe, please see
http://www.palmos.com/dev/support/forums/