[lazarus] How to scroll TMemo control in code

hernan.et at pg.com hernan.et at pg.com
Tue Apr 8 18:47:54 EDT 2003



Ha ha .... this is a problem. I am not doing cvs in Linux. I am using WinCVS
under windows and I tranfer the files into the Linux partition. Any idea how to
do this?

Yoyong


                                                                
 Internet Mail Message                                          
 Received from host:                                            
 svcr-216-37-230-2.dsl.svcr.epix.net                            
 [216.37.230.2]                                                 
                                                                


From: Mattias Gaertner <nc-gaertnma at netcologne.de> on 04/08/2003 09:28 AM GMT
                                                                                  
            Mattias Gaertner           To:   lazarus at miraclec.com                 
 <nc-gaertnma at netcologne.de>           Cc:    (bcc: Yoyong Hernan-ET/PGI)         
                               Subject:      Re: [lazarus] How to scroll TMemo    
                                    control in code                               
         04/08/2003 05:28 PM                                                      
           Please respond to                                                      
        lazarus at miraclec.com                                                      
                                                                                  





On Tue, 8 Apr 2003 08:34:39 +0800
hernan.et at pg.com wrote:

> I am using Lazarus to create the diff, how can I do that in the IDE?

The IDE has no cvs commands yet.

Just open a terminal and do

cd lazarus
cvs -z3 diff -u | gzip > laz.diff.gz


> About the TStringText, I don't have any clue how to implement it. Maybe
> you can give more details.


type
  TStringText = class(TStrings)
  private
    fStr: string;
    ...
  end;

see TStrings
add some useful procedures like GetTextLength, GetLineBounds, InsertText,
DeleteText, ReplaceText, MoveText, SearchText, ... and override any
inherited method from TStrings that should access fStr.


Mattias


>
> Regards,
>
> Yoyong
>
>
> From: Mattias Gaertner <nc-gaertnma at netcologne.de> on 04/08/2003 12:10 AM
> GMT
>

>             Mattias Gaertner           To:   lazarus at miraclec.com
>
>  <nc-gaertnma at netcologne.de>           Cc:    (bcc: Yoyong Hernan-ET/PGI)
>
>                                Subject:      Re: [lazarus] How to scroll
>                                TMemo
>                                     control in code
>
>          04/08/2003 08:10 AM
>
>            Please respond to
>
>         lazarus at miraclec.com
>
>

>
>
>
>
>
> On Tue, 8 Apr 2003 07:05:16 +0800
> hernan.et at pg.com wrote:
>
> > Can anyone apply this patch for TMemo? The purpose of this patch is to
> > speed up inserting of text in TMemo control. The changes are basically
> > on TMemoStrings. It baypasses sending the new text to FMemo, directly
> > sending to  the interface via a call to CNSendMessage. I also added
> > LM_InsertText case switch in gtkObject.inc under IntSendMessage3.
>
> Thanks. Applied in cvs.
> Because it only appends text I renamed it to LM_APPENDTEXT.
>
> What about TStringText? It would accelerate a lot. The append still uses
> TStringList.
>
>
> > Here is the patch.
> > (See attached file: memostrings_patch.txt)(See attached file:
> > gtkobject_inc_path.txt)
>
> Next time, send cvs diffs with -u option please. Patching is then easier.
>
>
> Mattias
>
> _________________________________________________________________
>      To unsubscribe: mail lazarus-request at miraclec.com with
>                 "unsubscribe" as the Subject
>    archives at http://www.lazarus.freepascal.org/mailarchives
>
>
> _________________________________________________________________
>      To unsubscribe: mail lazarus-request at miraclec.com with
>                 "unsubscribe" as the Subject
>    archives at http://www.lazarus.freepascal.org/mailarchives

_________________________________________________________________
     To unsubscribe: mail lazarus-request at miraclec.com with
                "unsubscribe" as the Subject
   archives at http://www.lazarus.freepascal.org/mailarchives







More information about the Lazarus mailing list