I have a stupid problem -- I can't make non-editable field show scroll
bar. In my resource file I have a field defined as:
   FIELD ID fldText  AT (2 15 152 108) MAXCHARS 7001 NONEDITABLE HASSCROLLBAR 
MULTIPLELINES
When initializing the field the following code is used:
MemHandle handle = MemHandleNew(5000);
MemHandle oldTxtH = FldGetTextHandle(GetObjectPtr(fldText));
ptr = MemHandleLock(handle);
StrCopy(ptr, "Bla-bla-bla. The actual string is very long");
MemHandleUnlock(handle);
FldSetTextHandle(GetObjectPtr(fldText), handle);
FldRecalculateField(GetObjectPtr(fldText), true);
if (oldTxtH != NULL)
   MemHandleFree(oldTxtH);

I tried to initialized it using different piece of code with
FldSetTextPtr, but with the same result. I tried to insert \n into the
text. Text is diplayed, multiline, but no scroll bar and therefore
text is cut off. I have looked into archives of this forum, but did
find anything similar. Could you please suggest something? Thanks in
advance.

  

-- 
Best regards,
 Boris                          mailto:[EMAIL PROTECTED]


-- 
For information on using the Palm Developer Forums, or to unsubscribe, please see 
http://www.palmos.com/dev/support/forums/

Reply via email to