Recent

Author Topic: About form  (Read 6596 times)

freeman35

  • Jr. Member
  • **
  • Posts: 92
About form
« on: February 20, 2014, 09:35:33 am »
Is it  possible add fpc svn version and build date on about form?
Thank you
« Last Edit: February 20, 2014, 09:38:38 am by freeman35 »

marcov

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 7446
Re: About form
« Reply #1 on: February 20, 2014, 12:16:06 pm »
Not designtime, but runtime you can simply set a property using values from {$I http://www.freepascal.org/docs-html/prog/progsu41.html

label1.caption:='{$i %FPCVERSION%} {$i %date%} {$i %time%}';

note though that because FPC can build incremental that means the buildtime FOR THAT MODULE! If you routine do a full build for a real release, that is not a problem though.

freeman35

  • Jr. Member
  • **
  • Posts: 92
Re: About form
« Reply #2 on: February 20, 2014, 11:08:31 pm »
Thank you but I'm talk about lazarus about form :)

engkin

  • Hero Member
  • *****
  • Posts: 2513
Re: About form
« Reply #3 on: February 21, 2014, 12:48:55 am »
It is already there!

Zoran

  • Hero Member
  • *****
  • Posts: 1459
    • http://wiki.lazarus.freepascal.org/User:Zoran
Re: About form
« Reply #4 on: February 21, 2014, 06:30:54 am »
See the constants in unit LCLVersion, these will give you LCL (that is Lazarus) version.
I do not know how to get svn revision number, but, as we can see it is in Lazarus about box, apparently there is a way to add svn revision as well.
« Last Edit: February 21, 2014, 06:35:22 am by Zoran »

engkin

  • Hero Member
  • *****
  • Posts: 2513
Re: About form
« Reply #5 on: February 21, 2014, 06:46:10 am »
I do not know how to get svn revision number
It comes from ide\revision.inc:

Code: Text  [Select]
  1. // Created by Svn2RevisionInc
  2. const RevisionStr = '41139';
  3.  

howardpc

  • Hero Member
  • *****
  • Posts: 3150
Re: About form
« Reply #6 on: February 21, 2014, 09:57:35 am »
I think freeman35 is asking for fpc svn revision number and build date, not Lazarus information, which is already shown.
The fpc build (compile) date is available in the plethora of data under View->IDE Internals, but I don't see there the fpc svn revision number, though I might have missed it.

Dimitrios Chr. Ioannidis

  • Jr. Member
  • **
  • Posts: 83
    • Nephelae
Re: About form
« Reply #7 on: February 21, 2014, 01:57:10 pm »
AFAIK fpc svn revision number can be included and be shown with the -iW switch only if you build fpc from svn and do a "make revision" in the compiler dir before the usual "make all install ... etc" in the top dir.
Dimitrios Chr. Ioannidis
http://www.nephelae.eu

engkin

  • Hero Member
  • *****
  • Posts: 2513
Re: About form
« Reply #8 on: February 21, 2014, 02:33:06 pm »
I think freeman35 is asking for fpc svn revision number and build date, not Lazarus information, which is already shown.
Thanks for the correction  :)

freeman35

  • Jr. Member
  • **
  • Posts: 92
Re: About form
« Reply #9 on: February 21, 2014, 02:59:24 pm »
Yse I talk about "fpc svn revision number and build date"  lazarus was there and just fpc version on there 2.7.1 etc.
I checked fp IDE about box, NO svn revision info too
Why I need, I actually update svn version in 1-2 days. some bugs been and I need to know versions. best easy way look at to lazarus about form. Lazarus svnrevision number is there but just fpc version is write there (2.7.1)
@howardpc Yes fpc compiled date and other info there ,but no fpc svn revision number anywhere :)
This is my suggestion, this fpc info add to lazarus about form too

flywire

  • Jr. Member
  • **
  • Posts: 85
Re: About form
« Reply #10 on: March 23, 2015, 09:56:30 am »
Swipe to copy info from about form to keyboard buffer would be useful.