Page 1 of 1

Posted: Mon Feb 24, 2003 4:35 pm
by BackupUser
Restored from previous forum. Originally posted by searhin.

Hi all,

I wrote a little application which has to handle long user-editable texts. Currently i am using MultiLine StringGadgets. I can paste long texts (>>10000 characters) from the clipboard and edit these in the StringGadget, but when i try to recover the changed text by GetGadgetText, i get only about 4500-5000 characters in return, the remainder being cut off.

Why's that so?
Is there a better solution to recover long texts??

Thanx, Searhin

Posted: Mon Feb 24, 2003 4:41 pm
by BackupUser
Restored from previous forum. Originally posted by ricardo.

Did you try GetWindowText_(wHnd,@MyText,10000) ?

Best Regards

Ricardo

Dont cry for me Argentina...

Posted: Mon Feb 24, 2003 6:30 pm
by BackupUser
Restored from previous forum. Originally posted by Jose.

Not sure what the problem is whith StringGadget, you could use the RichEdit control under windows, search the forum for sample code.
Regards
Jose

Posted: Mon Feb 24, 2003 6:42 pm
by BackupUser
Restored from previous forum. Originally posted by Pupil.

This was reported some time ago, the gettext command is restricted to only 5kB, i think this is an old leftover since the time PB only supported 5kB strings or something (search the forum for more info on this). Anyway Fred is aware of it and i think he said he was gonna fix it in the next update..

Posted: Sat Mar 01, 2003 5:03 pm
by BackupUser
Restored from previous forum. Originally posted by searhin.

Thanx@All

i will try your "GetWindowText_" tip ricardo
(i thought this would return the window title only or something like that?)