Re: Multipleline Text Field

2003-11-28 Thread Marcel
Hi ThuNguyet. Thank you for your hint. It seems like I was just too blind to see it or I was looking in the wrong news-groups then. Regards. Marcel. "ThuNguyet Nguyen" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > Hi Marcel, > > You wrote: > > In the news group, I didn't find

Re: Multipleline Text Field

2003-11-26 Thread ThuNguyet Nguyen
Hi Marcel, You wrote: > In the news group, I didn't find any messages about SetFieldText() or > GetFieldText() yet. I will try to read the Memopad example, which is pretty > long... :-) > I do a search for "setfieldtext" on escribe and it found 86 matches, this is one of them http://www.escribe.c

Re: Multipleline Text Field

2003-11-26 Thread pcles
Thanks to all for your answers. As Marcel Said, the method with "Handle" seems to be the only one which works in this case. Here is a cut&paste from my own code: FormType *frmP; FieldType *fieldHelpP; MemHandle h, oldHandle; char *p; h = MemHandleNew(100); p = (char *) MemHandl

Re: Multipleline Text Field

2003-11-26 Thread Marcel
I think, I found an answer (originally posted by Darren Beck in the group pilot.programmer): Darren proposed the following: 1) Get the handle to the field's text (FldGetTextHandle) 2) Lock the handle to get a pointer to the text 3) Use the pointer and change the text however you want it 4) Use Fld

Re: Multipleline Text Field

2003-11-26 Thread Marcel
I have the same problem. I have set the attribute of the Field not to be a single-line-text-field. But still, all my text is printed on one single line, and the end of the string is outside of the visible area, of course. I also tried to print '\n' characters in the string, which didn't work either

RE: Multipleline Text Field

2003-11-24 Thread ThuNguyet Nguyen
Hi there, In the memopad tutorial, there is some sample code on multi line text field with scroll bar. If you just need multiline text field without the scroll bar, (I am using CW, I don't know how to do it in Pilrc) In the contructor, you put a text field with the height = number of lines x 11,

Multipleline Text Field

2003-11-24 Thread pcles
Hi, I'm trying to print some text into a multiple line non-editable text field with sometihing like this: StrCopy(helpStr, "Message1 Help...\0AMessage2 Help...\0AMessage3 Help...\0AMessage4 Help..."); FldSetTextPtr(fieldHelpP, helpStr); Unfortunately, it does not work. All the text is printed