long text & GetGadgetText/StringGadget

Just starting out? Need help? Post your questions and find answers here.
BackupUser
PureBasic Guru
PureBasic Guru
Posts: 16777133
Joined: Tue Apr 22, 2003 7:42 pm

Post 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
BackupUser
PureBasic Guru
PureBasic Guru
Posts: 16777133
Joined: Tue Apr 22, 2003 7:42 pm

Post 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...
BackupUser
PureBasic Guru
PureBasic Guru
Posts: 16777133
Joined: Tue Apr 22, 2003 7:42 pm

Post 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
BackupUser
PureBasic Guru
PureBasic Guru
Posts: 16777133
Joined: Tue Apr 22, 2003 7:42 pm

Post 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..
BackupUser
PureBasic Guru
PureBasic Guru
Posts: 16777133
Joined: Tue Apr 22, 2003 7:42 pm

Post 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?)
Post Reply