Ups, I have not realized that I have to add scroll bar and update it myself. The whole point of exercise is to display static text, something like about or disclaimer. What is the best solution here? Field or some other control?
Thanks a lot Boris, Saturday, September 13, 2003, 4:43:42 PM, you wrote: BE> I have a stupid problem -- I can't make non-editable field show scroll BE> bar. In my resource file I have a field defined as: BE> FIELD ID fldText AT (2 15 152 108) MAXCHARS 7001 BE> NONEDITABLE HASSCROLLBAR MULTIPLELINES BE> When initializing the field the following code is used: BE> MemHandle handle = MemHandleNew(5000); BE> MemHandle oldTxtH = FldGetTextHandle(GetObjectPtr(fldText)); BE> ptr = MemHandleLock(handle); BE> StrCopy(ptr, "Bla-bla-bla. The actual string is very long"); BE> MemHandleUnlock(handle); BE> FldSetTextHandle(GetObjectPtr(fldText), handle); BE> FldRecalculateField(GetObjectPtr(fldText), true); BE> if (oldTxtH != NULL) BE> MemHandleFree(oldTxtH); BE> I tried to initialized it using different piece of code with BE> FldSetTextPtr, but with the same result. I tried to insert \n into the BE> text. Text is diplayed, multiline, but no scroll bar and therefore BE> text is cut off. I have looked into archives of this forum, but did BE> find anything similar. Could you please suggest something? Thanks in BE> advance. BE> -- BE> Best regards, BE> Boris mailto:[EMAIL PROTECTED] mailto:[EMAIL PROTECTED] -- For information on using the Palm Developer Forums, or to unsubscribe, please see http://www.palmos.com/dev/support/forums/
