It's not quite clear from this (and the message entitled "Strings") exactly
what you're doing, but I think the best way to dynamically control text in a
table is to set up a custom draw proc for the column. That gives you
complete control. Then your button handler changes the text that will be
drawn in the desired cell (by changing the string variable that the draw
proc uses, or setting a flag, or whatever is appropriate), and calls
TblRedrawTable (or FrmUpdateForm, if you've got an update event handler).
>From previous messages on this topic, it looks like you're trying to use
labels in the table cells, which, I think, makes what you're trying to do
more difficult. Labels weren't really meant for dynamically changing text,
they should be pretty much static. There's also a nice "gotcha" with labels
in that if you change the text to something longer than the initial string
in the label, it'll blow up (or something; the docs just say that the new
label "must not"exceed the length of the old).

--Jim Preston


"adam davies" <[EMAIL PROTECTED]> wrote in message
news:43808@palm-dev-forum...
>
>
> From message Strings
>
> Is it possible to select an event for my push button
> and code it to add text to a row in the  table.
> If (ctrlID==MyButtonID}{
>    file://add text to table code//
>
> break;
>
>
>
> __________________________________________________
> Do You Yahoo!?
> Get email at your own domain with Yahoo! Mail.
> http://personal.mail.yahoo.com/?.refer=text
>
>



-- 
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