Hi everybody,
In my program, the database is display in a table with the popup trigger and the
category. When
the user edits or renames a caterogy and the category name is long enough, it
overwrites the title
of the form. Making the title shorter is not an option for me because my client wants
that long
form title. I try to use CategoryTruncateName() but it doesn't work. I call
CategoryTruncateName()
right after CategorySelect(). When I debug the program, right when I get out of
CategorySelect(),
the long name's already overwritten the title.
// these are called when user tab on the popup trigger
//...
categoryEdited = CategorySelect (listDB, frmP, ctlID,
lstID, false, &category, categoryName, 1,
categoryDefaultEditCategoryString);
CategoryTruncateName(categoryName,CATNAMELENGTH); // truncate to 40 pixels so it
doesn't
overwrite the form title
//...
Please tell me where I have to call CategoryTruncateName() or what else I can do to
fix this
problem.
Thanks so much.
tnn
__________________________________________________
Do You Yahoo!?
Get email at your own domain with Yahoo! Mail.
http://personal.mail.yahoo.com/
--
For information on using the Palm Developer Forums, or to unsubscribe, please see
http://www.palmos.com/dev/tech/support/forums/