Re: [Lazarus] TBitmapCanvas public

2008-12-11 Thread Marc Weustink
Coppola Ing. Salvatore wrote:
 Mattias Gärtner wrote:
 Zitat von Paul Ishenin webpi...@mail.ru:

   
 Coppola Ing. Salvatore пишет:
 
 Coppola Ing. Salvatore wrote:

   
 Hi,
 can the TBitmapCanvas be declared public (I mean before
 implementation) in the unit Graphics?

 
 I assume is NOT!

   
 No, assume silence as nobody remember why it is so and nobody have time
 to look :(
 
 Because there was never a reason to make it public. Private things can be
 changed easier.
 Why should it be made public?

   
 
 There are some Printer Preview such as PagePrinter based on Windows 
 TMetafile and TMetafileCanvas. Replacing TMetafile with TBitmap and 
 TMetafileCanvas with TBitmapCanvas with some little change they can 
 works under Linux and other OS to.

I do understand that a TMetafile needs a TMetafileCanvas and that it is 
therefore declared, however I don't see why a TBitmapCanvas is needed 
public when you have TBitmap.

Marc

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


Re: [Lazarus] TBitmapCanvas public

2008-12-11 Thread Salvatore Coppola
2008/12/12 Marc Weustink m...@dommelstein.net

 Coppola Ing. Salvatore wrote:
  Mattias Gärtner wrote:
  Zitat von Paul Ishenin webpi...@mail.ru:
 
 
  Coppola Ing. Salvatore пишет:
 
  Coppola Ing. Salvatore wrote:
 
 
  Hi,
  can the TBitmapCanvas be declared public (I mean before
  implementation) in the unit Graphics?
 
 
  I assume is NOT!
 
 
  No, assume silence as nobody remember why it is so and nobody have time
  to look :(
 
  Because there was never a reason to make it public. Private things can
 be
  changed easier.
  Why should it be made public?
 
 
 
  There are some Printer Preview such as PagePrinter based on Windows
  TMetafile and TMetafileCanvas. Replacing TMetafile with TBitmap and
  TMetafileCanvas with TBitmapCanvas with some little change they can
  works under Linux and other OS to.

 I do understand that a TMetafile needs a TMetafileCanvas and that it is
 therefore declared, however I don't see why a TBitmapCanvas is needed
 public when you have TBitmap.


OK I will try to understand better TBitmap
Thanks
Salvatore


 Marc

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

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


Re: [Lazarus] TBitmapCanvas public

2008-12-10 Thread Coppola Ing. Salvatore
Coppola Ing. Salvatore wrote:
 Hi,
 can the TBitmapCanvas be declared public (I mean before 
 implementation) in the unit Graphics?

I assume is NOT!

 I'm trying to replace the TMetafile  TMetafileCanvas in some 
 GraphPrinters units.
 Thanks

 Salvatore


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


Re: [Lazarus] TBitmapCanvas public

2008-12-10 Thread Paul Ishenin


Coppola Ing. Salvatore пишет:
 Coppola Ing. Salvatore wrote:
   
 Hi,
 can the TBitmapCanvas be declared public (I mean before 
 implementation) in the unit Graphics?
 

 I assume is NOT!
   
No, assume silence as nobody remember why it is so and nobody have time 
to look :(

Best regards,
Paul Ishenin.
___
Lazarus mailing list
Lazarus@lazarus.freepascal.org
http://www.lazarus.freepascal.org/mailman/listinfo/lazarus


Re: [Lazarus] TBitmapCanvas public

2008-12-10 Thread Felipe Monteiro de Carvalho
I don't know anything about that class, but if you describe better
what you are trying to do I may suggest an alternative.

-- 
Felipe Monteiro de Carvalho
___
Lazarus mailing list
Lazarus@lazarus.freepascal.org
http://www.lazarus.freepascal.org/mailman/listinfo/lazarus


Re: [Lazarus] TBitmapCanvas public

2008-12-10 Thread Mattias Gärtner
Zitat von Paul Ishenin [EMAIL PROTECTED]:



 Coppola Ing. Salvatore пишет:
  Coppola Ing. Salvatore wrote:
 
  Hi,
  can the TBitmapCanvas be declared public (I mean before
  implementation) in the unit Graphics?
 
 
  I assume is NOT!
 
 No, assume silence as nobody remember why it is so and nobody have time
 to look :(

Because there was never a reason to make it public. Private things can be
changed easier.
Why should it be made public?


Mattias

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


Re: [Lazarus] TBitmapCanvas public

2008-12-10 Thread Coppola Ing. Salvatore
Mattias Gärtner wrote:
 Zitat von Paul Ishenin [EMAIL PROTECTED]:

   
 Coppola Ing. Salvatore пишет:
 
 Coppola Ing. Salvatore wrote:

   
 Hi,
 can the TBitmapCanvas be declared public (I mean before
 implementation) in the unit Graphics?

 
 I assume is NOT!

   
 No, assume silence as nobody remember why it is so and nobody have time
 to look :(
 

 Because there was never a reason to make it public. Private things can be
 changed easier.
 Why should it be made public?

   

There are some Printer Preview such as PagePrinter based on Windows 
TMetafile and TMetafileCanvas. Replacing TMetafile with TBitmap and 
TMetafileCanvas with TBitmapCanvas with some little change they can 
works under Linux and other OS to.

thanks all
Salvatore
 Mattias

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

   

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


Re: [Lazarus] TBitmapCanvas public

2008-12-10 Thread Mattias Gärtner
Zitat von Coppola Ing. Salvatore [EMAIL PROTECTED]:

[...]
  can the TBitmapCanvas be declared public (I mean before
  implementation) in the unit Graphics?
[...]

 There are some Printer Preview such as PagePrinter based on Windows
 TMetafile and TMetafileCanvas. Replacing TMetafile with TBitmap and
 TMetafileCanvas with TBitmapCanvas with some little change they can
 works under Linux and other OS to.

What TMetafile do you mean?
There is none in the LCL.


Mattias

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


Re: [Lazarus] TBitmapCanvas public

2008-12-10 Thread Coppola Ing. Salvatore
Mattias Gärtner wrote:
 Zitat von Coppola Ing. Salvatore [EMAIL PROTECTED]:

   
 [...]
 
 can the TBitmapCanvas be declared public (I mean before
 implementation) in the unit Graphics?
 
 [...]

 There are some Printer Preview such as PagePrinter based on Windows
 TMetafile and TMetafileCanvas. Replacing TMetafile with TBitmap and
 TMetafileCanvas with TBitmapCanvas with some little change they can
 works under Linux and other OS to.
 

 What TMetafile do you mean?
 There is none in the LCL.

   
Yes I know, for instance there is the Luís Rodrigues TMetafile 
(mymetafilepkg.lpk) in the CCR
that wrap the Windows EnhMetafile API (so Windows specific) and some 
extra lazarus packages like PagePrinter uses Metafiles. Replacing 
Metafile with Bitmap can remove this MS Windows API dependences. To do 
this, TBitmapCanvas, should be visible in PagePrinter units by mean 
Graphics unit.

Salvatore
 Mattias

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

   

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


Re: [Lazarus] TBitmapCanvas public

2008-12-10 Thread Hans-Peter Diettrich
Paul Ishenin schrieb:

 can the TBitmapCanvas be declared public (I mean before 
 implementation) in the unit Graphics?
 
 I assume is NOT!
   
 No, assume silence as nobody remember why it is so and nobody have time 
 to look :(

IMO there exist reasons why the Canvas should be available only on 
demand, controlled inside the component.

DoDi

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


[Lazarus] TBitmapCanvas public

2008-12-09 Thread Coppola Ing. Salvatore
Hi,
can the TBitmapCanvas be declared public (I mean before 
implementation) in the unit Graphics?
I'm trying to replace the TMetafile  TMetafileCanvas in some 
GraphPrinters units.
Thanks

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