* * *

Recent Posts

Pages: [1] 2 3 ... 10
1
General / Speedup Lazarus's recompiling
« Last post by x2nie on Today at 07:52:05 pm »
Hi all,


I have a brilliant simple idea to reduce the time of (re)compiling the Lazarus. :-*


The idea is based the fact that Lazarus (application) has unique condition when compared to any application generated by it.
Uniqueness of Lazarus.exe:
* Always distributed with source code. (only lazarus.exe is almost useless)
* Always distributed with the needed resource files  (*.lfm, *.png, *.ico, *.po, etc.)


So, rather than plugging the whole tons of resource  (that I think slowdown the compile time),
can we skip that and just load them when Lazarus being started ?


The trick (that IMO brilliant) is to simply tell compiler with something like {$define let_resource_unplug}
so the application being built (lazarus.exe) will switch to new behavior: load resource {$R *.lfm} from disk instead of from exe stream (HINSTANCE) it self.






I hope it speed up Lazarus? 8-) O:-)
2
General / Re: More complicated Calculator
« Last post by zamtmn on Today at 07:46:35 pm »
If you will create something even better and more user-freindly than http://www.speedcrunch.org/ I'll be happy user. SpeedCrunch is the best calculator I met on PCs.
I use nlcalc (only windows, closed source,no longer develops) - show and hide by numlock press, this is really convenient
3
FPC development / Re: PPL = fpc's BPL ?
« Last post by x2nie on Today at 07:16:46 pm »
Well, it is my last chance and now is clear for me about something that previously seem as mysterious.


* 2015 the Dynamic Package plan were merged into fpc trunk (3.0.4)[1]
* 2016 only compile time packages work (meaning you can't load additional packages at runtime) [2]
* 2018 The big chunk missing is dynamically loading a package which requires some changes to the way units are managed inside an application to address the issue of units (and their types) to be dynamically added (and removed) during the application's lifetime. [3]


It mean that I can continue trying to realize my dream by just using fpc ver3.0.4 ! not the previous version.
And, I can start from any application, because Windows is one of supported target by Dynamic  Package feature.


Because it was a bit ouf of topic, I close the case.


Thanks you all ! 8-)


[1] https://github.com/graemeg/freepascal/commit/afbc33abcaf2f8d2d24c641adc0ae64c1db78fcb
[2] http://lists.freepascal.org/fpc-devel/2016-November/037438.html
[3] http://forum.lazarus.freepascal.org/index.php/topic,41248.msg286331.html#msg286331
4
General / Re: More complicated Calculator
« Last post by marcov on Today at 06:49:36 pm »
x48 is also quite nice.
5
General / Re: More complicated Calculator
« Last post by Handoko on Today at 06:43:01 pm »
SpeedCrunch is the best calculator I met on PCs.

Agree, I use SpeedCrunch too.
6
Android / Re: Android Module Wizard
« Last post by jmpessoa on Today at 06:38:24 pm »

Hi m4u!

AppCompat need other tabbar: jsTabBar  [or   jsViewPager]  [Android Bridges Support palette...]

for simple tab, you can use "jsViewPager" see the demo "AppCompatViewPagerDemo1"
7
Third party / Re: ATFlatControls
« Last post by Alextp on Today at 06:16:44 pm »
ATListbox is virtual.
- set ItemCount to some value
- add OnDrawItem

see demo in the "app" folder in ATFlatcontrols.
8
General / Re: TListFileSearcher.OnFileFound doesn't work.
« Last post by totya on Today at 05:48:05 pm »
one more time where in the above code is the SL updated. only that procedure saves the files found.

Hi!

Sorry but I don't understand you again. My code is perfect, only doesn't work. But anyway, I found what is the problem (really). The problem is the bad implementation in the TListFileSearcher Lazarus code. See:

Code: Pascal  [Select]
  1. procedure TFileSearcher.DoFileFound;
  2. begin
  3.   if Assigned(FOnFileFound) then OnFileFound(Self);
  4. end;

Okay, now let me see the TListFileSearcher:

Code: Pascal  [Select]
  1. { TListFileSearcher }
  2.  
  3.   TListFileSearcher = class(TFileSearcher)
  4.   private
  5.     FList: TStrings;
  6.   protected
  7.     procedure DoFileFound; override;
  8.   public
  9.     constructor Create(AList: TStrings);
  10.   end;
  11.  

DoFile found overrided, but how:

Code: Pascal  [Select]
  1. procedure TListFileSearcher.DoFileFound;
  2. begin
  3.   FList.Add(FileName);
  4. end;

Well, Inherited is missing! So the event is lost. If I put inherited the code,  my code works correctly. Thank you, and wake up taazz :)
9
General / Re: More complicated Calculator
« Last post by Blaazen on Today at 05:28:30 pm »
If you will create something even better and more user-freindly than http://www.speedcrunch.org/ I'll be happy user. SpeedCrunch is the best calculator I met on PCs.
10
Editor / Re: Is it possible to disable text coloring at outlines?
« Last post by Blaazen on Today at 05:23:22 pm »
@ I would like to see colorized lines but not texts.

No, it's not possible now. Both or nothing.
Pages: [1] 2 3 ... 10

Recent

Get Lazarus at SourceForge.net. Fast, secure and Free Open Source software downloads Open Hub project report for Lazarus