Re: [lazarus] files: I give up

2007-07-17 Thread Alex Smirnov
German C. Basisty ?: Now I really dont know whats wrong, please help me. The writting code: procedure TForm1.Button1Click(Sender: TObject); var archivo: File of String; cadena: String; begin cadena := Edit1.Text;

[lazarus] FindFirst/FindNext or FPReadDir

2007-06-21 Thread Alex Smirnov
*Dear Colleagues,* Can you help me to solve a problem? I want to scan entire file system, for example - / and put the results into TTreeView. So, what will be faster - to use FindFirst/FindNext circle or to use FPReadDir function? I am completing now the 3rd page of my SysInfo for Linux

Re: [lazarus] FindFirst/FindNext or FPReadDir

2007-06-21 Thread Alex Smirnov
Peter Vreman ?: If need performance and only need to have the filename you can use fpgetdents or the deprecated fpreaddir. If you need all file information like size and modified timestamp then better use the portable findfirst/findnext. *Thank you, Peter! * Can you. please, help me

[lazarus] Proporosed patch for graphmath.pp and infbaselcl.inc

2007-04-23 Thread Alex Smirnov
*Hello, Vincent!* Here are patches for mentioned files. It solves problem with GTK2 crash in Canvas.Pie (that is working without any troubles in GTK1). Also some things were changed in graphmath.pp for PolyBezierArcPoints. I had sent it before, but not as a patch - sorry for that. I am really

Re: [lazarus] Proporosed patch for graphmath.pp and infbaselcl.inc

2007-04-23 Thread Alex Smirnov
*Hello, Vincent!* Good that you have this working. Thank you. Some remarks. I know to little of graphics to give feedback on the contents of the patch, so I will say only something about the style. Why did you change FullAngle to dFullAngle? Actually, whole function was rewritten. And I

Re: [lazarus] SysInfo for Linux first light

2007-04-20 Thread Alex Smirnov
*Hello, Giuliano!* What you could do is to give a look to the error page we get: http://betatester.by.ru/images/si1lin.gif and give us the translation of the What can you do part of it. Maybe we could do something, if our Russian was slightly better, but unfortunately it isn't :'( Regards,

[lazarus] SysInfo for Linux first light

2007-04-19 Thread Alex Smirnov
*Dear Colleagues,* I am glad to inform you that my first SysInfo for Linux beta is ready. You can download it from here (http://betatester.by.ru/Downloads/sysinfo4linux011.tar.bz2), Screenshots of current version are here: (http://betatester.by.ru/images/si1lin.gif) and here

Re: [lazarus] SysInfo for Linux first light

2007-04-19 Thread Alex Smirnov
*Hello, Vincent! * Alex Smirnov schreef: *Dear Colleagues,* I am glad to inform you that my first SysInfo for Linux beta is ready. You can download it from here (http://betatester.by.ru/Downloads/sysinfo4linux011.tar.bz2), Screenshots of current version are here: (http://betatester.by.ru

Re: [lazarus] Ring-Watch crashes on GTK2 and works on GTK

2007-04-09 Thread Alex Smirnov
Alex Smirnov ?: *Dear Colleagues, * Can you, please, help me to resolve a problem with Ring-Watch component. The description is that: - Lazarus 0.9.22 on Linux Gentoo x86 - A project with standard Ring-Watch component on it with KindofLabel:=klNone; Legend:=lpNone; and Ring:=False

Re: [lazarus] fsSplash Form in a project

2007-04-07 Thread Alex Smirnov
Graeme Geldenhuys ?: On 4/6/07, Alex Smirnov [EMAIL PROTECTED] wrote: 1)I have some project in Linux that spends 10-20 seconds to initialize its classes. I know you found a solution arleady, but I thought I would comment on this point. From a user point of view, this would drive me

[lazarus] fsSplash Form in a project

2007-04-06 Thread Alex Smirnov
*Dear Colleagues,* Can you, please, help me to understand how to work with fsSplash form? So the description of my problem is that: 1)I have some project in Linux that spends 10-20 seconds to initialize its classes. 2)I had created a small form with some picture on it and a label. This form

Re: [lazarus] fsSplash Form in a project

2007-04-06 Thread Alex Smirnov
Mattias Gaertner ?: On Fri, 06 Apr 2007 21:33:17 +0400 Alex Smirnov [EMAIL PROTECTED] wrote: *Dear Colleagues,* Can you, please, help me to understand how to work with fsSplash form? So the description of my problem is that: 1)I have some project in Linux that spends 10-20 seconds

Re: [lazarus] Question about internal picture formats that are stored in EXE files.

2007-03-12 Thread Alex Smirnov
Mattias Gaertner ?: For TBitmap: The image is stored in the exe in the same format as it was loaded. TBitmap does not support PNG. If the image is altered and then saved it will be stored as .bmp. .xpm is good for icons. For icons it could be even smaller than .bmp. For TImage: The image is

[lazarus] Question about internal picture formats that are stored in EXE files.

2007-03-11 Thread Alex Smirnov
*Hello, colleagues. *Is it possible to describe me some things? It seems that Lazarus for Linux store pictures in EXE files in XPM format and Lazarus for Windows store them in PNG format (or something like that). It seems that XPM is not a good picture format in terms of the size. As a result

Re: [lazarus] Question about internal picture formats that are stored in EXE files.

2007-03-11 Thread Alex Smirnov
Vincent Snijders ?: Alex Smirnov schreef: *Hello, colleagues. *Is it possible to describe me some things? It seems that Lazarus for Linux store pictures in EXE files in XPM format and Lazarus for Windows store them in PNG format (or something like that). As far as I know

[lazarus] ../lcl/include/custompanel.inc patch

2007-03-10 Thread Alex Smirnov
*Hello, colleagues.* I propose you to add small patch to TCustomPanel.Paint procedure. I meant the opportunity to check FFullRepaint flag and to paint something only if it is True; This patch and functionality is needed for me to use TPanel as a canvas for drawing OpenGL scene. The file

[lazarus] Lazarus, gdk-pixbuf and Gentoo

2006-12-08 Thread Alex Smirnov
*Dear colleagues,* Gentoo team had marked gdk-pixbuf http://packages.gentoo.org/search/?sstring=gdk-pixbuf to be hard masked. So it means that this package should be possibly removed from Gentoo package database in nearest future. So the question is - what is connected to gdk-pixbuf in

[lazarus] A question on Exception.Create(...);

2006-10-20 Thread Alex Smirnov
Hello, colleagues. I have cerated a library (a clone of GLScene lib). It works both in Win32 and Linux/GTK. So, inside of the code I have some testing - for example, I try to open a file and if it is not exist - I should raise an Exception. So - this is the question. I have such a code: if

Re: [lazarus] A question on Exception.Create(...);

2006-10-20 Thread Alex Smirnov
Vincent Snijders пишет: Do you use the SysUtils unit in your program? Vincent Yes! Cause it is really impossible to compile this example without SysUtils unit. :-) _ To unsubscribe: mail [EMAIL PROTECTED] with

Re: [lazarus] A question on Exception.Create(...);

2006-10-20 Thread Alex Smirnov
Michael Van Canneyt : This is because a SECOND exception is raised somewhere which hides your first exception. It means there is a place where you do not take into account that an exception may occur ? (or there is an error in the Lazarus exception handling routines) Michael. Yes,

[lazarus] Lazarus 0.9.18 and compilation speed (what does it look for?)

2006-10-01 Thread Alex Smirnov
IDE version:      Lazarus 0.9.18 (fresh installation) OS:                     Windows XP and  Linux(Mandriva 2006) - same problem. Problem description: While Lazarus tries to compile something, it starts to search for several files - PPUs, Libraries, source files, etc.But IMHO, it searches

Re: [lazarus] Lazarus 0.9.18 and compilation speed (what does it look for?)

2006-10-01 Thread Alex Smirnov
Peter Vreman : This is searching is in the compiler and it is there by design and will not be changed. It allows you to override units in your local tree. Also note that for the compiler there is no difference if a unit is part of the RTL of LCL or your own project.

Re: [lazarus] Lazarus 0.9.18 and compilation speed (what does it look for?)

2006-10-01 Thread Alex Smirnov
Felipe Monteiro de Carvalho : How do you know it spends more then 99% of compilation time in this search} Also consider that showing output on the screen costs time, and without showing messages the search will be shorter. The answer is very simple. My project compilation log

Re: [lazarus] Lazarus 0.9.18 and compilation speed (what does it look for?)

2006-10-01 Thread Alex Smirnov
Peter Vreman Sorry for that, but, I think you are not right. So, when I try to make some compilation using make file - it will be more faster :-) - it will NOT search system.ppu for 23 times. I can create make file for my project and calculate the time needed to make all of it

Re: [lazarus] Lazarus 0.9.18 and compilation speed (what does it look for?)

2006-10-01 Thread Alex Smirnov
Vincent Snijders Try passing the -Cn parameter to the command line, it stops compiling just before the linker starts, but after the compiler has done all it files searches. See how much time that takes. Also see how much times it takes, without printing all the filenames in the messages view.

Re: [lazarus] Lazarus 0.9.18 and compilation speed (what does it look for?)

2006-10-01 Thread Alex Smirnov
Vincent Snijders Thus I think that all this 111 seconds is almost wasting time that was spent in FindFirst/FindNext circle. I think that is wrong. But you can test that by copying all the needed .ppu and .o files into one directory and replace the -Fu lines for fpc.cfg with

[lazarus] PieChart

2006-03-11 Thread Alex Smirnov
Hi , Friends! Please, can you inform me about PieChart component for Lazarus. Does it exist? The matter is that I do now some work that require Pie Chart to display some information. Now I am trying to do this work using Lazarus. Also, do we have DirectoryTree component? Best regards,

Re: [lazarus] Version information

2006-02-01 Thread Alex Smirnov
Micha Nelissen пишет: Jouke Rensma wrote: automatically. At this moment you have to arrange this by hand. As said before I would first like to know: - am I inventing a wheel? - is somebody else working on this also? If yes, maybe we can cooperate??? - since this is

[lazarus] MainMenu + TPanel + TSpeedButtons = strange issue

2005-11-27 Thread Alex Smirnov
Hi, Friends!  I have very strange issue. I made a project, that has main menu and a TPanel, that contains several TSpeedButtons - one TSpeedButton for one menu line. Every menu item has its own OnClick function. Each TSpeedButton is set to use the same OnClick function as appropriate menu

Re: [lazarus] Re: Big size of W32 *.exe files

2005-11-13 Thread Alex Smirnov
1)How can I build Lazarus from command promt to make all ints units Smart Linkable? Also, is it possible to add somewhere thouse optimization switches: -S2cgi -CX -Og3ru -gl -XX in fpc.cfg Darek Thank you, Darek! I try to add my switches. This is the result: Free Pascal

Re: [lazarus] Big size of W32 *.exe files

2005-10-28 Thread Alex Smirnov
Hi! Try to go to c:\lazarus\pp\bin\i386-win32\. There is a file -  strip.exe.  Simply type strip path to your project *.exe file and press Enter. You file will become smoller in size for nearly 30%. The fact is that Lazarus do not strip symbols from executable while linking, even if you place

Re: [lazarus] Some questions about TForm.Height

2005-10-20 Thread Alex Smirnov
Hi, friends! For Win32 I can use GetSystemMetrics in this case. So in Windows it works. But in Linux (Gnome/GTK) GetSystemMetrics is seems to be not realized jet - this function presents, code can be compiled, but GetSystemMetrics returns some strange and illegal values. So code, that is

Re: [lazarus] Some questions about TForm.Height

2005-10-19 Thread Alex Smirnov
Dear Friends! Ones more I ask you for some help. Help me please to understand how can I get real height of any form window created by Lazarus? The matter is trhat TForm.Height returns not a total Form height, but Form height minus title bar height. Actually, in Lazarus TForm.Height is equal

Re: [lazarus] Some questions about TForm.Height

2005-10-19 Thread Alex Smirnov
Thank you for your help. :-) Can you explain why you need the complete height ? As I told you - I need to work with 3 windows. 1st is top window (like Lazarus main window). 2nd and 3rd must be placed under that window. So, I do: F2ndWindow.Left:=1;

[lazarus] Some problems in selection boolean values in Object Inspector

2005-10-11 Thread Alex Smirnov
Problem description: Operation System - Windows 200 SP4. Lazarus - 0.9.11 from the 9th of October 2005. Try to make any simple project and put a StringGrid on it, Go to Object Inspector and maximize "Options" line. You will see StringGrid options -  goTabs, goEditing, goColMoving, etc. Try to

[lazarus] Debugger error under Windows

2005-10-10 Thread Alex Smirnov
Problem description: Operation system - Windows 2000 SP4 Standart installation of Lazarus - 0.9.11.from the 9th of October 2005. Simply press F9  to compile and run an EMPTY project - project that is visible when Lazarus starts - you will get this message (1st screenshot). Debugger is set by

Re: [lazarus] Russian Letters in Lasarus windoows.

2005-09-29 Thread Alex Smirnov
Vincent Snijders пишет: Can you write down the precise steps you have made? It works here. I start the console, type export LANG=en_US.utf8 and then start Lazarus typing ./lazarus. No letters in menu. A file is added to this letter is a result of locale locale.txt command after export

Re: [lazarus] Russian Letters in Lasarus windoows.

2005-09-28 Thread Alex Smirnov
You can set the language in the environment options, second tab. To bootstrap (it might be hard if you don't see any text at all), do export LANG=en_US.utf8 ./lazarus at the console. Vincent. Thank you, Vincent. But it does not work. I got SAME result - no text in Lazarus