What I am trying to do had seemed pretty simple (in theory). I have a form
that contains a multi-line field. Into this multi-line field I want to "read
in" a text string that I have created in Constructor. This is a "read only"
form that doesn't allow the user to edit. It is almost like an e-book format.
The application actually has numerous forms and strings that the user can tap
to and from. What I would "really" like to do is have a generic form created
that would read in different strings based on which button the user taps.
Thanks for all the feedback!!
Peter Epstein <[EMAIL PROTECTED]> wrote:
Drawing directly to the screen will work, but there are some caveats. First
of all, you should handle the frmUpdateEvent and redraw the text. Otherwise,
if memory is low, a dialog that opens on top of the text may cause the text
to be wiped out when the dialog closes. Second, you'll need to wrap the text
yourself if it's more than one line long. And lastly, the position of the
text on the form isn't at all obvious when looking at the form resource.
It's always best to use resources to specify the position and extent of
objects on your forms. This allows a localized version to use a different
position, for example.
Of course, you could read the position to draw the characters out of a
resource. The obvious choice would be a gadget. Personally, I'd only use a
gadget if a label or field didn't fit the bill. When would that be? Well, if
you want to mix different fonts, or if you want to mix text and graphics.
For example, the Address View form uses a gadget in order to mix different
fonts.
--
Peter Epstein
--
For information on using the Palm Developer Forums, or to unsubscribe, please
see http://www.palmos.com/dev/tech/support/forums/
____________________________________________________________________
Get free email and a permanent address at http://www.amexmail.com/?A=1
--
For information on using the Palm Developer Forums, or to unsubscribe, please see
http://www.palmos.com/dev/tech/support/forums/