Re: [Lazarus] Clipboard.HasFormat issue

2009-03-28 Thread Mehmet Erol Sanliturk
On Saturday 28 March 2009 12:36:53 pm Michael Van Canneyt wrote:
 Hi,

 Is there a reason why ClipBoard.HasFormat() is so slow ?

 Putting a call to ClipBoard.HasFormat() in an OnUpdate handler of an action
 coupled to a toolbutton, seriously slows down an application, to the point
 of being unusable. If I comment out the call, the application responds
 normally.

 

 The strange thing is that if something suitable is on the clipboard,
 the application responds normally.

 Michael.
 

I do not know exactly but a possibility may be to wait an acceptable value to 
appear there . This may be tested as follows :
Assume there is no any acceptable value in clipboard .
When your application starts to wait , an acceptable value may be appended to 
clipboard from another application .
If it gets this value immediately we may say that it is waiting for a proper 
value to appear there .
If it does not respond immediately and continues to wait , there is another 
problem .


Thank you very much .

Mehmet Erol Sanliturk




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


Re: [Lazarus] Valladolid Programming Contest simple test fails at compile?

2009-03-27 Thread Mehmet Erol Sanliturk
On Friday 27 March 2009 08:08:20 pm JoshyFun wrote:
 Hello Thierry,
 TCIs there another way recommended for
 TC these contests?

 I have none experience on the contest scene, but eof in the stdin
 looks nonsense for me when you input data using the keyboard, 'cos
 after the first line (readln) the eof is a fact ;)

 eof or empty line seems to be more logical to me. You should check
 how the program works if you feed stdin from a file:

 test.exe  file.txt


Additionally :

Between   _readln _ and _until eof_ statements , there should be an 
if statement
such as 

if not eof
then
begin
  { statements between readln and until eof ... }
end ;


because when EOF is seen those  stements should not be executed 
because there is no valid input at that state .

Thank you very much .

Mehmet Erol Sanliturk

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


Re: [Lazarus] Valladolid Programming Contest simple test fails at compile?

2009-03-26 Thread Mehmet Erol Sanliturk
On Thursday 26 March 2009 05:16:32 pm Thierry Coq wrote:
 

   TEST PROGRAM

 program Test1;

 var
   i, j : integer; //input data
   k, l : integer; //interval
   m: integer; //index
   maxCycles : integer; //max number of cycles for the interval
   Cycles: integer;

 // This function computes the number of cycles for the 3N+1 algorithm.
 function FindCycles(const value: integer):integer;
 begin
   result := 1;
   if value  1 then
   begin
 if (value mod 2)  0 then
   result := 1+FindCycles(3*value+1)
 else
   result := 1+FindCycles(value div 2);
   end;
 end;

 // main program
 begin
   repeat
 // get the input interval
 readln(i,j);
 k := i;
 l := j;
 if ji then
 begin
   k := j;
   l := i;
 end;

 //iterating over each element
 maxCycles := 0;
 for m := k to l do
 begin
   Cycles := FindCycles( m);
   if Cycles  maxCycles then
 maxCycles := Cycles;
 end;

 //write the results
 writeln(i,' ',j,' ', maxCycles);

   until eof;
 end.

  END OF TEST PROGRAM
 ___
 


At until eof , there should be a file variable name as eof ( FN ) 
where FN may be

var FN : Text ;
or
var FN : File ... ;

Thank you very much .

Mehmet Erol Sanliturk







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


Re: [Lazarus] Valladolid Programming Contest simple test fails at compile?

2009-03-26 Thread Mehmet Erol Sanliturk
On Thursday 26 March 2009 06:47:45 pm Mehmet Erol Sanliturk wrote:
 On Thursday 26 March 2009 05:16:32 pm Thierry Coq wrote:
TEST PROGRAM
 
  program Test1;
 
  var
i, j : integer; //input data
k, l : integer; //interval
m: integer; //index
maxCycles : integer; //max number of cycles for the interval
Cycles: integer;
 
  // This function computes the number of cycles for the 3N+1 algorithm.
  function FindCycles(const value: integer):integer;
  begin
result := 1;
if value  1 then
begin
  if (value mod 2)  0 then
result := 1+FindCycles(3*value+1)
  else
result := 1+FindCycles(value div 2);
end;
  end;
 
  // main program
  begin
repeat
  // get the input interval
  readln(i,j);
  k := i;
  l := j;
  if ji then
  begin
k := j;
l := i;
  end;
 
  //iterating over each element
  maxCycles := 0;
  for m := k to l do
  begin
Cycles := FindCycles( m);
if Cycles  maxCycles then
  maxCycles := Cycles;
  end;
 
  //write the results
  writeln(i,' ',j,' ', maxCycles);
 
until eof;
  end.
 
   END OF TEST PROGRAM
  ___

 At until eof , there should be a file variable name as eof ( FN )
 where FN may be

 var FN : Text ;
 or
 var FN : File ... ;

 



I am sorry that the error is NOT the above .
I compiled the program . It is giving error to name result within function
FindCycles as Identifier not found .

If a variable as
var result : integer ;

is defined it is compiled correctly with a warning 

Function result does not seem to be set .

Insertion of statement 

FindCycles := result ;

is removing warning statement .


Thank you very much .

 Mehmet Erol Sanliturk









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


Re: [Lazarus] Large Integer errors

2009-02-14 Thread Mehmet Erol Sanliturk
On Saturday 14 February 2009 12:56:50 pm Dave Coventry wrote:
 Yes, great, thanks.

 Would there be any error or would Lazarus just continue as if nothing
 had happened?

 2009/2/14 Howard Page-Clark h...@talktalk.net:
  On Sat, 14 Feb 2009 12:30:55 +0200
 
  Dave Coventry dgcoven...@gmail.com wrote:
  function mycalc( num1,num2: real):integer;
  begin
Result:=trunc(num1*num2);
  end;
 
  How can I protect from the product of the two numbers being too big?
 
  If it's too big I want to discard it anyway.
 
  function mycalc( num1,num2: real):integer;
   begin
Result:=trunc(num1*num2);
   if result  maxint then result := 0;
   end;
 
  Would this do what you want?
 
 
  Howard Page-Clark h...@talktalk.net
  ___
  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



My application is to use first REAL arithmetic :


Var V : Extended  ;
 or 
Var V : Real ; 
or 
Var V : Double ;

...

  V := num1 ;
  V := V * num2 ;

 If ( V  Your_Maximum_Allowed_Value )
Then Result := trunc ( num1 * num2 ) 
Else Message ... about overflow ...

If you compare run1 * run2 directly maxint ,
multiplication may give overflow when result of multiplication is 
theoretically large than maxint .


Thank you very much .

Mehmet Erol Sanliturk























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


Re: [Lazarus] Linux

2009-01-21 Thread Mehmet Erol Sanliturk


Dear Leslie ,

I am also studying many Linux , FreeBSD , Solaris , OpenSolaris 
distributions
to find an easily  usable  one  with the condition that  my program when 
becomes ready
can be run on it as attached to a network .

I bought more than 10 hard disks with a smallest ( GigaByte / price ) 
ratio value
( some 250 GB , some 320 GB ... ) .

I am installing an OS on a disk in a PC , then I am attaching other one 
to the
same PC and installing a new one . I am not using partitions and not 
different
distributions in disks connected at the same time because they are changing
structure of first hard disk .

My work PC is around 2.5 GHz Intel Pentium with an Intel main board .

For Delphi programming I am using XP Professional .
Up to now I could not be able to obtain a fully working copy of my program
compiled by Free Pascal in GUI mode due to Delphi and Free Pascal 
differences.
After obtaining that I will start to compile it for Linux , FreeBSD , 
Solaris .

For Internet access I am using an XP Home and another PC with Mandriva 
Free 2008.0 .

My main aim is also to be able to find a best combination to advice to 
the users
because in a data base environment users need many PCs and at least one 
server .


There are pages in Internet comparing Linux and BSD distributions .

If you search

benchmarking of linux distributions
comparison of linux distributions

benchmarking of BSD distributions
comparison of BSD distributions

in Google , you will find a lot of pages about this subject .

In your case , you did not mention exact listing of your hardware components
and services running in your PC . 

For Lazarus  , selected widget set  ( GTK ,  GTK2 )
may affect   response times  . There are many messages about that issue 
. If you search
Lazarus mailing list,  you may find messages about that issue also .


My experience is that there are not Lazarus performance differences due to
used OS .

If you have another PC running XP , you may disconnect its hard disk  and
attach your other OS hard disk to the same machine and compare the 
performance
of the SAME Lazarus configuration ( Version , SVN , Widget Set , etc. ) .


At present I can not suggest another solution to your problem because
I could not be able reach to a useful conclusion on my studies yet .


With my best wishes for your success .


Mehmet Erol Sanliturk





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


Re: [Lazarus] How to mimic MWSnap's Window Information feature on X11

2008-10-24 Thread Mehmet Erol Sanliturk


Dear Graeme Geldenhuys ,

http://delphi.icm.edu.pl/

Mega Indexes contain many free sources for hint handling .

A sample of files from a search on page using hint is
given below ( In other pages about Mega Indexes there are other files ) :




Delphi 5.0x freeware
Mega Library - All files :


http://delphi.icm.edu.pl/ftp/d30free/PDJ_DBCheck.zip
http://delphi.icm.edu.pl/ftp/d30free/PDJ_DBComEdit.zip
http://delphi.icm.edu.pl/ftp/d30free/texdbgrd.zip
http://delphi.icm.edu.pl/ftp/d20free/flatstyl.zip
http://delphi.icm.edu.pl/ftp/d20free/cc95v293.zip
http://delphi.icm.edu.pl/ftp/d30free/PDJ_Check.zip
http://delphi.icm.edu.pl/ftp/d30free/PDJ_ComEdit.zip
http://delphi.icm.edu.pl/ftp/d30free/sbpro.zip
http://delphi.icm.edu.pl/ftp/d40free/TListBoxRK.zip
http://delphi.icm.edu.pl/ftp/d50free/mschkb5.zip
http://delphi.icm.edu.pl/ftp/d30free/PDJ_PCheck.zip
http://delphi.icm.edu.pl/ftp/d30free/PDJ_Scrollers.zip
http://delphi.icm.edu.pl/ftp/d40free/PieList.zip
http://delphi.icm.edu.pl/ftp/d10free/yearplan.zip
http://delphi.icm.edu.pl/ftp/d50free/ztn-urls.zip
http://delphi.icm.edu.pl/ftp/d30free/PDJ_Button.zip
http://delphi.icm.edu.pl/ftp/d10free/grip21.zip
http://delphi.icm.edu.pl/ftp/d30free/assistant.zip
http://delphi.icm.edu.pl/ftp/d30free/ucsaf.zip
http://delphi.icm.edu.pl/ftp/d30free/PBPreviw.zip
http://delphi.icm.edu.pl/ftp/d20free/cooltray.zip
http://delphi.icm.edu.pl/ftp/d30free/xstatbar.zip
http://delphi.icm.edu.pl/ftp/d20free/pjhotlbl.zip
http://delphi.icm.edu.pl/ftp/d40free/exhint.zip
http://delphi.icm.edu.pl/ftp/d20free/jdurllbl.zip

http://www.rt-science.de/downloads/RtColorPicker.exe


Perhaps some of them may be useful for you ,

Thank you very much for all your efforts to make
Lazarus and Free Pascal better than the present status .


Mehmet Erol Sanliturk



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


[Lazarus] A sort program in rpsrt102.zip (1).

2008-08-25 Thread Mehmet Erol Sanliturk


Dear JoshyFun ,


(A)

An algorithm ( http://en.wikipedia.org/wiki/Algorithm )
and its implementation are different concepts , at least
in the sense that , for an algorithm there may be many
distinct implementations of it .


(B)

RPSORT program itself is written in 16-bit 8086 assembler
but its bit size is not related to the file size it sorts .


(C)
Personally , I am not writing assembler programs , and
I do not know 32-bit assembly programming .
Therefore , I am not able to convert it to a 32-bit
assembly program .
I think a programmer fluent in assembly language programming
can do it . I am not able to evaluate its difficultyness but
it is my opinion that many statements may be converted by replace
operations .

After this it may be used as embedded into a Pascal procedure or
may be used as a spawned process to sort a file .


(D)
To make a proper reply to your question I prepared a simple program
compiled with FPC
to demonstrate its sorting speed as follows :


 
Program Numbers ;
 
Var T : Text ;
 
Var M : LongInt ;
Var i : LongInt ;
 
Var p : Int64 ;
Var q : Int64 ;
 
Begin
 
M := 0 ;
 
Writeln ( 'Give number of values to generate :' ) ;
Readln ( M ) ;
 
If ( M  0 )
Then
Begin
 
Assign ( T , 'RNumbers.TXT' ) ;
ReWrite ( T ) ;
 
p := 9223372036854775807 ;
 
For i := 1 to M
Do
  Begin
 
  q := Random ( p )  ;
 
  Writeln ( T , q : 20 ) ;
 
  End ;
 
Close ( T ) ;
 
End
Else
Begin
Writeln ( 'Given value : ' , M , ' is NOT greater than zero .' ) ;
End ;
 
End .


 
Times are obtained in a PC
with Intel Pentium 4 CPU 3.00 GHz
   2 GB Memeory
and Windows XP Home Edition .


(E)

For each value of M as number of records ,
the following command has been applied :

   rpsort  rnumbers.txt  snumbers.txt

The RPSORT.COM is reporting the time used for sorting which
I checked by an actual clock and I have found them to be correct .

The results are as follows :


Number of records File size   Time required for sorting
as given for Mas MegaBytesas Hour : Minute : Second .
---   ---

  10 000  0.214 00 : 00 : 00.11 ( + Six 
program working )
100 000  2.2 00 : 00 : 01.43 ( + Six 
program working )
 1 000 00022.0 00 : 00 : 17.19 ( + Six 
program working )
 5 000 000  110.0 00 : 01 : 36.61 ( + Six 
program working )
   10 000 000  220.0 00 : 03 : 21.41 ( + Six program 
working )




only + Command Prompt working :

  5 000 000   110.0 00 : 01 : 11.24
10 000 000   220.0 00 : 02 : 28.41
25 000 000   550.0 00 : 06 : 29.47
  100 000 000 2200.0 Locked :

  I think file size should be less than 2147.0 
MegaBytes ,
  because of 32-bit MaxInt size ( 2 147 ... ... ) .
  It is locked after 2053 MegaBytes of its 
temporary file
  left behind after its locking .

   90 000 000 1980.0 01 : 32 : 45.98



When M = 10 000 000 :

 snumbers.txt which is already sorted
 is sorted as

   rpsort  snumbers.txt  tnumbers.txt


in time 00 : 01 : 50.84 .


 snumbers.txt which is already sorted in ascending order
 is sorted in descending order as


   rpsort /R  snumbers.txt  tnumbers.txt
 

in time 00 : 01 : 50.35 .


(F)
It is possible to generate multiple column files and
test it for multiple sort keys .
Details may be found in its documentation .



Thank you very much ,

Mehmet Erol Sanliturk

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


[Lazarus] A sort program in rpsrt102.zip .

2008-08-24 Thread Mehmet Erol Sanliturk

Dear Sirs ,


There is a program named as rpsort.com with its related sources
in rpsrt102.zip which may be found in the following address :

http://www.simtel.net/product.php?url_fb_product_page=51643

 or by an internet search with name   rpsrt102.zip  .


The following is a part from its readme :

--

This is being mailed to all those who either registered or inquired
  about RPSORT, written by my brother, Robert Pirko.


Robert Pirko, the author of RPSORT,
passed away on February 15, 1992.
He had not been ill , but just
suddenly collapsed and died.
You never know ...  


  RPSORT is now free for all to use, no payment is asked.  Also the
assembly language source code is free.

  The file RPSRT101.ZIP has been uploaded to a local (New York City) 
BBS:
 
NYACC 718 539-3064  (free access)

  This file contains version 1.01 of RPSORT and its documentation
plus the commented source code written in 8086 assembler for the
Borland Turbo Assembler 2.5.

  It is also available by mail for a payment of $5.00 to:

Alex Pirko
3881 Sedgwick Ave
Apt.6D
Bronx, NY 10463


--


rpsort.com is working perfectly under Windows XP ( with 8.3 format file 
names
( because its file name variable ( I think , due to IpNameExt DB 13 Dup 
(?) in its
  assembler source ) ) ) .


It is UNBELIEVABLY fast .

My suggestion is that it can be incorporated into a unit
( for example ,
as a procedure with a parameter
( containing giving definition of sort like its command-line parameter 
string ) ).

My opinion is that it may be useful to study it .


Thank you very much ,

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


[Lazarus] Broken links in page Page_Of_Code_Sites .

2008-08-06 Thread Mehmet Erol Sanliturk


Dear Sirs ,


Broken links in page :

http://wiki.lazarus.freepascal.org/Page_Of_Code_Sites

--

The following links are not available through the above page :

http://www.bsdg.org/resources/Delphi_Free_Components.html
http://www.mers.com/index.html
http://www.delphicity.net/
http://www.undu.com/
http://www.delphispirit.com/
http://www.innotts.co.uk/zephyr/linkslink.html
http://www.bsdg.org/resources/turbopower.html
http://www.pazcal.com/modules/news/
http://gdsoft.com/swag/swag.html
http://www.delphi3d.net/
http://pgd.netstarweb.com/
http://www.progdigy.com/modules.php?name=UIB
http://synapse.ararat.cz/index.htm
http://www.arrakis.es/~sigecom/SitesIngles.htm
http://www-rab.larc.nasa.gov/nmp/nmpLinks.htm
http://www.gnu.org/manual/manual.html/
http://www.ee.uwa.edu.au/~morris/Year2/PLDS210/ds_ToC.html

--

The following links may need to be redefined :

http://cc.borland.com/products.aspx?ProdID=1
http://clootie.narod.ru/
http://zeoslib.sourceforge.net/
http://www.win.tue.nl/~ccremers/pascalmpi/index.html
http://community.borland.com/article/0,1410,10280,00.html

--

The following link is displaying the page but it is redirected
to an unrelated page immediately :

http://ourworld.compuserve.com/homepages/tk_boyd/Tut.htm

--


Thank you very much ,

Mehmet Erol Sanliturk

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


[Lazarus] Usability of Free Software .

2008-08-05 Thread Mehmet Erol Sanliturk


Dear Sirs ,


During reading of pages of
 
www.marcocantu.com site ,

by starting from it and following links
I have reached to the following page
which I found it very useful
( at least for myself ) :

from
http://delphi.fosdal.com/2008/08/why-free-software-has-poor-usability.html

to
http://mpt.net.nz/archive/2008/08/01/free-software-usability
( Why Free Software has poor usability , and how to improve it )


If you have available time
a look at it may be useful for
software developers .


I want to give Common Lisp design and implementation
as a counter example to its Article 12
because Common Lisp development team decided
to communicate ONLY over ARPANET by MAILS
( around 1984 )
except two one-day face-to-face meetings .

 From these mails information about Common Lisp
has been disseminated to all of the audience and
documentation of the Common Lisp
has been generated .



Thank you very much ,

Mehmet Erol Sanliturk

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


[Lazarus] Lazarus Directory Structure .

2008-08-04 Thread Mehmet Erol Sanliturk


Dear Sirs ,


I want to suggest a directory structure for Lazarus which
will be constructed during installation of Lazarus .

Justification :

( All of the directory examples are given with respect
  to Windows and its directory symbols . )

At present , Lazarus is installed in the C:\lazarus\ and
its FPC in , as an example , C:\lazarus\fpc\2.2.2\ .

This structure is NOT allowing presence of different
Lazarus versions ( such as 0.9.24 - 2.2.0 ,
   0.9.25 - 2.2.0 ,
   0.9.25 - ... daily snapshots ,
   0.9.25 - 2.2.2rc1 ,
   0.9.25 - 2.2.2rc2 ,
   etc. .
  )
to reside in the system simultaneously .

Installing one is removing the another .

Renaming is possible but difficult
( requires renaming from desktop icon ( with its
internals ) to operating system All programs list entries to
PATH .


(A)

Suggested directory structure :

  C:\Lazarus\ 

with its sub-directories based on
( Version of Lazarus - Version of  FPC )
such as listed above :

  C:\Lazarus\0.9.24-2.2.0\
 
  C:\Lazarus\0.9.24-2.2.2rc1\
  C:\Lazarus\0.9.24-2.2.2rc2\
  C:\Lazarus\0.9.25-2.3.1\

etc. .


When Lazarus IDE Environment options panel is displayed
for any version group it will be seen as follows ,
as an example :


Lazarus directory ( default for all projects )
   C:\lazarus\0.9.24-2.2.0\

Compiler path ( e.g. ppc386.exe )
   C:\lazarus\0.9.24-2.2.0\fpc\2.2.0\ ...

And , in All Programs list , and under the Desktop
icons the names may be seen as follows ,
as an example :

   Lazarus 0.9.24 ( 2.2.0 )
   Lazarus 0.9.25 ( 2.2.2rc2 )
   Lazarus 0.9.25 ( 2.3.1 )
   etc.


(B)

It is seen that , all of the Lazarus variants
is using own ...\fpc\... directory which means
they are duplicates of others .

My other primary suggestion is to separate these
directories .

If a different FPC release is required , install it
under the C:\fpc\ directory with its own version
number .

When there are different programs which they are
not in FPC releases , these programs may be located
in a directory such as

  C:\lazarus\0.9.24-2.2.0\bin\i386-win32\ ...
( when they are dependent on Lazarus version )

or

  C:\lazarus\bin\i386-win32\ ...
( when they are independent from Lazarus version ) .

In that way , instead of holding ,

as an example ,
   ( 3 different Lazarus versions ) multiplied by
   ( 4 different FPC  versions ) directories
   which will be twelve directories .

there will be needed only

   ( 3 different Lazarus versions ) added by
   ( 4 different FPC  versions ) directories
   which will be seven directories .

In computing applications ( more replications )
is ( MUCH more difficulties ) .


(C)

Personally I tried to separate Lazarus and
FPC directories but I could not be successful
because it seems that Lazarus in some points
are constructing fpc related directory names
from parts . In this case , specification of
a different path from its default is not
matching to its constructed names .

Instead of such a name construction , a single
variable holding the fpc directory may be used
throughout in all of the sources .

Also changing FPC related directory names in
project related ( project1.lpi ) XML file is
not effective . It seems that Lazarus is NOT
reflecting the directory names in *.LPI file
into its internal names .


(D)

Such a directory structure may be very useful
because in a program development environment ,
during use of a stable version , it will be
possible to experiment with the new version(s)
without disturbing or destroying program
development process and without requirement
of a new computer for experimental works with
new version(s) .


Thank you very much ,

Mehmet Erol Sanliturk

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


[Lazarus] Changeability of Lazarus Project1 , Unit1 and Form1 names (4) .

2008-07-30 Thread Mehmet Erol Sanliturk


Dear Mattias ,

Personally I do not like to suggest unnecessary changes to sources ,
actually I always avoid such changes ,  because every change is a
potential error insertion point . Naturally unnecessary changes are
waste of efforts .


At the beginning , if project1 , unit1 , etc. names can be set during their
initial opening , it may be a nice improvement .


Changeability through the Project Options panel may be useful because
it remedies necessity of a  ( save all project parts , during this save
rename parts , re-load the same project ) for renaming within middle of 
work.
In the middle of the work we may assume that a change of name would be
appropriate : Project Options panel may supply this .

It is not necessary for me to modify the present project save dialogs
because they are designed very well  and they give last change point
if it may be considered necessary or suitable .
Removing of this facility is not necessary if the above changes also
made .



Thank you very much ,

Mehmet Erol Sanliturk
 
















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


[Lazarus] Lazarus Printer Components are giving Compilation Error .

2008-07-28 Thread Mehmet Erol Sanliturk


Dear Sirs ,




The following actions is giving the following message
within the Lazarus Messages window :

C:\lazarus\components\printers\win32\winutilprn.pas(353)
Error: Can't create archive file: lib\i386-win32\win32\libimpwinutilprn.a

C:\lazarus\components\printers\win32\winutilprn.pas(353)
Fatal: There were 1 errors compiling module, stopping



 From Lazarus IDE , from Project menu , New Project is selected .

Onto Form1 of the project1 ,

(A)

the PrinterSetupDialog component added
( no any other Components ) .

 From Lazarus IDE , Run menu , Quick Compile is selected .



(B)

the PrinterSetupDialog component is removed from the Form1 and
the PrintDialog component added
( no any other Components ) .

 From Lazarus IDE , Run menu , Quick Compile is selected .


(C)

the PrintDialog component is removed from the Form1 and
the PageSetupDialog component added
( no any other Components ) .

 From Lazarus IDE , Run menu , Quick Compile is selected .


-

 From Lazarus IDE , Help menu , About Lazarus dialog :

  Version : 0.9.25 beta
  Date: 2008-07-16
   
  FPC Version : 2.2.2
  SVN Revision : 15790
  i386-win-win32/win64

--


Thank you very much ,

Mehmet Erol Sanliturk

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


[Lazarus] Changeability of Lazarus Project1 , Unit1 and Form1 names (1) .

2008-07-24 Thread Mehmet Erol Sanliturk


Dear Sirs ,


Thank you very much dear  Mattias for reminder of templates .
I am sorry that I overlooked or forgotten the Object Inspector
Favorites panel Caption and Name fields : Form1 name may be 
changed there .
I remembered this point after sending my message but it was late .

When we inspect web pages or other resources about Pascal sources we see 
that
a lot of example projects are using these default names .

If you forgive me I will suggest that the same procedure may be called from
project options panel to give or set the name . This may be not 
difficult or a label
may be inserted there as a reminder . The same may be performed for 
Unit1.pas name .

After generation of project , if it is wanted to rename these names it 
is necessary to
rename names in all of the project files *.lpi , *.lpr , *.lfm , *.lrs , 
*.pas .
Forgetting one of them requires some new corrections . A few minutes in 
this era
is really very valuable .

Main unit is the Unit1.pas of the project1 . It may be named with 
other words .
Mine was only a tagging about the concept .

Personally I wish that Lazarus will grow much more beautifully over time 
based on
its present very beautiful state .
 
I think also new starters of Pascal learners , especially students . For 
us many things
may be very easy but for the students things are not so easy .


Thank you very much ,

Mehmet Erol Sanliturk

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


[Lazarus] Link to http://standards.freedesktop.org .

2008-07-22 Thread Mehmet Erol Sanliturk


Dear Sirs ,

Link to http://standards.freedesktop.org is available .
Within this page , there are sub-directories such as

basedir-spec/ which contains related files .

Thank you very much ,

Mehmet Erol Sanliturk




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


[Lazarus] Links to some software related web pages .

2008-07-22 Thread Mehmet Erol Sanliturk

Dear Sirs ,


The following links may be useful to software developers :

http://www.freedesktop.org/wiki/Specifications


The above link may be considered http version of
ftp-like page of :
http://standards.freedesktop.org/ 

The site
http://www.freedesktop.org/

 link is directing to

http://www.freedesktop.org/wiki

but there is no explicit links to sub-pages . It is necessary to
search page links on that page recursively one-by-one
which some of them does not give a useful sub-link .

The following links may be useful about compatibility :

http://www.linuxfoundation.org/
http://www.linuxfoundation.org/en/Developers

http://www.linuxfoundation.org/en/LSB

for Linux Standard Base (LSB) : I think the ideas in these pages are 
very important
for Upward  Compatibility , especially .

http://www.linuxfoundation.org/en/Application_Compatibility

Thank you very much ,

Mehmet Erol Sanliturk





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


[Lazarus] Using extensions for text file names .

2008-07-21 Thread Mehmet Erol Sanliturk

Dear Sirs ,

In \fpc\ and \lazarus\ directories , some text file names do not have an 
extension
such as *.TXT . This situation is causing difficulty in MS Windows because
when I ( or best , all of Windows users ) click on any one of these file 
names
Windows Explorer ALWAYS asking to select a program to open the file .

Would you please , consistently append an extension to text file names 
such as *.TXT
or any other extension suitable for you to text file names to remedy 
this difficulty .

Renaming here is not solving the problem because  every new build is 
coming without
text file name extensions .

Thank you very much ,

Mehmet Erol Sanliturk

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


[Lazarus] Installing Lazarus first time in FreeBSD 7 Stable ( 2008-06 ) .

2008-07-14 Thread Mehmet Erol Sanliturk


Dear Sirs ,

Installing Lazarus port as root  in FreeBSD 7 Stable ( 2008-06 ) is 
giving the following errors :

(1)

pkg_add -vr lazarus  is working but not like pkg_add -vr fpc because 
after fpc install , when it is used as
# fpc
it is starting to work . Contrary to this ,
# lazarus
is NOT working ( saying lazarus : Command not found. ) .

Then :

# cd /usr/ports/editors/lazarus
# make

During make ,
it is checking presence of  lazarus-0.9.24-0.tar.gz  and NOT finding 
it and downloading it , ...
it  is checking  presence of  fpc-2.2.0-source.tar.gz  and NOT finding 
it and downloading it , ...

After completion of make :

# ./lazarus
It is giving the following message :

Free Pascal sources not found . Some code functions will not work . It 
is recommended that you install it and set path
Environment - Environment Options - Files 

# cd work
# cd docs
# cd html

In this directory  ( /usr/ports/editors//lazarus/work/docs/html/ )
application of  update_html.sh is giving a number of errors :

cd  : ../../lcl/interfaces/gtk/ : No such file or directory .
cd : ../../lcl/ : No such file or directory .

In script , correcting ../../lc/ as ./lcl/ is not solving the 
problem , because other non-existent directories are listed after that 
with the other error including the message that fpdoc :  .. not found . .

(2)

make install giving the following error :
Error expanding embedded variable .

(3)

Is it possible to give information in your web site lazarus wiki : 
GETTING LAZARUS page , a complete
installation information on FreeBSD , since information on Linux is NOT 
applicable to FreeBSD because
their lazarus and fpc directory structures seem to be very different ?
A complete install script  would be very useful .

(4)

In my opinion ,
lazarus.tbz on 
ftp://ftp.FreeBSD.org/pub/FreeBSD/ports/i386/packages-7-stable/Latest/; 
needs to be
 restructured to resolve the above errors , and remove necessity of 
make steps .

Thank you very much ,

Mehmet Erol Sanliturk


 

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