But...my Palm development book by Rhodes mentions that labels are not ideal for displaying data and that you should display data in a non-editable field instead. So here's my PilRC declaration:
LABEL "Example:" AUTOID AT (27 36) FONT 1
FIELD ID PrefsExample AT (74 36 62 10) MAXCHARS 11 DISABLEDI go through the usual code trick supposedly used for changing the value of the field text. Upto a point it works - almost but I'm getting some very strange behaviour.
1. I don't have EDITABLE declared in my FIELD yet I can edit the text! Why does it let me?
2. After the new field value is assigned, it is not displayed. But if I tap on the supposedly non-editable field and delete a character, the new field value is then displayed, sans the one character I've deleted. In other words, if the old value displayed is "ABC" and the new value is "123" then when I delete "C" from "ABC", the form suddenly displays "12".
3. I tried using FrmDrawForm after I've done the field assignment and that works, but...I have some graphical lines on the form I drew once and now I have to redraw them again! Surely, there has to be a better way than this?
4. I will later have a number of other fields I want to display and I want to get the best practice sorted out now. Can someone advise me what is the best way to display non-editable runtime data? And why my field is still editable when it should not be?
Thanks.
-- For information on using the Palm Developer Forums, or to unsubscribe, please see http://www.palmos.com/dev/support/forums/
