Re: [Lazarus] will lazarus work on kde plasma 5?
They wrote Plasma 5 should be the default desktop in a future release so I asked lazarus's plan. I don't think we have anything to do related to specific desktop environment. So far, only Unity causes problems and the workaround is not done at Lazarus level. Plasma 5 should be the default desktop in a future release is Kubuntu-team-only statement. Other distros might or might not follow. -- View this message in context: http://free-pascal-lazarus.989080.n3.nabble.com/Lazarus-will-lazarus-work-on-kde-plasma-5-tp4038190p4038197.html Sent from the Free Pascal - Lazarus mailing list archive at Nabble.com. -- ___ Lazarus mailing list Lazarus@lists.lazarus.freepascal.org http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus
[Lazarus] Code completion on specialized generic TFPGList
Hi all. When I use code completion (Ctrl+Shift+C) on an object of a specialized class (eg. TFPGList) the generated variable is always writte as type generic. See the code below: program Project1; {$mode objfpc}{$H+} uses Classes, fgl; type TMyList = specialize TFPGListInteger; begin MyList := TMyList.Create; end. If I place the cursor at MyList and press Ctrl+Shift+C, a var section is created like this: var MyList: generic; I think this is a bug, as the resulting code is not valid (in any mode). Regards, Torsten Bonde Christiansen. -- ___ Lazarus mailing list Lazarus@lists.lazarus.freepascal.org http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus
Re: [Lazarus] Code completion on specialized generic TFPGList
On 2014-08-20 14:32, Torsten Bonde Christiansen wrote: Hi all. When I use code completion (Ctrl+Shift+C) on an object of a specialized class (eg. TFPGList) the generated variable is always writte as type generic. I forgot to write that i'm using Lazarus trunk with fpc 2.6.4 Lazarus 1.3 r46049M FPC 2.6.4 x86_64-linux-gtk 2 Regards, Torsten. -- ___ Lazarus mailing list Lazarus@lists.lazarus.freepascal.org http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus
Re: [Lazarus] will lazarus work on kde plasma 5?
Thank you for your answer. On 20-08-2014 11:29, leledumbo wrote: I don't think we have anything to do related to specific desktop environment. So far, only Unity causes problems and the workaround is not done at Lazarus level. -- ___ Lazarus mailing list Lazarus@lists.lazarus.freepascal.org http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus
Re: [Lazarus] font.name=default
2014-08-16 12:40 GMT+02:00 Philippe phili...@quarta.com.br: I wrote a program, used font.name=default for allmost everything ... it was looking as Arial font. Fine. It was on a Windows 8 machine. Then I copied the program to a Windows XP machine to check. Where static text and others are written with something looking as a New Times Roman ... and sometimes not fitting in the field width ... and be splitted! I undestood there is something about windows default font. Googled ... ... ... On the my W8 machine default font (from registers) are Microsoft Sans Serif and Tahoma ... diferent. I made a test. In the attached image, the first text is with default, the second with Arial, both with bold mode. Arial was the closest font from default I found ... but still a bit diferent. Question 1): which default font is used with Lazarus ? the theme fonts Question 2): is there a way I can set the default font in Lazarus? I don't know if is possible in RAD way, but you can set the font you want in on create event for each controls you want. procedure TForm1.FormCreate(Sender: TObject); var i: integer; begin for i:=0 to ControlCount-1 do Controls[i].Font:=YOURFONT; end; Thank for your help Philippe PS. F1 in font.name ... error 404. -- ___ Lazarus mailing list Lazarus@lists.lazarus.freepascal.org http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus -- ___ Lazarus mailing list Lazarus@lists.lazarus.freepascal.org http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus
[Lazarus] TListView OnSelectItem event: Bug or feature?
Hi Lazarus team, The implementation of the OnSelectItem event of TListView doesn't appear to me to be correct. With MultiSelect false, selecting a new Item on the list generates, as expected, two events: the unselect of the previous Item, and the select of the new one. But they're generated in the reverse order. i.e. first the selection of the new one, then the unselect of the old one. This requires extra code in the application to verify if there's still an item selected or not: just handling the events one by one doesn't let you tell apart an unselect caused by other reasons (such as the selected item being deleted, or a programmatical unselection), from an unselect generated by a new select. Is this a feature required to be bug-compatible with Delphi, or a bug of LCL of its own? Giuliano -- ___ Lazarus mailing list Lazarus@lists.lazarus.freepascal.org http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus
Re: [Lazarus] Grey windows in Lazarus IDE with GTK2 in Mint 17 + KDE
On Tue, Aug 19, 2014 at 10:44 AM, Patrick Chevalley p...@ap-i.net wrote: Probably a Kwin problem. A workaround is to open the KDE system settings, Desktop effects, All effects. On the Focus block uncheck Dialog parent. Thanks! I propably would not have figured it out myself, there are so many settings for different effects. Otherwise KDE works very well now and is a joy to use. KDE 4.x is nearing the end of its lifetime. It means all features are implemented and bugs ironed out. Regards, Juha -- ___ Lazarus mailing list Lazarus@lists.lazarus.freepascal.org http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus
Re: [Lazarus] font.name=default
thank for your answer. I found the default font on my machine/windows 8 is Segoe UI. I´ll check if it is avalaible under other version of Windows ... your suggestion (looping controls) is interesting, I didn´t know it, but will change all the controls of the form ... and that is not what I need ... I just want to change the Lazarus default. So it will change the font of controls using font.name='Default' in the configuration/object inspector. Philippe Em 20.08.2014 12:58, Salvatore Coppola escreveu: 2014-08-16 12:40 GMT+02:00 Philippe phili...@quarta.com.br: I wrote a program, used font.name [1]=default for allmost everything ... it was looking as Arial font. Fine. It was on a Windows 8 machine. Then I copied the program to a Windows XP machine to check. Where static text and others are written with something looking as a New Times Roman ... and sometimes not fitting in the field width ... and be splitted! I undestood there is something about windows default font. Googled ... ... ... On the my W8 machine default font (from registers) are Microsoft Sans Serif and Tahoma ... diferent. I made a test. In the attached image, the first text is with default, the second with Arial, both with bold mode. Arial was the closest font from default I found ... but still a bit diferent. Question 1): which default font is used with Lazarus ? the theme fonts Question 2): is there a way I can set the default font in Lazarus? I don't know if is possible in RAD way, but you can set the font you want in on create event for each controls you want. procedure TForm1.FormCreate(Sender: TObject); var i: integer; begin for i:=0 to ControlCount-1 do Controls[i].Font:=YOURFONT; end; Thank for your help Philippe PS. F1 in http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus [3] Links: -- [1] http://font.name [2] http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus [3] http://webmail.quarta.com.br/div gt;nbsp;lto:Lazarus@lists.lazarus.freepascal.orgquot;gt;Lazarus@lists.lazarus.freepascal.org gt;nbsp;http://lists.lazarus.freepascal.org/mailman/listinfo/lazarusnbsp;[2] gt;nbsp; gt;nbsp;--nbsp;___nbsp;Lazarusnbsp;mailingnbsp;listnbsp;Lazarus@lists.lazarus.freepascal.org /divepascal.org/mailman/listinfo/lazarus -- ___ Lazarus mailing list Lazarus@lists.lazarus.freepascal.org http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus
[Lazarus] How to convert old *.lrs based forms to *.res
Hi, I've come across some old Lazarus IDE add-ons, and some old project where the forms still used LResources and *.lrs files. I've managed to convert one of the forms to use the standard *.res files instead, but I tried so many things I'm not actually sure what the correct steps are. Bottom line, it was a struggle as the *.lrs kept coming back. Is there documentation or a wiki page on converting such old projects/forms to newer resources? Or does the IDE have this ability, but I simply haven't found it. Any help would be appreciated. Regards, - Graeme - -- fpGUI Toolkit - a cross-platform GUI toolkit using Free Pascal http://fpgui.sourceforge.net/ -- ___ Lazarus mailing list Lazarus@lists.lazarus.freepascal.org http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus
Re: [Lazarus] font.name=default
default for font.name does not sound very clear for me. I thought it was a Lazarus default. may be a suggestion: using OS default ... and it should be nice to be able to use a Lazarus default which could be configurated ... especialy when developing for a unique OS ... Philippe Em 20.08.2014 19:54, Philippe escreveu: thank for your answer. I found the default font on my machine/windows 8 is Segoe UI. I´ll check if it is avalaible under other version of Windows ... your suggestion (looping controls) is interesting, I didn´t know it, but will change all the controls of the form ... and that is not what I need ... I just want to change the Lazarus default. So it will change the font of controls using font.name='Default' in the configuration/object inspector. Philippe Em 20.08.2014 12:58, Salvatore Coppola escreveu: 2014-08-16 12:40 GMT+02:00 Philippe phili...@quarta.com.br: I wrote a program, used font.name [1]=default for allmost everything ... it was looking as Arial font. Fine. It was on a Windows 8 machine. Then I copied the program to a Windows XP machine to check. Where static text and others are written with something looking as a New Times Roman ... and sometimes not fitting in the field width ... and be splitted! I undestood there is something about windows default font. Googled ... ... ... On the my W8 machine default font (from registers) are Microsoft Sans Serif and Tahoma ... diferent. I made a test. In the attached image, the first text is with default, the second with Arial, both with bold mode. Arial was the closest font from default I found ... but still a bit diferent. Question 1): which default font is used with Lazarus ? the theme fonts Question 2): is there a way I can set the default font in Lazarus? I don't know if is possible in RAD way, but you can set the font you want in on create event for each controls you want. procedure TForm1.FormCreate(Sender: TObject); var i: integer; begin for i:=0 to ControlCount-1 do Controls[i].Font:=YOURFONT; end; Thank for your help Philippe PS. F1 in http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus [3] -- ___ Lazarus mailing list Lazarus@lists.lazarus.freepascal.org http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus [2] Links: -- [1] http://font.name [2] http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus [3] http://webmail.quarta.com.br/div gt;nbsp;:Lazarus@lists.lazarus.freepascal.orgquot;gt;Lazarus@lists.lazarus.freepascal.org gt;nbsp;http://lists.lazarus.freepascal.org/mailman/listinfo/lazarusnbsp;[2] gt;nbsp; gt;nbsp;--nbsp;___nbsp;Lazarusnbsp;mailingnbsp;listnbsp;Lazarus@lists.lazarus.freepascal.org /divscal.org/mailman/listinfo/lazarus -- ___ Lazarus mailing list Lazarus@lists.lazarus.freepascal.org http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus
Re: [Lazarus] How to convert old *.lrs based forms to *.res
Is there documentation or a wiki page on converting such old projects/forms to newer resources? Or does the IDE have this ability, but I simply haven't found it. - Change resource format in the project options to FPC resources - Change {$I *.lrs} in initialization section to {$R *.lfm}, optionally remove the initialization section if it doesn't contain any other code - Remove LResources from uses clause - Optionally remove existing .lrs -- View this message in context: http://free-pascal-lazarus.989080.n3.nabble.com/Lazarus-How-to-convert-old-lrs-based-forms-to-res-tp4038205p4038207.html Sent from the Free Pascal - Lazarus mailing list archive at Nabble.com. -- ___ Lazarus mailing list Lazarus@lists.lazarus.freepascal.org http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus