You should use customTableItem for first column and textTableItem for 2nd
column. For a good example of how to do a textTableItem, look at the source
code for the built-in Address app, included with the SDK. See file
AddrEdit.c, functions PrvEditGetRecordField and PrvEditSaveRecordField.

Dave

"Christian Lindemeier" <[EMAIL PROTECTED]> wrote in message
news:[EMAIL PROTECTED]
>
> I saw myself that this part is useless.
> It's not like I came to this code myself, but I've tried to cut this
segmend out of the code
> and the result was that nothing worked without an error message.
> I could use customTableItem for this part but i also use this code
> for the other column, which is editable and where data gets displayed,
that I get out of a DB2
> database.
> I hope there is a way to use this code, but I would also be happy if
someone could send
> an example how I could manage this problem.
>
> Thanks
>
> Chris
>
> "Palm Developer Forum" <[EMAIL PROTECTED]> schrieb am
09.10.03 02:44:55:
> >
> > The code looks very wrong.
> >
> > The sequence:
> >
> > CustomerHandles = MemHandleNew(numBytes);
> > handles[row] = MemHandleLock(CustomerHandles);
> > handles[row] = MemHandleNew(StrLen(myString)+1);
> >
> > makes no sense. The 3rd line wipes out the locked pointer to
> > CustomerHandles created in the 2nd line. So CustomerHandles is not
> > really being used. The new memory you allocate with the 3rd line is
> > never freed.
> >
> > Since you turn off the editable and underlined attributes, I'm guessing
> > this is a display-only field. Why don't you use a customTableItem for
> > this column? That way there is no need to dynamically allocate anything.
> > You just use WinDrawChars to display your "catName" string table
> > entries.
> >
> > Hope that helps...
> >
> > Dave
> > ============================================================
> > Hi
> >
> > I have a table with 7 rows and 2 columns. In all rows of the first
> > column i copy data that is stored in a string.
> >
> > I have to use a handle pointer that i resize during runtime. But I'm
> > unable to free it with MemHandleFree.
> >
> >
> >
> > -- 
> > For information on using the Palm Developer Forums, or to unsubscribe,
please see http://www.palmos.com/dev/support/forums/
>
>
>
____________________________________________________________________________
__
> Horoskop, Comics, VIPs, Wetter, Sport und Lotto im WEB.DE Screensaver1.2
> Kostenlos downloaden: http://screensaver.web.de/?mc=021110
>
>
>



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

Reply via email to