Re: [Lazarus] Free Pascal version 2.2.4 released

2009-04-13 Thread Mattias Gärtner
Zitat von Joost van der Sluis :

> Hello,
>
> The Free Pascal team is pleased to announce that version 2.2.4 has been
> released and is available for download for all major platforms:
>[...]

Congratulations!

> We also use this release to test our new packaging system. More
> information about this test can be found here:
>
>   http://wiki.freepascal.org/fppkg_field_test

I'm eager to use this in lazarus.


> Packages:
>   * Added support for TIFF reading/writing in fcl-image
>   * Improvements and fixes in CHM support
>   * Fixed linking the gtk2-package with gtk versions above 2.13.4

:)


Mattias


___
Lazarus mailing list
Lazarus@lazarus.freepascal.org
http://www.lazarus.freepascal.org/mailman/listinfo/lazarus


[Lazarus] (no subject)

2009-04-13 Thread Téc. Santiago Estupiñan D.
___
Lazarus mailing list
Lazarus@lazarus.freepascal.org
http://www.lazarus.freepascal.org/mailman/listinfo/lazarus


Re: [Lazarus] Clear font backgrounds

2009-04-13 Thread Dave Coventry
2009/4/13 Martin Friebe :
> After "SetBKMode" try to output text as usual, eg with:
> "Image1.Canvas.TextOut()".  (or whatever it is, I don't recall exactly)
>
> This may already work, I haven't tried it

No, it doesn't, I'm afraid.

> What I have used is:
>
>  dc := Canvas.Handle;
>  SetBkMode(dc,  TRANSPARENT);
>  LCLIntf.ExtUTF8Out(dc, X, Y, 0, @ARect, Text, Length, nil);
>
> ARect is a TRect thats specifies where the text goes. Unless you use
> clipping, only the top edge matters (since the background is transparent
> too)
>
> Example can be found in SynEdit:  components\synedit\syntextdrawer.pp
> line 1175 (the line refers to the SVN version; use search otherwise);
> the BKMode is set in synedits main unit.

I've found an easier way:

Set Image1.Canvas.Bruch.Style:=bsClear.

Works fine.

___
Lazarus mailing list
Lazarus@lazarus.freepascal.org
http://www.lazarus.freepascal.org/mailman/listinfo/lazarus


Re: [Lazarus] Clear font backgrounds

2009-04-13 Thread Dave Coventry
2009/4/13 Martin Friebe :
> After "SetBKMode" try to output text as usual, eg with:
> "Image1.Canvas.TextOut()".  (or whatever it is, I don't recall exactly)
>
> This may already work, I haven't tried it

No, it doesn't, I'm afraid.

> What I have used is:
>
>  dc := Canvas.Handle;
>  SetBkMode(dc,  TRANSPARENT);
>  LCLIntf.ExtUTF8Out(dc, X, Y, 0, @ARect, Text, Length, nil);
>
> ARect is a TRect thats specifies where the text goes. Unless you use
> clipping, only the top edge matters (since the background is transparent
> too)
>
> Example can be found in SynEdit:  components\synedit\syntextdrawer.pp
> line 1175 (the line refers to the SVN version; use search otherwise);
> the BKMode is set in synedits main unit.

I've found an easier way:

Set Image1.Canvas.Bruch.Style:=bsClear.

Works fine.

___
Lazarus mailing list
Lazarus@lazarus.freepascal.org
http://www.lazarus.freepascal.org/mailman/listinfo/lazarus


Re: [Lazarus] Clear font backgrounds

2009-04-13 Thread Martin Friebe
Dave Coventry wrote:
> Hi Martin, Thanks for the response.
>
> 2009/4/13 Martin Friebe :
>   
>> uses LCLType, LCLIntf;
>>
>>  SetBkMode(Image1.Canvas.Handle,  TRANSPARENT);
>> 
>
> Yes, I do seem to have these functions.
>
>   
>> You may have to use  LCLIntf.ExtTextOut()
>> 
>
> I'm not sure I understand.
>
> Do you mean Image1.Canvas.LCLIntf.ExtTextOut()?
>
>
>   
Nope,

After "SetBKMode" try to output text as usual, eg with: 
"Image1.Canvas.TextOut()".  (or whatever it is, I don't recall exactly)

This may already work, I haven't tried it

What I have used is:

  dc := Canvas.Handle;
  SetBkMode(dc,  TRANSPARENT);
  LCLIntf.ExtUTF8Out(dc, X, Y, 0, @ARect, Text, Length, nil);

ARect is a TRect thats specifies where the text goes. Unless you use 
clipping, only the top edge matters (since the background is transparent 
too)

Example can be found in SynEdit:  components\synedit\syntextdrawer.pp 
line 1175 (the line refers to the SVN version; use search otherwise); 
the BKMode is set in synedits main unit.

Martin


___
Lazarus mailing list
Lazarus@lazarus.freepascal.org
http://www.lazarus.freepascal.org/mailman/listinfo/lazarus


Re: [Lazarus] Problem with TFloatSpinEdit component

2009-04-13 Thread Graeme Geldenhuys
On Mon, Apr 13, 2009 at 12:43 PM, Paul Parkyn  wrote:
> Vincent Snijders wrote:
>>> Upgrading to 0.9.27 is not safe, it is changing every day. Graeme uses a
>>> particular revision of 0.9.27, that he found safe.
>>>
>>> Vincent
>>>
> thank you Vincent for a timely reminder.

Vincent is correct. Before I try a new version or revision of Lazarus
I make a note of which revision I was using. Then update and test. If
something is major wrong, I revert back to the previous revision I
used.

Alternatively, you can simply back-port the fixes in TFloatSpinEdit to
a 0.9.26.x version.


Regards,
  - Graeme -


___
fpGUI - a cross-platform Free Pascal GUI toolkit
http://opensoft.homeip.net/fpgui/
___
Lazarus mailing list
Lazarus@lazarus.freepascal.org
http://www.lazarus.freepascal.org/mailman/listinfo/lazarus


Re: [Lazarus] Clear font backgrounds

2009-04-13 Thread Dave Coventry
Hi Martin, Thanks for the response.

2009/4/13 Martin Friebe :
> uses LCLType, LCLIntf;
>
>  SetBkMode(Image1.Canvas.Handle,  TRANSPARENT);

Yes, I do seem to have these functions.

> You may have to use  LCLIntf.ExtTextOut()

I'm not sure I understand.

Do you mean Image1.Canvas.LCLIntf.ExtTextOut()?

___
Lazarus mailing list
Lazarus@lazarus.freepascal.org
http://www.lazarus.freepascal.org/mailman/listinfo/lazarus


Re: [Lazarus] Notes on 'remove unused units' codetool

2009-04-13 Thread Lee Jenkins
Alexander Klenin wrote:
> On Sun, Apr 12, 2009 at 16:26, Mattias Gaertner
>  wrote:
>>> I am not sure how hard it is to implement,
>> I know a good IDE.
> I do not understand. What IDE?
> 

I think Mattias was referring to the the Lazarus IDE ;)

--
Warm Regards,

Lee
___
Lazarus mailing list
Lazarus@lazarus.freepascal.org
http://www.lazarus.freepascal.org/mailman/listinfo/lazarus


Re: [Lazarus] Clear font backgrounds

2009-04-13 Thread Martin Friebe
Dave Coventry wrote:
> Hi,
>
> I'm using Image1.Convas.TextOut and I need the font background to be clear.
>
> Does anyone know how to achieve this?
>   
uses LCLType, LCLIntf;

  SetBkMode(Image1.Canvas.Handle,  TRANSPARENT);

You may have to use  LCLIntf.ExtTextOut()

Best Regards
Martin

___
Lazarus mailing list
Lazarus@lazarus.freepascal.org
http://www.lazarus.freepascal.org/mailman/listinfo/lazarus


[Lazarus] Interesting TextMate and RedCar feature

2009-04-13 Thread ik
Hello,

RedCar and TextMate have interesting feature:

Lets say I change the name of a function, class, variable etc...
So every place that reference to that symbol that I have changed, changed
while I type the new name according to my changes.

It's better then choosing only to rename something using a refactoring
option.

(you can see it here
http://redcareditor.com/wp-content/uploads/2008/05/a1.gif)

Just to show this option, nothing more :)

Ido

http://ik.homelinux.org/
___
Lazarus mailing list
Lazarus@lazarus.freepascal.org
http://www.lazarus.freepascal.org/mailman/listinfo/lazarus


Re: [Lazarus] Free Pascal version 2.2.4 released

2009-04-13 Thread Benito van der Zander
Hi,
is there a fpc download which has the same structure like the fpc the 
Lazarus installer has?
The binary package doesn't contain the rtl source (which seems to be 
necessary for code completion)
And the source package also contains the source of the compiler which 
isn't actually needed.
(actually I didn't check if this is true for 2.2.4, but it was so with 
2.2.x 0<=x<=2)
Although downloading both and merging them work, it waste time and 
traffic...

Benito
___
Lazarus mailing list
Lazarus@lazarus.freepascal.org
http://www.lazarus.freepascal.org/mailman/listinfo/lazarus


[Lazarus] Clear font backgrounds

2009-04-13 Thread Dave Coventry
Hi,

I'm using Image1.Convas.TextOut and I need the font background to be clear.

Does anyone know how to achieve this?

Thanks,

Dave Coventry
___
Lazarus mailing list
Lazarus@lazarus.freepascal.org
http://www.lazarus.freepascal.org/mailman/listinfo/lazarus


Re: [Lazarus] Problem with TFloatSpinEdit component

2009-04-13 Thread Paul Parkyn
Vincent Snijders wrote:
>> Upgrading to 0.9.27 is not safe, it is changing every day. Graeme uses a 
>> particular revision of 0.9.27, that he found safe.
>>
>> Vincent
>> 
thank you Vincent for a timely reminder.
Regards Paul.
___
Lazarus mailing list
Lazarus@lazarus.freepascal.org
http://www.lazarus.freepascal.org/mailman/listinfo/lazarus


Re: [Lazarus] Free Pascal version 2.2.4 released

2009-04-13 Thread Chris37

Joost van der Sluis a écrit :

Op maandag 13-04-2009 om 11:04 uur [tijdzone +1100], schreef Alexander
Klenin:
  

On Mon, Apr 13, 2009 at 03:19, Joost van der Sluis  wrote:


The Free Pascal team is pleased to announce that version 2.2.4 has been
released and is available for download for all major platforms:
  

Congratulations to FPC team.



Thanks.

  

The link to user changes from the announcement on freepascal.org site
is pointing
to a changes from previous release.



I've changed it.

Joost.

___
Lazarus mailing list
Lazarus@lazarus.freepascal.org
http://www.lazarus.freepascal.org/mailman/listinfo/lazarus


  

Thank all for this :)
___
Lazarus mailing list
Lazarus@lazarus.freepascal.org
http://www.lazarus.freepascal.org/mailman/listinfo/lazarus


Re: [Lazarus] Free Pascal version 2.2.4 released

2009-04-13 Thread Joost van der Sluis
Op maandag 13-04-2009 om 11:04 uur [tijdzone +1100], schreef Alexander
Klenin:
> On Mon, Apr 13, 2009 at 03:19, Joost van der Sluis  wrote:
> >
> > The Free Pascal team is pleased to announce that version 2.2.4 has been
> > released and is available for download for all major platforms:
> 
> Congratulations to FPC team.

Thanks.

> The link to user changes from the announcement on freepascal.org site
> is pointing
> to a changes from previous release.

I've changed it.

Joost.

___
Lazarus mailing list
Lazarus@lazarus.freepascal.org
http://www.lazarus.freepascal.org/mailman/listinfo/lazarus


[Lazarus] OCX / ActiveX

2009-04-13 Thread Robert
is there any possibility to use an ActiveX component from Lazarus 
on Windows - at least low level. Any HOW-TO / example?
Its about a hardware driver which is only accessible through an 
ActiveX DLL.

___
Lazarus mailing list
Lazarus@lazarus.freepascal.org
http://www.lazarus.freepascal.org/mailman/listinfo/lazarus