Re: [Lazarus] importing program into lazarus project
On Mon, Jul 21, 2008 at 5:52 PM, Vincent Snijders [EMAIL PROTECTED] wrote: I'd choose Project - New project from source. :-) I never even saw that one! 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] Questions about Lazarus
Vincent Snijders wrote: Peter Williams schreef: Hi All, I have a few questions about Lazarus, in particular for my OS, Linux Ubuntu 8.04 { Hardy Heron }: (1) Does Lazarus (or should I say Free Pascal) support Virtual Keycodes e.g. constants for keyboard trapping events etc. Maybe: see the VK_ constants in the LCLType unit: http://lazarus-ccr.sourceforge.net/docs/lcl/lcltype/index-2.html (3) Is there available an off-line or internet based help file/system for language reference. Note: I would prefer an off-line help system as opposed to an internet based one. For language reference, see http://www.freepascal.org/docs.var Vincent ___ Lazarus mailing list Lazarus@lazarus.freepascal.org http://www.lazarus.freepascal.org/mailman/listinfo/lazarus For the most recent documentation (daily snapshot) for individual components visit ftp://ftp.hu.freepascal.org/pub/lazarus/ and select fpc-lazarus-doc-html-20080722.tar.bz2 with the most recent date. Gives you a set of HTML files that can be used for local reference. Regards - Chris ___ Lazarus mailing list Lazarus@lazarus.freepascal.org http://www.lazarus.freepascal.org/mailman/listinfo/lazarus
Re: [Lazarus] Create transparency
Luiz Americo Pereira Camara rašė: I tried that sometime ago without success: http://thread.gmane.org/gmane.comp.ide.lazarus.general/22010 I studied Your code and found where problem is: DataDescription need initialize through variable. Working code (seems that TRGBA comes from GraphicEx.pas, but webpage with that source cose is timeouted so i use TRGBAQuad instead): uses IntfGraphics, LclType, GraphType; { TForm1 } procedure TForm1.Button1Click(Sender: TObject); procedure DumpMem(Data: PCardinal; Size: Integer); var i: Integer; Color: TRGBAQuad; begin for i := 0 to Size - 1 do begin Color := TRGBAQuad(Data[i]); WriteLn('Red: ', Color.Red, ' Green: ', Color.Green, ' Blue: ',Color.Blue, ' Alpha: ', Color.Alpha); end; end; var ImgReader: TLazReaderBMP; IntfImg: TLazIntfImage; aprasas: TRawImageDescription; begin ImgReader := TLazReaderBMP.Create; IntfImg := TLazIntfImage.Create(0,0); //IntfImg.DataDescription.Init_BPP32_B8G8R8A8_M1_BIO_TTB(0, 0); aprasas.Init_BPP32_B8G8R8A8_BIO_TTB(0, 0); // there is IntfImg.DataDescription:=aprasas; // solution IntfImg.LoadFromFile('red.bmp', ImgReader); DumpMem(PCardinal(IntfImg.PixelData), IntfImg.DataDescription.Height * IntfImg.DataDescription.Width); ImgReader.Destroy; IntfImg.Destroy; end; -- Valdas Jankūnas ___ Lazarus mailing list Lazarus@lazarus.freepascal.org http://www.lazarus.freepascal.org/mailman/listinfo/lazarus
Re: [Lazarus] Create transparency
Marc Weustink rašė: Valdas Jankūnas wrote: Marc Weustink rašė: A faster way, (which might work in most cases) is when you have a 24bit depth description with a 32bits per pixel image. How retrieve image description from TBitmap? IntfImage.DataDescription Then you can simply add an alpha description (precision=8, shift=24 or 0) to the rawimage. How i can do that? if Description.BitsPerPixel = 32 then begin if (Description.RedShift 0) and (Description.BlueShift 0) and (Description.GreenShift 0) then begin Description.AlphaPrec := 8; Description.AlphaShift := 0; end else if (Description.RedShift 24) and (Description.BlueShift 24) and (Description.GreenShift 24) then begin Description.AlphaPrec := 8; Description.AlphaShift := 24; end; end; Thanks -- Valdas Jankūnas ___ Lazarus mailing list Lazarus@lazarus.freepascal.org http://www.lazarus.freepascal.org/mailman/listinfo/lazarus
Re: [Lazarus] offline IDE Help files
The other day somebody asked me if there are offline help files available for the Lazarus IDE itself. I had a look, and everything seems to be online via the wiki site. It also doesn't seem configurable, like the RTL, LCL and FCL help for online or offline usage. This might not exactly what you need, but it sure helps a bit. http://beeography.wordpress.com/2007/12/04/fpc-doc-comes-in-chm-format/ -Bee- ___ Lazarus mailing list Lazarus@lazarus.freepascal.org http://www.lazarus.freepascal.org/mailman/listinfo/lazarus
Re: [Lazarus] Using extensions for text file names .
On Mon, 21 Jul 2008 16:45:37 -0700 Mehmet Erol Sanliturk [EMAIL PROTECTED] wrote: Dear Sirs , In \fpc\ and \lazarus\ directories , some text file names do not have an extension Which ones? The 'Makefile' must be without extension. I fixed some. [...] Mattias ___ Lazarus mailing list Lazarus@lazarus.freepascal.org http://www.lazarus.freepascal.org/mailman/listinfo/lazarus
Re: [Lazarus] offline IDE Help files
On Tue, Jul 22, 2008 at 11:39 AM, Bee [EMAIL PROTECTED] wrote: This might not exactly what you need, but it sure helps a bit. http://beeography.wordpress.com/2007/12/04/fpc-doc-comes-in-chm-format/ I don't have an issue with the FPC or LCL documentation. I always generate my own offline copy as well using fpdoc. On the other hand, the IDE help is *only* available online - in no repository and in no usable format. 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] importing program into lazarus project
On Tue, 22 Jul 2008 05:39:44 +0200 Marc Santhoff [EMAIL PROTECTED] wrote: Am Montag, den 21.07.2008, 22:33 +0200 schrieb Mattias Gaertner: On Mon, 21 Jul 2008 08:45:36 +0200 Graeme Geldenhuys [EMAIL PROTECTED] wrote: On Mon, Jul 21, 2008 at 12:38 AM, Marc Santhoff [EMAIL PROTECTED] wrote: I have a program written using fpc only that I'd like to import into a lazarus project. How can this be done the easiest way? Simply load Lazarus with a blank Lazarus project. Then open the main unit (program) of your fpc project using 'File | Open'... Lazarus will detect it's a 'program' and ask if it can manage it. Say yes. Lazarus would now have created a new .lpi file for your fpc program. Save the project and you are ready to go. Or use directly Project / New Project from file. And what is the difference between custom program and program project types, No idea what's the difference. All I know is that program is a Free Pascal program and Lazarus maintains the .lpi (Lazarus Project Information) file for that program. It's a different start source and some more options (Project Options / Miscellaneous) are off for custom program. You can change all things at any time. I found those options already. Very nice, although I still have to try them out to see what happens if switched in an existing project. Since I left the Delphi world with version 2: are these options genuine Lazarus options or are they carried over from Delphi? Maybe some old books or docs can help me getting used to all possibilities hiding in Lazarus ... If you are online, simply press F1 in any IDE dialog. This will open a browser to http://wiki.lazarus.freepascal.org/index.php/IDE_Window:_Project_Options Mattias ___ Lazarus mailing list Lazarus@lazarus.freepascal.org http://www.lazarus.freepascal.org/mailman/listinfo/lazarus
Re: [Lazarus] MacOS 10.5 - Compiling a package stops without error message
On Tue, 22 Jul 2008 10:54:10 +0200 Roland Turcan [EMAIL PROTECTED] wrote: Hello folks, MG Since svn rev 15749 lazbuild can do that: MG ./lazbuild --build-ide= MG Mattias Thanks Mattias, it shows me next ugly error messages during building lazarus with our components. How can I turn on move verbose outputs to see more about the problem. ./lazbuild --build-ide=-va alloutput.txt The strangest is, the same source code is buildable into Lazarus/Linux without any problem, but Linux runs on i386 and MacOS on PPC. I guess it is problem with compiler. ... Assembling resconf An unhandled exception occurred at $00148A30 : EAccessViolation : Access violation $00148A30 $001479D4 $0014C90C $0014B05C $001245C0 $0014FE78 $00150378 $0013321C $0012B980 $00109044 $0011D3C4 $0012AAEC $0012AE00 $0012BB88 $00Fatal: Compilation aborted 109044 $0011D3C4 $0012AAEC TExternalToolList.Run Exception: there was an error ERROR: tool reported error Mattias ___ Lazarus mailing list Lazarus@lazarus.freepascal.org http://www.lazarus.freepascal.org/mailman/listinfo/lazarus
Re: [Lazarus] offline IDE Help files
Graeme Geldenhuys schreef: On Tue, Jul 22, 2008 at 11:39 AM, Bee [EMAIL PROTECTED] wrote: This might not exactly what you need, but it sure helps a bit. http://beeography.wordpress.com/2007/12/04/fpc-doc-comes-in-chm-format/ I don't have an issue with the FPC or LCL documentation. I always generate my own offline copy as well using fpdoc. On the other hand, the IDE help is *only* available online - in no repository and in no usable format. If you want to spend some time on it, Christian Ulrich made a tool to extract information from a wiki and make it available off line. Vincent ___ Lazarus mailing list Lazarus@lazarus.freepascal.org http://www.lazarus.freepascal.org/mailman/listinfo/lazarus
Re: [Lazarus] reference to ~/.config/appname documentation
Must be new. My .config has little of the apps I use. Nice idea tho, unclutters the hidden crap :) I think it's not a bad idea. I'll move my stuff to it that's for sure. Ales ___ Lazarus mailing list Lazarus@lazarus.freepascal.org http://www.lazarus.freepascal.org/mailman/listinfo/lazarus
Re: [Lazarus] Using extensions for text file names in files of Lazarus 0.9.25 with/and fpc 2.2.2rc .
Zitat von Mehmet Erol Sanliturk [EMAIL PROTECTED]: Dear Sirs , I am using lazarus 0.9.25 with/and fpc 2.2.2rc2 and in general other newer fixes or development releases . I did not intend ( Makefile ) because it is a fixed name for Make programs and for a short message I did not mention it . At this moment , if I use , for example , ... dir \lazarus\read*. /s it is counting 39 README files . There are no REAME files in lazarus without .txt extension. There are 62 README.txt. Maybe under windows the fpc directory is installed in the lazarus directory? Assume that I ( or We ) should use Windows for some reasons . I have FreeBSD , OpenSuse , Mandriva , Fedora , CentOS , ... This is not solving the problem of Windows . I did not make a list of other text files , but my suggestion is about if you can find time and touch to such files append an extension to them to ease workings of Windows users . Please give some examples. Mattias ___ Lazarus mailing list Lazarus@lazarus.freepascal.org http://www.lazarus.freepascal.org/mailman/listinfo/lazarus
Re: [Lazarus] Using extensions for text file names in files of Lazarus 0.9.25 with/and fpc 2.2.2rc .
Mattias Gärtner schreef: Zitat von Mehmet Erol Sanliturk [EMAIL PROTECTED]: Dear Sirs , I am using lazarus 0.9.25 with/and fpc 2.2.2rc2 and in general other newer fixes or development releases . I did not intend ( Makefile ) because it is a fixed name for Make programs and for a short message I did not mention it . At this moment , if I use , for example , ... dir \lazarus\read*. /s it is counting 39 README files . There are no REAME files in lazarus without .txt extension. There are 62 README.txt. Maybe under windows the fpc directory is installed in the lazarus directory? It is. In this case in ...\lazarus\fpc\ and below. Vincent ___ Lazarus mailing list Lazarus@lazarus.freepascal.org http://www.lazarus.freepascal.org/mailman/listinfo/lazarus
[Lazarus] Link to http://standards.freedesktop.org .
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
Re: [Lazarus] reference to ~/.config/appname documentation
On Tue, Jul 22, 2008 at 1:12 PM, Ales Katona [EMAIL PROTECTED] wrote: Must be new. My .config has little of the apps I use. Nice idea tho, unclutters the hidden crap :) I think it's not a bad idea. I'll move my stuff to it that's for sure. We have been using ~/.config/ for a while now. I actually have a few other apps that also use it, but doing a 'ls -lsa' in my home directory shows a LOT of hidden crap! Note: The RTL function GetAppConfigDir() also uses $XDG_CONFIG_HOME or .config if not set. A nice move from the FPC team! :) It's long overdue that Linux apps start implementing and using some standards. It makes cross-distro deployment so much easier. 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
[Lazarus] Links to some software related web pages .
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] Lazarus options
Hi, just trying to keep my intentions in sync with the lazarus teams expectations. So a couple of questions to follow up the remarks in http://bugs.freepascal.org/view.php?id=9652 - I was planning to add an option to switch on/off the highlight all feature in incremental search. Should I? or is it better to have it always on? (also consider this with the option below the === mark in mind, please) - I also had the idea to add *options* for - match bracket on *before* caret curently matches bracket after caret, which is not usefull, because if you typed a closing bracket, it is *before* the caret ( maybe even match both sides) - Add options to match unbalanced brackets (in an error color) foo( string[ index ); is missing a ], so if either on the ) or the [ then they shoudl match each other, but highlight in red (or as unbalanced) this can help a good deal finding them in bigger terms. == - I do agree that on the *current* page, vincent's remark Less options is better is true. I was thinking about grouping the options into individual sets: * tabs and spaces - smart tabs - tabs to spaces - trim trailing spaces - tab indent block - auto indent ?? * Display - show special chars - use syntax highlight - bracket highlight * Hints . * scroll - half page scroll - keep caret x ?? - always visible caret - scroll by one less - scroll past end of file // line * mouse and drag ?? - drag and drop - drop files - right mouse moves caret - double click line - mouse links * misc If that makes sense, I can see and work out what IMHO would go where. Also is there a decision when or if the new edit options will be in place? It would be nice not do to this twice. then maybe some options should could be combined? (drop down or radio?) scoll by one less + half page scroll == half page - one line ? that is if half-page was always obeyed, and affected vertical scroll too? ___ Lazarus mailing list Lazarus@lazarus.freepascal.org http://www.lazarus.freepascal.org/mailman/listinfo/lazarus
Re: [Lazarus] reference to ~/.config/appname documentation
On Tue, 22 Jul 2008 14:33:57 +0200 Graeme Geldenhuys [EMAIL PROTECTED] wrote: On Tue, Jul 22, 2008 at 1:12 PM, Ales Katona [EMAIL PROTECTED] wrote: Must be new. My .config has little of the apps I use. Nice idea tho, unclutters the hidden crap :) I think it's not a bad idea. I'll move my stuff to it that's for sure. We have been using ~/.config/ for a while now. I actually have a few other apps that also use it, but doing a 'ls -lsa' in my home directory shows a LOT of hidden crap! Note: The RTL function GetAppConfigDir() also uses $XDG_CONFIG_HOME or .config if not set. A nice move from the FPC team! :) It's long overdue that Linux apps start implementing and using some standards. It makes cross-distro deployment so much easier. Can you explain, why the XDG_CONFIG_HOME makes cross-distro deployment so much easier? Lazarus can use the GetAppConfigDir when 2.2.2 is out. Then the IDE should check if there is an old config directory and no new, then ask the user if the old config dir should be moved. Mattias ___ Lazarus mailing list Lazarus@lazarus.freepascal.org http://www.lazarus.freepascal.org/mailman/listinfo/lazarus
Re: [Lazarus] Lazarus options
On Tue, 22 Jul 2008 18:15:38 +0100 Martin Friebe [EMAIL PROTECTED] wrote: Hi, just trying to keep my intentions in sync with the lazarus teams expectations. So a couple of questions to follow up the remarks in http://bugs.freepascal.org/view.php?id=9652 - I was planning to add an option to switch on/off the highlight all feature in incremental search. Should I? or is it better to have it always on? (also consider this with the option below the === mark in mind, please) Don't add an option if no one uses it. - I also had the idea to add *options* for - match bracket on *before* caret curently matches bracket after caret, which is not usefull, because if you typed a closing bracket, it is *before* the caret ( maybe even match both sides) I don't see the need. Jut change it to *before*. - Add options to match unbalanced brackets (in an error color) foo( string[ index ); is missing a ], so if either on the ) or the [ then they shoudl match each other, but highlight in red (or as unbalanced) this can help a good deal finding them in bigger terms. Again: Why an option? This is always a nice feature. == - I do agree that on the *current* page, vincent's remark Less options is better is true. I was thinking about grouping the options into individual sets: * tabs and spaces - smart tabs - tabs to spaces - trim trailing spaces - tab indent block - auto indent ?? * Display - show special chars - use syntax highlight - bracket highlight * Hints . * scroll - half page scroll - keep caret x ?? - always visible caret - scroll by one less - scroll past end of file // line * mouse and drag ?? - drag and drop - drop files - right mouse moves caret - double click line - mouse links * misc If that makes sense, I can see and work out what IMHO would go where. ok Also is there a decision when or if the new edit options will be in place? It would be nice not do to this twice. When someone completes it. then maybe some options should could be combined? (drop down or radio?) scoll by one less + half page scroll == half page - one line ? ok that is if half-page was always obeyed, and affected vertical scroll too? ? Mattias ___ Lazarus mailing list Lazarus@lazarus.freepascal.org http://www.lazarus.freepascal.org/mailman/listinfo/lazarus