Labels contain their strings statically. This is to say,
they have a fixed amount of memory (computed at compile time)
to hold their strings. If you write more text to the strings
labels than was allocated, you will overwrite your form's
memory. To verify that this is happening, you can repeat the
experiment under the debugger while you watch the form pointer's
memory.
Of course if this is the problem, you can either:
(1) fill the labels with enough memory (blanks work just dandy)
to hold any text you plan on stuffing into them.
(2) switch to something more flexible, such as fields.
-bob mckenzie
<[EMAIL PROTECTED]>
-----Original Message-----
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED]]On Behalf Of Charles
Rezsonya
Sent: Monday, July 17, 2000 8:21 AM
To: Palm Developer Forum
Subject: Strange button behavior
hello,
i have a form, which contains a few labels. i have a button that when
pressed causes some of the labels to be updated with new text. but after
the text is updated and i wish to press the button again, the button
doesn't even react to the click, but is still drawn. i have 2 other buttons
that i can continue using. i'm not sure if the button info is being
corrupted, because i'm not allocating any ptrs to it or anything (just
using the def ID for the event click).
any ideas what might cause this?
Charles R
--
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/