Re: RichEdit refuses to edit >64 Kb!
would you try switching the wParam and lParam to
result = sendMessage(textBox, EM_EXLIMITTEXT, 0, 500000)
instead of:
result = sendMessage(textBox, EM_EXLIMITTEXT, 500000, 0)
Euman
euman at bellsouth.net
----- Original Message -----
From: <paravantis at otenet.gr>
To: "EUforum" <EUforum at topica.com>
Sent: Friday, June 29, 2001 12:07
Subject: RichEdit refuses to edit >64 Kb!
>
>
>
>
> > Rich edit controls: Use the message EM_EXLIMITTEXT for text length values
> > greater than 64K.
> >
> > Lookup EM_LIMITTEXT in the MS-SDK
>
> I am sorry to report that I could not make EM_EXLIMITTEXT to work for values
> greater than 64 Kb.
>
> The lines of code used to try to achieve this were:
>
> -- somewhere in the constants section
> textBox = create(RichEdit, "", MainWindow, Default, Default, 1, 1,
> ES_NOHIDESEL) -- size is taken care of automatically when the program starts
> -- right when the program starts and initializes variables
> result = sendMessage(textBox, EM_EXLIMITTEXT, 500000, 0)
>
> Please note that all methods (e.g. LimitText, EM_EXLIMITTEXT or
> EM_SETLIMITTEXT) work wonderfully for values UP TO 64 Kb.
>
> I am somewhat stupefied by the ready response of other Euphoria programmers
> on this question. Has ANYBODY made RichEdit text boxes work with text size
> >64 Kb? If so, could you please send the ACTUAL COMPLETE code?
>
> Kind thanks to all of you for your valuable time.
> John Paravantis PhD
> Department of Technological Education
> UNIVERSITY OF PIRAEUS <thalis.cs.unipi.gr>
> jparav at unipi.gr & paravantis at otenet.gr
> <http://www.geocities.com/paravantis/index.html>
>
>
>
>
>
|
Not Categorized, Please Help
|
|