Bernd Mueller | 1 May 10:48
Picon

Re: Editor font disturbed after upgrading to r19705

Bart wrote:
> 
> Is this a bug, or is there something wrong with my system?

I can confirm the described behavior on my Windows 98 machine. But the 
problem seems to go deeper. If I put a Button on a Form, and double 
click the Button to let the IDE write the OnClick method, I get the 
error message:

"The component editor of class 'TDefaultComponentEditor' has created the 
error: 'Unable to find method. Please fix the error shown in the message 
window'."

The class TForm1 is mixed then. See attached screen shot.

Regards, Bernd.

_______________________________________________
Lazarus mailing list
Lazarus <at> lazarus.freepascal.org
http://www.lazarus.freepascal.org/mailman/listinfo/lazarus
Mattias Gaertner | 1 May 11:25
Picon
Favicon

Re: Editor font disturbed after upgrading to r19705

On Fri, 01 May 2009 10:48:19 +0200
Bernd Mueller <mueller.b <at> gmx.net> wrote:

>[...]
> The class TForm1 is mixed then. See attached screen shot.

Sorry. My fault. I fixed that an hour ago in svn r19726.

Mattias
_______________________________________________
Lazarus mailing list
Lazarus <at> lazarus.freepascal.org
http://www.lazarus.freepascal.org/mailman/listinfo/lazarus

Martin Friebe | 1 May 13:05
Picon

Re: Editor font disturbed after upgrading to r19705

Bart wrote:
> On 4/30/09, Martin Friebe <lazarus <at> mfriebe.de> wrote:
>   
>> It looks to me like it uses a different font. certainly it looks like it
>>  believes the font was proportional (that is why you get the odd spacing,
>>  because SynEdit forces it into a grid).
>>
>>  The last font-related changes in synedit where in revision 185xx (so
>>  before your last good revision).
>>     
>>  Maybe you could put some debugln into Synedit.SizeOrFontChanged and see
>>  which font is really used? Otherwise I have no idea.
>>     
>
> I can certainly do so, but in which unit is this method?
>   
I have attached a patch with a few debugln in it. I don't know if they 
will show anything useful, since I have no idea what is going on.
If you apply it, you need to start lazarus with a logfile, to capture 
the output. (There is a command line switch, but I have to find it 
myself / I usually compile as none "window app", which means my Lazarus 
runs with a console-window showing all the output)

Also if you do this, test it with only one Synedit open. (You can 
compile a standalone app, with one SynEdit, and set the font from inside 
the app)

> I wrote a small test program that has a synmemo and a memo
> It sets the fonts of  both the memo and synmemo the same
> and then queries their names etc and writes them in the editcontrols
(Continue reading)

Bart | 1 May 16:40
Picon

Re: Editor font disturbed after upgrading to r19705

On 5/1/09, Martin Friebe <lazarus <at> mfriebe.de> wrote:
>  I have attached a patch with a few debugln in it. I don't know if they will
> show anything useful, since I have no idea what is going on.
>  If you apply it, you need to start lazarus with a logfile, to capture the
> output. (There is a command line switch, but I have to find it myself / I
> usually compile as none "window app", which means my Lazarus runs with a
> console-window showing all the output)
>
>  Also if you do this, test it with only one Synedit open. (You can compile a
> standalone app, with one SynEdit, and set the font from inside the app)

I applied the changes in sysnedit.pp and syneditextdrawer.pp
then did a make clean all

This happens when I build and start my test app.

In OI the font is set to Verdanana, size -12 (height 16), pitch fpFixed

F:\LazarusProjecten>test
SetStyle created font for idx=0 name=default handle=596
SetBasefont name=default  basefont.name=default Handle=596
SetBasefont name=default  NO pinfo
SetStyle created font for idx=1 name=default handle=3364
RecalcCharExtend for font name=courier / courier mono=False Handle=2360
SetStyle created font for idx=0 name=courier handle=2360
SetBasefont name=courier  basefont.name=courier Handle=2360
SetStyle created font for idx=1 name=courier handle=2492
RecalcCharExtend for font name=courier / courier mono=False Handle=2360
SetBasefont name=courier  NO pinfo
RecalcCharExtend for font name=courier / courier mono=False Handle=1760
(Continue reading)

Bart | 1 May 16:41
Picon

Re: Editor font disturbed after upgrading to r19705

On 5/1/09, Bernd Mueller <mueller.b <at> gmx.net> wrote:
> Bart wrote:
>
> >
> > Is this a bug, or is there something wrong with my system?
> >
>
>  I can confirm the described behavior on my Windows 98 machine.

What was your latest revision that seemed to be OK?
(My latest was 18956, I hope yours is later...)
That would help us finding where things went wrong.

Bart
_______________________________________________
Lazarus mailing list
Lazarus <at> lazarus.freepascal.org
http://www.lazarus.freepascal.org/mailman/listinfo/lazarus

ajv | 1 May 17:10
Favicon

File region locking under Linux

I have a problem with file region locking under Linux.
First I start setup to create a file and writelock range 10..30
--------------------------------------------------------------
program setup;

{$mode delphi}{$H+}

Uses    cthreads, Classes, SysUtils, BaseUnix;

Const   Fn      = '/home/anthony/test_lock';
        F_RDLCK = 0;
        F_WRLCK = 1;
        F_UNLCK = 2;

Var     F, I    : Integer;
        Region  : FLock;

Begin
   If FileExists (Fn) Then DeleteFile (Fn);
   F := FpOpen (Fn, O_RDWR Or O_CREAT, $1B6);                   // $1B6 
= o666
   For I := 0 To 255 Do FpWrite (F, I, 1);                      // 
Populate file
   With Region Do                                               // Set 
WriteLock 10..30
   Begin
      l_type  := F_WRLCK; l_whence := SEEK_SET;
      l_start := 10;      l_len    := 20
   End;
   If FpFcntl (F, F_SETLK, Region) = -1 Then
(Continue reading)

Martin Friebe | 1 May 17:31
Picon

Re: Editor font disturbed after upgrading to r19705

Bart wrote:
> On 5/1/09, Martin Friebe <lazarus <at> mfriebe.de> wrote:
>   
>>  I have attached a patch with a few debugln in it. I don't know if they will
>> show anything useful, since I have no idea what is going on.
>>  If you apply it, you need to start lazarus with a logfile, to capture the
>> output. (There is a command line switch, but I have to find it myself / I
>> usually compile as none "window app", which means my Lazarus runs with a
>> console-window showing all the output)
>>
>>  Also if you do this, test it with only one Synedit open. (You can compile a
>> standalone app, with one SynEdit, and set the font from inside the app)
>>     
>
> I applied the changes in sysnedit.pp and syneditextdrawer.pp
> then did a make clean all
>
> This happens when I build and start my test app.
>   
Does that test app use a syntax highlighter? From the output I would 
guess that it does not. (because the font is only recalculated in plain, 
but not in bold or italic / You "compare app with memo" in your 2nd mail 
shows  plain style only.)
Anyway, as long as it doesn't, the output looks good.

One thing I noted in the pictures of your first mail (highlighted pascal 
before/after): In the after text the output of the bold text seems to 
use a different font than plain text. Compare the "u". The plain "u" 
(and any u in the before pic) has serif/serif-like extensions. the bold 
"u" in the after pic, has not.
(Continue reading)

Mattias Gaertner | 1 May 17:41
Picon
Favicon

Re: File region locking under Linux

On Fri, 01 May 2009 17:10:09 +0200
ajv <ajv <at> vogelaar-electronics.com> wrote:

> I have a problem with file region locking under Linux.
> First I start setup to create a file and writelock range 10..30

Wrong list. This question is better asked on the FPC mailing list.

Mattias

_______________________________________________
Lazarus mailing list
Lazarus <at> lazarus.freepascal.org
http://www.lazarus.freepascal.org/mailman/listinfo/lazarus

Bernd Mueller | 1 May 18:13
Picon

Re: Editor font disturbed after upgrading to r19705

Martin Friebe wrote:
> The best is probably to try and find the revision which broke it.
> Everything else is just blind search for a needle in a hay stack.....

r19131 is the breaking revision.

Regards, Bernd.

_______________________________________________
Lazarus mailing list
Lazarus <at> lazarus.freepascal.org
http://www.lazarus.freepascal.org/mailman/listinfo/lazarus

Paul Ishenin | 1 May 18:46
Picon

Re: Editor font disturbed after upgrading to r19705

Bernd Mueller wrote:
> Martin Friebe wrote:
>   
>> The best is probably to try and find the revision which broke it.
>> Everything else is just blind search for a needle in a hay stack.....
>>     
>
> r19131 is the breaking revision.
>   
Oh... my revision. I will try to test on win98 tomorow.

Best regards,
Paul Ishenin.
_______________________________________________
Lazarus mailing list
Lazarus <at> lazarus.freepascal.org
http://www.lazarus.freepascal.org/mailman/listinfo/lazarus


Gmane