Sign in Join

Live chat for Free Pascal, Lazarus, Delphi and every Pascal programmer.

Mailing lists / lazarus / 2009-12

Problem with fshcomp package

5 messages · 3 people · –

Reply by email Subscribe to this list Your subscription

Read-only archive. Use j and k to move between messages.

Tomaž Zupan

Hi!

I have been trying to install fshcomp package
http://wiki.lazarus.freepascal.org/Fshcomp to lazarus. I have lazarus snapshot 0.9.29-22663. I have found the problem with the code (same as here http://forum.lazarus.freepascal.org/index.php/topic,6400.0.html), but I have managed to correct it and install the package.

I now have the components in IDE, but when I drop TSrEditCur (currency entry) to the form, I get an error saying:

"SrEditCur1" is an invalid float

IDE then dies.

I assume this is because IDE wants to set initial value of text property of TSrEditCur (as it is descendant of TCustomEdit) to "SrEditCur1", but TSrEditCur expects a float.
My question is how to set default value for text property of TSrEditCur component?

LP, Toma?

Reply by email

Mattias Gaertner
to Tomaž Zupan
Show quoted text 20 lines
Hi! I have been trying to install fshcomp package http://wiki.lazarus.freepascal.org/Fshcomp to lazarus. I have lazarus snapshot 0.9.29-22663. I have found the problem with the code (same as here http://forum.lazarus.freepascal.org/index.php/topic,6400.0.html), but I have managed to correct it and install the package. I now have the components in IDE, but when I drop TSrEditCur (currency entry) to the form, I get an error saying: "SrEditCur1" is an invalid float IDE then dies. I assume this is because IDE wants to set initial value of text property of TSrEditCur (as it is descendant of TCustomEdit) to "SrEditCur1", but TSrEditCur expects a float. My question is how to set default value for text property of TSrEditCur component?

In the constructor of TSrEditCur:

  ControlStyle:=ControlStyle-[csSetCaption];
  Text:='0.0';

Mattias

Reply by email

Tomaž Zupan
to Mattias Gaertner

Wednesday 16 December 2009 11:28:00 je Mattias Gaertner napisal:

Show quoted text 8 lines
> My question is how to set default value for text property of TSrEditCur > component? In the constructor of TSrEditCur: ControlStyle:=ControlStyle-[csSetCaption]; Text:='0.0';

Hi,
thank you for this. I fixed it and tested on windows and linux. I posted updated files on forum:
http://www.lazarus.freepascal.org/index.php/topic,8162.0.html

LP, Toma?

Reply by email

Vincent Snijders
to Tomaž Zupan
Toma? Zupan wrote 14 lines
Wednesday 16 December 2009 11:28:00 je Mattias Gaertner napisal: >> My question is how to set default value for text property of TSrEditCur >> component? > In the constructor of TSrEditCur: > > ControlStyle:=ControlStyle-[csSetCaption]; > Text:='0.0'; > Hi, thank you for this. I fixed it and tested on windows and linux. I posted updated files on forum: http://www.lazarus.freepascal.org/index.php/topic,8162.0.html

Thanks.

The zip is now available at:
http://sourceforge.net/projects/lazarus-ccr/files/Fshcomp/Fshcomp%202.3.1.1/

Can you update http://wiki.lazarus.freepascal.org/Fshcomp#Changelog

Vincent

Reply by email