Sign in Join

Live chat for Free Pascal, Lazarus, Delphi and every Pascal programmer.

Mailing lists / lazarus / 2003-04

Patch for TMemo

8 messages · 5 people ·

Reply by email Subscribe to this list Your subscription

Read-only archive. Use j and k to move between messages.

Rainer Hamann
to Unknown author: Okay, this may not apply to all Linux distribution. But when I upgraded my Mandrake…

It's the same bug as on RedHat 9.0. I posted it two times before.

Rainer Hamann

Show quoted text 84 lines
Okay, this may not apply to all Linux distribution. But when I upgraded my Mandrake (actually fresh install) from 9.0 to 9.1 it looks like everythings was just fine. When I added TMemo into the form during design time and add some text using the Lines property via the object inspector things where not working as expected. The text I added was somehow concatenated into a single line. I hope you understand what I mean. Kindly try it using the IDE during design time. Maybe this only applies to few installation. Regards, Yoyong Internet Mail Message Received from host: svcr-216-37-230-2.dsl.svcr.epix.net [216.37.230.2] From: Mattias Gaertner on 04/15/2003 09:06 AM GMT Mattias Gaertner To: Cc: (bcc: Yoyong Hernan-ET/PGI) Subject: Re: [lazarus] Patch for TMemo 04/15/2003 05:06 PM Please respond to On Tue, 15 Apr 2003 08:33:58 +0800 wrote: > Hi all, > > A report was sent in the list that TMemo is not working properly, I do > have the same problem when using TMemo at design time and set Lines > property though the problem is not there when creating the Lines property > dynamically. What problem? > I also have problems when setting the word wrap property, I managed to > corrent it. Fixed. > I have one problem though, I cannot make the horizontal scroll bar to > work with TMemo, any ideas. No. But I have the same problem. > By the way the attached file is the patch. Note that I added {$linklib > crypt} and {$linklib dl} in the lazarus.pp since I am using Firebird. I > understand that there was a change in the interbase files in the cvs that > address this library inclusion. Also this is my first time to use diff > based on Mattias' instruction. {$linklib crypt} was added to idecomp.pp. Is {$linklib dl} needed, too? Mattias _________________________________________________________________ To unsubscribe: mail with "unsubscribe" as the Subject archives at http://www.lazarus.freepascal.org/mailarchives _________________________________________________________________ To unsubscribe: mail with "unsubscribe" as the Subject archives at http://www.lazarus.freepascal.org/mailarchives
Mattias Gaertner
to Unknown author: I have discovered that due to the LM_AppendText message, we have bypassed the normal…
Show quoted text 6 lines
To Mattias, I have discovered that due to the LM_AppendText message, we have bypassed the normal processing of the text in Memo component thereby all text appears only into say Memo1.Lines[0]. I have just finished doing cvs and noticed that we disabled LM_AppendText.

This was my fault. Sorry.
I have fixed it, and added some code to add needed line ends.

Show quoted text 6 lines
Also for normal programs where we are not inserting long lines of text into TMemo control this is not a problem but as my application needs to write possibly thousands of lines into TMemo I am back again with my previous problem. Do I need to create a TMemo descendant just satisfy my needs or are we going to try to improve TMemo so that inserting text can be made faster?

The current TMemo should be improved.

Okay, I remember that we need to use TStringText instead of TMemoStrings. I will try to implement it.

Great.

Mattias

Unknown author

Hi all,

A report was sent in the list that TMemo is not working properly, I do have the same problem when using TMemo at design time and set Lines property though the problem is not there when creating the Lines property dynamically.

I also have problems when setting the word wrap property, I managed to corrent it.

I have one problem though, I cannot make the horizontal scroll bar to work with TMemo, any ideas.

By the way the attached file is the patch. Note that I added {$linklib crypt} and {$linklib dl} in the lazarus.pp since I am using Firebird. I understand that there was a change in the interbase files in the cvs that address this library inclusion. Also this is my first time to use diff based on Mattias' instruction.

Regards,

Yoyong Hernan

(See attached file: laz.diff.gz)
-------------- next part --------------
A non-text attachment was scrubbed...
Name: bin00026.bin
Type: application/octet-stream
Size: 3678 bytes
Desc: "laz.diff.gz"
Url : http://localhost/pipermail/lazarus/attachments/20030414/ad9324a6/bin00026.bin

Unknown author

To Mattias,

I have discovered that due to the LM_AppendText message, we have bypassed the normal processing of the text in Memo component thereby all text appears only into say Memo1.Lines[0]. I have just finished doing cvs and noticed that we disabled LM_AppendText. Also for normal programs where we are not inserting long lines of text into TMemo control this is not a problem but as my application needs to write possibly thousands of lines into TMemo I am back again with my previous problem. Do I need to create a TMemo descendant just satisfy my needs or are we going to try to improve TMemo so that inserting text can be made faster?

Okay, I remember that we need to use TStringText instead of TMemoStrings. I will try to implement it.
Regards,

Yoyong

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

From: Mattias Gaertner on 04/15/2003 09:06 AM GMT

Mattias Gaertner To:
Cc: (bcc: Yoyong Hernan-ET/PGI)
Subject: Re: [lazarus] Patch for TMemo

04/15/2003 05:06 PM
Please respond to

Show quoted text 6 lines
Hi all, A report was sent in the list that TMemo is not working properly, I do have the same problem when using TMemo at design time and set Lines property though the problem is not there when creating the Lines property dynamically.

What problem?

I also have problems when setting the word wrap property, I managed to corrent it.

Fixed.

I have one problem though, I cannot make the horizontal scroll bar to work with TMemo, any ideas.

No. But I have the same problem.

Show quoted text 5 lines
By the way the attached file is the patch. Note that I added {$linklib crypt} and {$linklib dl} in the lazarus.pp since I am using Firebird. I understand that there was a change in the interbase files in the cvs that address this library inclusion. Also this is my first time to use diff based on Mattias' instruction.
{$linklib crypt} was added to idecomp.pp.

Is {$linklib dl} needed, too?

Mattias

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

Michael Van Canneyt
to Mattias Gaertner: On Tue, 15 Apr 2003 08:33:58 +0800 What problem? Fixed. No. But I have the same problem.…
Mattias Gaertner wrote 34 lines
On Tue, 15 Apr 2003 08:33:58 +0800 wrote: > Hi all, > > A report was sent in the list that TMemo is not working properly, I do > have the same problem when using TMemo at design time and set Lines > property though the problem is not there when creating the Lines property > dynamically. What problem? > I also have problems when setting the word wrap property, I managed to > corrent it. Fixed. > I have one problem though, I cannot make the horizontal scroll bar to work > with TMemo, any ideas. No. But I have the same problem. > By the way the attached file is the patch. Note that I added {$linklib > crypt} and {$linklib dl} in the lazarus.pp since I am using Firebird. I > understand that there was a change in the interbase files in the cvs that > address this library inclusion. Also this is my first time to use diff > based on Mattias' instruction. {$linklib crypt} was added to idecomp.pp. Is {$linklib dl} needed, too?

No.

Michael.

Mattias Gaertner
to Unknown author: A report was sent in the list that TMemo is not working properly, I do have the same…
Show quoted text 6 lines
Hi all, A report was sent in the list that TMemo is not working properly, I do have the same problem when using TMemo at design time and set Lines property though the problem is not there when creating the Lines property dynamically.

What problem?

I also have problems when setting the word wrap property, I managed to corrent it.

Fixed.

I have one problem though, I cannot make the horizontal scroll bar to work with TMemo, any ideas.

No. But I have the same problem.

Show quoted text 5 lines
By the way the attached file is the patch. Note that I added {$linklib crypt} and {$linklib dl} in the lazarus.pp since I am using Firebird. I understand that there was a change in the interbase files in the cvs that address this library inclusion. Also this is my first time to use diff based on Mattias' instruction.
{$linklib crypt} was added to idecomp.pp.

Is {$linklib dl} needed, too?

Mattias

Michal Bukovjan
to Unknown author: A report was sent in the list that TMemo is not working properly, I do have the same…
Show quoted text 12 lines
Hi all, A report was sent in the list that TMemo is not working properly, I do have the same problem when using TMemo at design time and set Lines property though the problem is not there when creating the Lines property dynamically. I also have problems when setting the word wrap property, I managed to corrent it. I have one problem though, I cannot make the horizontal scroll bar to work with TMemo, any ideas.

If you are talking about GTK, the problem is, that horizontal scrollbar is not properly implemented for the underlying widget in GTK+ 1.x, so there is little we can do.

Situation may be better in GTK 2.x.

Michal

Unknown author

Okay, this may not apply to all Linux distribution. But when I upgraded my Mandrake (actually fresh install) from 9.0 to 9.1 it looks like everythings was just fine. When I added TMemo into the form during design time and add some text using the Lines property via the object inspector things where not working as expected. The text I added was somehow concatenated into a single line. I hope you understand what I mean. Kindly try it using the IDE during design time.

Maybe this only applies to few installation.

Regards,

Yoyong

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

From: Mattias Gaertner on 04/15/2003 09:06 AM GMT

Mattias Gaertner To:
Cc: (bcc: Yoyong Hernan-ET/PGI)
Subject: Re: [lazarus] Patch for TMemo

04/15/2003 05:06 PM
Please respond to

Show quoted text 6 lines
Hi all, A report was sent in the list that TMemo is not working properly, I do have the same problem when using TMemo at design time and set Lines property though the problem is not there when creating the Lines property dynamically.

What problem?

I also have problems when setting the word wrap property, I managed to corrent it.

Fixed.

I have one problem though, I cannot make the horizontal scroll bar to work with TMemo, any ideas.

No. But I have the same problem.

Show quoted text 5 lines
By the way the attached file is the patch. Note that I added {$linklib crypt} and {$linklib dl} in the lazarus.pp since I am using Firebird. I understand that there was a change in the interbase files in the cvs that address this library inclusion. Also this is my first time to use diff based on Mattias' instruction.
{$linklib crypt} was added to idecomp.pp.

Is {$linklib dl} needed, too?

Mattias

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