[Lazarus] Need help about printer Custom Size

2009-05-01 Thread Coppola Ing. Salvatore
I need to print on a non standard size paper and this should be done 
directly from the application without the printersetupdialog. How to set 
the new size? Any help will be appreciate
Salvatore
___
Lazarus mailing list
Lazarus@lazarus.freepascal.org
http://www.lazarus.freepascal.org/mailman/listinfo/lazarus


Re: [Lazarus] Why we chose Object Pascal instead

2009-04-18 Thread Coppola Ing. Salvatore
Giuliano Colla wrote:
 waldo kitty ha scritto:
   
 Hans-Peter Diettrich wrote:
 
 Graeme Geldenhuys schrieb:

   
 I can't agree more... We have had this exact same issue in our company
 (before I arrived). They hired cheap (inexperienced) developers that
 caused havoc in the code. They make the GUI seem fine for a while, but
 underneath the design (if there actually was a design) is totally
 rubbish and unable to cope with new requirements. Hence the reason I
 was commissioned to do a total rewrite.
 
 That's why neither Cobol nor VB will ever die: they make secure 
 long-term jobs
   
 that's also why real coders do not comment their source code ;)

 

 We had a guy who'd found an even more clever way. He did comment the 
 code, but his comments reported what the code didn't do, instead of what 
 the code was doing. Sort of an embedded and disguised TODO list, which 
 could easily lead to believe that a feature was implemented, when 
 actually it wasn't!


   
he, he.. !! very funny (ho riso di cuore!) :-D
___
Lazarus mailing list
Lazarus@lazarus.freepascal.org
http://www.lazarus.freepascal.org/mailman/listinfo/lazarus


Re: [Lazarus] Italian users

2008-12-11 Thread Coppola Ing. Salvatore
Giuliano Colla wrote:
 Giuseppe Fava ha scritto:

   
 hi everybody,
 I'm thinking about to create an italian lazarus community and I'd like
 to know how many Italians are reading this list and how many of these
 are interested...

 Giuseppe

  

 
 Here's one. Even if in the last months I've been too busy to partecipate 
 actively.
  From the length of this thread, I'd gather that we're not too many ;-)

 Giuliano

   
Here's another one :-) , but programming it's for sure not a job for me 
:-[ , just an hobby so this list it's enought (very interesting whit 
such Professors like Mattias Michael Vincent Felipe Marc Paul Jesus 
Joost Florian Micha and sorry if I forgot someone! :-) )
Salvatore
___
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 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 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


[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


Re: [Lazarus] Terminal window

2008-12-09 Thread Coppola Ing. Salvatore
svaa wrote:
 Hello:

 I have 0.9.26 on Ubuntu 7.10. I am writing a GUI program, since debugger 
 has problems to check the values of variables, I want to output debug 
 data with writeln but I  can't get a terminal with if it is not 
 console application.

 How can I get a to have the GUI program running and a terminal window also?

   
Project -- Compiler Options -- Linking Tab -- uncheck win32 gui 
application

 Regards
 Santiago A.

 ___
 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] OT: too stupid for SVN

2008-12-06 Thread Coppola Ing. Salvatore
Lukas Gradl wrote:
 Lukas Gradl schrieb:
   
 Hi!

 After beeing ill for some weeks, I'm just starting to work again.

 So, first thing was to make a 'svn up' in my Lazarus-Repository (which 
 was originally checked out by 'svn co'.

 Now I've changed some files locally which I now want to set back to the 
 versions in the repository, discarding my changes.

 But here's the problem - I can't figure out how to do that.
 Would anyone be so kind and point me to the right direction?

 regards
 Lukas
 


 Thanks to all that answered so fast (Andrew, Joost, Alexa,...)
 That's what I was looking for...

 regards
 Lukas

   

To avoid problems try to work in a copy extra SVN:
try:
svn export -force yourExtraSVNlazarusPath

Salvatore

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


Re: [Lazarus] svn 17017: packages won't install

2008-10-18 Thread Coppola Ing. Salvatore
Tom Lisjac wrote:
 svn 17017

 Packages compile and ide rebuilds but the new components never show up
 in the palette or menus.

 Tried sqlite, prettyformat and editortoolbar.
 ___
 Lazarus mailing list
 Lazarus@lazarus.freepascal.org
 http://www.lazarus.freepascal.org/mailman/listinfo/lazarus

   
The same happen to me some days ago under Ubuntu. I have two lazarus
folders (one stable and one for test). Thinking to build LazTest I was
building LazStable because the Lazarus directory in LazTest was the
LazaStable folder.
Check  Environment  -- Environment options ...
File Tab
The Lazarus directory is the one you are trying to build

Salvatore

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


Re: [Lazarus] GTK2 is now the default widgetset

2008-10-07 Thread Coppola Ing. Salvatore
Mattias Gärtner wrote:
 The default widgetset was changed from gtk1 to gtk2 on Linux, BSD, Sparc.


 Mattias

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

   
Thanks to all you.

Failed to compile under Ubuntu:

Free Pascal Compiler version 2.2.0 [2008/04/01] for x86_64
Copyright (c) 1993-2007 by Florian Klaempfl
Target OS: Linux for x86-64
Compiling jitform.pas
jitform.pas(100,38) Error: identifier idents no member SetDesignInstance
jitform.pas(100,55) Error: Illegal expression
jitform.pas(100,55) Fatal: Syntax error, ; expected but ( found
Fatal: Compilation aborted
make[2]: *** [jitform.ppu] Error 1
make[2]: Leaving directory 
`/home/salvatore/Programs/lazarus/designer/jitform'
make[1]: *** [jitform_all] Error 2
make[1]: Leaving directory `/home/salvatore/Programs/lazarus/designer'
make: *** [designer] Error 2
[EMAIL PROTECTED]:~/Programs/lazarus$


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


Re: [Lazarus] GTK2 is now the default widgetset

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

   
 Mattias Gärtner wrote:
 
 The default widgetset was changed from gtk1 to gtk2 on Linux, BSD, Sparc.


 Mattias

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


   
 Thanks to all you.

 Failed to compile under Ubuntu:

 Free Pascal Compiler version 2.2.0 [2008/04/01] for x86_64
 Copyright (c) 1993-2007 by Florian Klaempfl
 Target OS: Linux for x86-64
 Compiling jitform.pas
 jitform.pas(100,38) Error: identifier idents no member SetDesignInstance
 

 SetDesignInstance was introduced with fpc 2.2.1 and is needed for designtime
 Frames (the mail thread subject is misleading).

 Can you use fpc 2.2.2?
   

It's OK, :-)
thanks a lot!
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] Same executable behaves differently on different windows machines

2008-07-24 Thread Coppola Ing. Salvatore
Burkhard Carstens wrote:
 Am Mittwoch, 23. Juli 2008 10:35 schrieb Emmanouil Paissios:
   
 Hi all,

 I recently developed a program using lazarus and observed that the
 same executable for windows, performs completely faulty computations
 in a specific computer to which, unfortunately, I do not have much
 access, since it is the laptop of my supervisor. The aforementioned
 machine runs windows xp, yet in other windows xp and windows 2000
 versions I've tried, the program worked fine, also under wine. The
 project compiled for linux and mac behaved correctly.

 The program only performs various calculations according to a given
 input specified by the gui and plots several charts. No input files,
 no output files and no environment variables are used.

 I would appreciate any ideas of why something like this could
 possibly occur.
 

 First thing that comes to mind is different locale setting, i.e. decimal 
 separator etc. E.g. assuming the gui inputs are some floating point 
 values entered in edit fields and later converted to float with 
 StrToFloat, the conversion will fail, if the edit contains 1.23 but 
 the systems decimal separator is set to , (like e.g. on a german 
 system) and thus expects 1,23.
   

In that case can help to set

  DecimalSeparator:=',';
  ThousandSeparator:='.';

or viceversa
at main form create event
Regards
Salvatore
 regards
  Burkhard


 ___
 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] Colouring StringGrids

2008-07-15 Thread Coppola Ing. Salvatore
Dave Coventry wrote:
 Hi Hector,

 Thanks for the help.

 I've tried the code as you suggest, but it only seems to affect the
 selected row.

 I'm having difficulty following the logic process.
 ___
 Lazarus mailing list
 Lazarus@lazarus.freepascal.org
 http://www.lazarus.freepascal.org/mailman/listinfo/lazarus

   
Maybe this can help yuo:
procedure TForm1.StringGrid1DrawCell(Sender: TObject; aCol, aRow: Integer;
aRect: TRect; aState: TGridDrawState);
begin
  if (aCol=aRow) then begin
StringGrid1.Canvas.Brush.Color:=clYellow;
StringGrid1.Canvas.Rectangle(StringGrid1.CellRect(aCol,aRow));
  end;
end;

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