Re: [Lazarus] TComboBox
On Sat, 15 Aug 2015 14:56:05 -0500 Larry Dalton larrydalto...@gmail.com wrote: I am using lazarus 1.4.2 on Linux Mint unit and 1.2.6 on Windows 7 unit. Combo box is has a scroll bar on the windows unit but not the linux unit. Which is the problem: windows/linux or 1.4 vs 1.2? Usually under Linux (Gtk2) a combo box does not have a scroll bar. Mattias -- ___ Lazarus mailing list Lazarus@lists.lazarus.freepascal.org http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus
Re: [Lazarus] Specifying Y axis
Chart1.Extent.YMax := 1; Chart1.Extent.YMin := 0; Chart1.Extent.UseYMax := true; Chart1.Extent.UseYMin := true; Call this before or after adding data to the series, or set it in the object inspector. Am 15.08.2015 um 07:15 schrieb Richard Mace: Hi, I have a line graph that only needs to display 0's and 1's however, when the first 0 is plotted, the Y axis is set-up as the lowest mark being -1, then goes up through 0 to then be +1. How can I set the graph up to say that the lowest mark would be 0 and the highest would be 1? Many thanks Richard -- ___ 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
Re: [Lazarus] whats wrong with that line of code?
On 2015-08-15 11:24, Werner Pamler wrote: I must confess that the docs are quite confusing here... To add to that, CurrencyFormat() shows in the docs as deprecated, but it doesn't suggest a function that replaces it. http://www.freepascal.org/docs-html/rtl/sysutils/currencyformat.html 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] whats wrong with that line of code?
On Sat, 15 Aug 2015, Graeme Geldenhuys wrote: On 2015-08-15 11:24, Werner Pamler wrote: I must confess that the docs are quite confusing here... And here is a LateX issue in the docs for Format() Under the M currency format text it shows: Currency format. the next argument in the var{Args} array The LaTeX var{...} is shown literally, instead of converted to Italic text. @Michael: Must I file a bug report, or will you make a note about it? Already done. Michael. -- ___ Lazarus mailing list Lazarus@lists.lazarus.freepascal.org http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus
Re: [Lazarus] whats wrong with that line of code?
A) thank you guys!!! B) Werner Pamler ... Fazit: ... so its not possible to get the currency symbol € using FormatCurr, that what i learned so far?!! i was wrong interpreting the function name as delivering a formatted number plus(!!) the currency symbol! On 15.08.2015 12:12, Werner Pamler wrote: This is how it works with the %m format procedure TForm1.FormCreate(Sender: TObject); begin DefaultFormatSettings.Currencystring := '€'; Label1.Caption := Format('%m', [.0]); // Format instead of FormatCurr, parameter in square brackets, value must be a float end; Am 15.08.2015 um 11:13 schrieb John Landmesser: CurrencyString shows € FormatCurr('%M',1) - %M Expected a currency string as '111.111.111,00 €' System: Linux, Debian Sid sorry for that really idiotic question :-)) -- ___ 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 mailing list Lazarus@lists.lazarus.freepascal.org http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus
[Lazarus] whats wrong with that line of code?
CurrencyString shows € FormatCurr('%M',1) - %M Expected a currency string as '111.111.111,00 €' System: Linux, Debian Sid sorry for that really idiotic question :-)) -- ___ Lazarus mailing list Lazarus@lists.lazarus.freepascal.org http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus
Re: [Lazarus] whats wrong with that line of code?
On Sat, 15 Aug 2015, John Landmesser wrote: CurrencyString shows € FormatCurr('%M',1) - %M Expected a currency string as '111.111.111,00 €' System: Linux, Debian Sid sorry for that really idiotic question :-)) Why do you think %M is a formatting character ? Valid formatting characters are described at: http://www.freepascal.org/docs-html/rtl/sysutils/formatfloat.html Michael.-- ___ Lazarus mailing list Lazarus@lists.lazarus.freepascal.org http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus
Re: [Lazarus] whats wrong with that line of code?
Hi Michael, sorry, i still don't get it: Help to FormatFloat tells me: FormatFloat formats the floating-point value given by Value using the format specifications in Format. .. and help to Format: M Currency Format ... So please correct my, FormatCurr('%M',1) so i am able to understand my mistakes ... thank you! Ok, i'm stupid!!! On 15.08.2015 11:40, Michael Van Canneyt wrote: On Sat, 15 Aug 2015, John Landmesser wrote: CurrencyString shows € FormatCurr('%M',1) - %M Expected a currency string as '111.111.111,00 €' System: Linux, Debian Sid sorry for that really idiotic question :-)) Why do you think %M is a formatting character ? Valid formatting characters are described at: http://www.freepascal.org/docs-html/rtl/sysutils/formatfloat.html Michael. -- ___ 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
Re: [Lazarus] whats wrong with that line of code?
As Michael said %M is not a format specifier for the FormatCurr function, use 0.00 to get two decimal places . Moreover, as I see in my tests, the currency symbol is not added (because FormatCurr() internally calls FormatFloat()). I must confess that the docs are quite confusing here... This should work Label2.Caption := FormatCurr('0.00 €', 1.0); Am 15.08.2015 um 12:11 schrieb John Landmesser: Hi Michael, sorry, i still don't get it: Help to FormatFloat tells me: FormatFloat formats the floating-point value given by Value using the format specifications in Format. .. and help to Format: M Currency Format ... So please correct my, FormatCurr('%M',1) so i am able to understand my mistakes ... thank you! Ok, i'm stupid!!! On 15.08.2015 11:40, Michael Van Canneyt wrote: On Sat, 15 Aug 2015, John Landmesser wrote: CurrencyString shows € FormatCurr('%M',1) - %M Expected a currency string as '111.111.111,00 €' System: Linux, Debian Sid sorry for that really idiotic question :-)) Why do you think %M is a formatting character ? Valid formatting characters are described at: http://www.freepascal.org/docs-html/rtl/sysutils/formatfloat.html Michael. -- ___ 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 mailing list Lazarus@lists.lazarus.freepascal.org http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus
Re: [Lazarus] whats wrong with that line of code?
On Sat, 15 Aug 2015, John Landmesser wrote: Hi Michael, sorry, i still don't get it: Help to FormatFloat tells me: FormatFloat formats the floating-point value given by Value using the format specifications in Format. From the help: FormatCurr formats the currency Value according to the formatting rule in Format, and returns the resulting string. here Format refers to the parameter format, not the function, as you seemed to surmise. Yet the next sentence in Help For an explanation of the formatting characters, see FormatFloat. Should have given you a clue. Well, I have adapted the text so it is less ambiguous. Werner has given you a example of what to code. Michael. -- ___ Lazarus mailing list Lazarus@lists.lazarus.freepascal.org http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus
Re: [Lazarus] whats wrong with that line of code?
On Sat, 15 Aug 2015, Graeme Geldenhuys wrote: On 2015-08-15 11:24, Werner Pamler wrote: I must confess that the docs are quite confusing here... To add to that, CurrencyFormat() shows in the docs as deprecated, but it doesn't suggest a function that replaces it. http://www.freepascal.org/docs-html/rtl/sysutils/currencyformat.html It will in 3.0: http://www.freepascal.org/docs-html-3.0.0/rtl/sysutils/currencystring.html Michael. -- ___ Lazarus mailing list Lazarus@lists.lazarus.freepascal.org http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus
Re: [Lazarus] whats wrong with that line of code?
This is how it works with the %m format procedure TForm1.FormCreate(Sender: TObject); begin DefaultFormatSettings.Currencystring := '€'; Label1.Caption := Format('%m', [.0]); // Format instead of FormatCurr, parameter in square brackets, value must be a float end; Am 15.08.2015 um 11:13 schrieb John Landmesser: CurrencyString shows € FormatCurr('%M',1) - %M Expected a currency string as '111.111.111,00 €' System: Linux, Debian Sid sorry for that really idiotic question :-)) -- ___ 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
Re: [Lazarus] whats wrong with that line of code?
On 2015-08-15 11:24, Werner Pamler wrote: I must confess that the docs are quite confusing here... And here is a LateX issue in the docs for Format() Under the M currency format text it shows: Currency format. the next argument in the var{Args} array The LaTeX var{...} is shown literally, instead of converted to Italic text. @Michael: Must I file a bug report, or will you make a note about it? 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] whats wrong with that line of code?
Am 15.08.2015 13:19 schrieb John Landmesser jmlandmes...@gmx.de: i was wrong interpreting the function name as delivering a formatted number plus(!!) the currency symbol! Because there might be cases in which you don't want the currency symbol. And better to manually add something than to remove something ;) Regards, Sven -- ___ Lazarus mailing list Lazarus@lists.lazarus.freepascal.org http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus
Re: [Lazarus] While starting IDE, lazarus lock, without nay error
On Sat, 15 Aug 2015 15:51:47 +0300 FreeMan freema...@delphiturkiye.com wrote: [...] Conflict discovered in '/opt/lazarus/components/leakview/languages/heaptrcview.ru.po'. Select: (p) postpone, (df) diff-full, (e) edit, (mc) mine-conflict, (tc) theirs-conflict, (s) show all options: df Choose tc This can happen with .po files. Sometimes the committers forget to commit files and commit them with one of the next revisions. Mattias -- ___ Lazarus mailing list Lazarus@lists.lazarus.freepascal.org http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus
Re: [Lazarus] While starting IDE, lazarus lock, without nay error
On Sat, 15 Aug 2015 16:21:08 +0300 FreeMan freema...@delphiturkiye.com wrote: I did. But I wrote, IDE lock. I'm still testing, lazarus r49639 work normal. I mean, make then lazbuild then in IDE my project builded. and debuging. Do you mean that something broke between 49639 and 49665? Mattias -- ___ Lazarus mailing list Lazarus@lists.lazarus.freepascal.org http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus
Re: [Lazarus] While starting IDE, lazarus lock, without nay error
I did. But I wrote, IDE lock. I'm still testing, lazarus r49639 work normal. I mean, make then lazbuild then in IDE my project builded. and debuging. On 15.08.2015 15:59, Mattias Gaertner wrote: On Sat, 15 Aug 2015 15:51:47 +0300 FreeMan freema...@delphiturkiye.com wrote: [...] Conflict discovered in '/opt/lazarus/components/leakview/languages/heaptrcview.ru.po'. Select: (p) postpone, (df) diff-full, (e) edit, (mc) mine-conflict, (tc) theirs-conflict, (s) show all options: df Choose tc This can happen with .po files. Sometimes the committers forget to commit files and commit them with one of the next revisions. Mattias -- ___ Lazarus mailing list Lazarus@lists.lazarus.freepascal.org http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus
Re: [Lazarus] Missing classes unit
1.4.6 on Linux Mint Sent from my iPhone On Aug 15, 2015, at 11:55, Aradeonas aradeo...@operamail.com wrote: To Team : This problem is more happening in 1.4 and later.Before this version I didnt see this problem except trunk version. Regards, Ara -- http://www.fastmail.com - Or how I learned to stop worrying and love email again -- ___ 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
Re: [Lazarus] Missing classes unit
Correction: 1.4.2. Larry Sent from my iPhone On Aug 15, 2015, at 11:55, Aradeonas aradeo...@operamail.com wrote: To Team : This problem is more happening in 1.4 and later.Before this version I didnt see this problem except trunk version. Regards, Ara -- http://www.fastmail.com - Or how I learned to stop worrying and love email again -- ___ 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
Re: [Lazarus] While starting IDE, lazarus lock, without nay error
On Sat, 15 Aug 2015 18:06:16 +0300 FreeMan freema...@delphiturkiye.com wrote: I can not be sure, I'm nearly goes mad. in 49639 from terminal, run make then lazbuild then start IDE all of them is okey. My project builded in IDE and can debug it. just for check try build IDE from IDE's Tool menu, builded lazarus packages then my packs, but locked again. I'm terminate lazarus from system monitor. not sure but I think startlazarus freezing. after 49645 IDE locked or in IDE my project lock while compiling. A few second ago I reset to macbook, and retry build IDE r49639 from tool menu I saw Build IDE: Success in messages window and all of theme is green, but locked again. Sounds as if the bug was not introduced after 49639. Does the lock happen with fpc 2.6.4? Mattias -- ___ Lazarus mailing list Lazarus@lists.lazarus.freepascal.org http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus
Re: [Lazarus] Missing classes unit
On Sat, 15 Aug 2015, Larry Dalton wrote: When I install any component on a form and then click on it, I get an error that says Classes unit missing. The IDE was working perfectly yesterday. What do I need to check for? Sounds like the FPC source path has gone wrong. Michael. -- ___ Lazarus mailing list Lazarus@lists.lazarus.freepascal.org http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus
[Lazarus] Missing classes unit
When I install any component on a form and then click on it, I get an error that says Classes unit missing. The IDE was working perfectly yesterday. What do I need to check for? Sent from my iPhone -- ___ Lazarus mailing list Lazarus@lists.lazarus.freepascal.org http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus
Re: [Lazarus] While starting IDE, lazarus lock, without nay error
I can not be sure, I'm nearly goes mad. in 49639 from terminal, run make then lazbuild then start IDE all of them is okey. My project builded in IDE and can debug it. just for check try build IDE from IDE's Tool menu, builded lazarus packages then my packs, but locked again. I'm terminate lazarus from system monitor. not sure but I think startlazarus freezing. after 49645 IDE locked or in IDE my project lock while compiling. A few second ago I reset to macbook, and retry build IDE r49639 from tool menu I saw Build IDE: Success in messages window and all of theme is green, but locked again. On 15.08.2015 17:45, Mattias Gaertner wrote: Do you mean that something broke between 49639 and 49665? Mattias -- ___ Lazarus mailing list Lazarus@lists.lazarus.freepascal.org http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus
Re: [Lazarus] Missing classes unit
What is the fix? Sent from my iPhone On Aug 15, 2015, at 11:29, Michael Van Canneyt mich...@freepascal.org wrote: On Sat, 15 Aug 2015, Larry Dalton wrote: When I install any component on a form and then click on it, I get an error that says Classes unit missing. The IDE was working perfectly yesterday. What do I need to check for? Sounds like the FPC source path has gone wrong. Michael. -- ___ 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
Re: [Lazarus] Missing classes unit
Hit the Tools / Rescan FPC directory Regards, Ara -- http://www.fastmail.com - Send your email first class -- ___ Lazarus mailing list Lazarus@lists.lazarus.freepascal.org http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus
Re: [Lazarus] Missing classes unit
Thanks! Worked great! Larry Sent from my iPhone On Aug 15, 2015, at 11:43, Aradeonas aradeo...@operamail.com wrote: Hit the Tools / Rescan FPC directory Regards, Ara -- http://www.fastmail.com - Send your email first class -- ___ 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
Re: [Lazarus] Missing classes unit
To Team : This problem is more happening in 1.4 and later.Before this version I didnt see this problem except trunk version. Regards, Ara -- http://www.fastmail.com - Or how I learned to stop worrying and love email again -- ___ Lazarus mailing list Lazarus@lists.lazarus.freepascal.org http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus
[Lazarus] TComboBox
I am using lazarus 1.4.2 on Linux Mint unit and 1.2.6 on Windows 7 unit. Combo box is has a scroll bar on the windows unit but not the linux unit. Which is the problem: windows/linux or 1.4 vs 1.2? Sent from my iPhone -- ___ Lazarus mailing list Lazarus@lists.lazarus.freepascal.org http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus