Text fields will also work quite well. You can set the field as
non-editable in the resource. If the strings you wish to display are stored
as resources (this is better for internationalization than having them
embedded in the code), you will access them as handles anyway (DmGetResource
returns a handle). Then FldSetTextHandle followed by FldDrawField will
display your text quite nicely. The only tricky point is to make sure to
call FldSetTextHandle with a NULL handle prior to the form's destruction (on
form close is handy), else the field's event handler will free the handle it
has.
-bob mckenzie
-----Original Message-----
From: Ole Grossklaus [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, September 04, 2001 12:59 PM
To: Palm Developer Forum
Subject: Re: just Display some text .?
WinDrawChars()
Das ist was Du suchst ,-)
Schone Gru?e
Ole
"Heiner Litz" <[EMAIL PROTECTED]> schrieb im Newsbeitrag
news:61565@palm-dev-forum...
>
> hi
>
> I need a non editable 10 chars wide noneditable text field to display
> different text stings in it depending on what button a user presses on the
> form. It dont has to change dynamically, but only by pressing a button.
>
> Whats the easiest way to do this?
>
> can i somehow just display chars in the text field, without playing around
> with handles..?
>
> i dont want to use alerts because I dont want a new form to pop up.
>
> --
>
> Mit freundlichen Gru?en, Heiner Litz.
>
>
> blauton.com
> Kastellweg 11
> d- 69120 Heidelberg
> tel: 0179 2440020
> fax: 0721 151287068
> web: www.blauton.com
>
>
>
>
--
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/