Re: [MSEide-MSEgui-talk] Tprogressbar and resource used ?

2018-06-03 Thread Martin Schreiber
On Sunday 03 June 2018 14:09:07 fredvs wrote: > > Set traces.xserrange to 0.9, xserstart to 0.05. Set traces[0].offset to > > -10 > > Ooops, I have to buy a bigger cristal ball because mine did not show that. > The whole tchart works with scales. It is no collection of progressbars. ;-) Martin

Re: [MSEide-MSEgui-talk] Tprogressbar and resource used ?

2018-06-03 Thread Martin Schreiber
On Sunday 03 June 2018 13:49:57 fredvs wrote: > Hello Martin. > > > Please do not set traces.count to 20 > > Ha, ok. I did use: > > tchart.traces.count := 20; That means you create additional trace items traces[1..19] which do nothing other than to consume RAM and CPU cycles. >

Re: [MSEide-MSEgui-talk] Tprogressbar and resource used ?

2018-06-03 Thread fredvs
> Set traces.xserrange to 0.9, xserstart to 0.05. Set traces[0].offset to -10 Ooops, I have to buy a bigger cristal ball because mine did not show that. OK but very tricky. ( Would it be a horrible crime to use: tchart.traces.count := 20; tchart.traces.maxcount := tchart.traces.count + 1;

Re: [MSEide-MSEgui-talk] Tprogressbar and resource used ?

2018-06-03 Thread fredvs
Hello Martin. > Please do not set traces.count to 20 Ha, ok. I did use: tchart.traces.count := 20; tchart.traces.maxcount := tchart.traces.count + 1; And with this I get a perfect result. But, ok, I will study your

Re: [MSEide-MSEgui-talk] Tprogressbar and resource used ?

2018-06-02 Thread Martin Schreiber
On Saturday 02 June 2018 20:53:56 fredvs wrote: > Hello Marin. > > How to fit all the bars in a TChart ? > Set traces.xserrange to 0.9, xserstart to 0.05. Set traces[0].offset to -10. Please do not set traces.count to 20. " procedure tmainfo.oncreated(const sender: TObject); begin Timerwait :=

Re: [MSEide-MSEgui-talk] Tprogressbar and resource used ?

2018-06-02 Thread Martin Schreiber
On Saturday 02 June 2018 16:26:58 fredvs wrote: > > Some questions: > > What is mwcnoise() / flo64($) ? > Is it a alternative to random() ? > Yes, it is much faster but its statistical quality is lower than the mersenne twister of FPC. > Is it possible to have a TChart with only

Re: [MSEide-MSEgui-talk] Tprogressbar and resource used ?

2018-06-02 Thread fredvs
> Is it possible to have a TChart with only verticals bars (not linked like in > demo) that mimic a TProgressbar ? Ha, ok, ---> charkind := tck_bar. Thanks. Fre;D -- Sent from: http://mseide-msegui-talk.13964.n8.nabble.com/

Re: [MSEide-MSEgui-talk] Tprogressbar and resource used ?

2018-06-02 Thread fredvs
Hello Marin. How to fit all the bars in a TChart ? On the picture, you may see that last bar is missing. Changing for bigger tchart.width did not solve. Included demo of this. msemem.zip

Re: [MSEide-MSEgui-talk] Tprogressbar and resource used ?

2018-06-02 Thread fredvs
Hello Martin. Ok, I did test Tchart vs TProgressbar. My verdict is: - If TProgressbar does not have fading and frame is original (not use a template) and not = nil (only a "pure" ) then the ressource used by 20 TProgressbars is more or less equal than ressource used by 1 TChart of 20 bars. -

Re: [MSEide-MSEgui-talk] Tprogressbar and resource used ?

2018-06-01 Thread fredvs
Hello Martin. > Removing the fades probably also speeds up things. Yes, it is what I want to show you. Removing the fades makes use only 35 % of resource. But I will study your answer, write you later.

Re: [MSEide-MSEgui-talk] Tprogressbar and resource used ?

2018-06-01 Thread Martin Schreiber
On Friday 01 June 2018 14:45:41 fredvs wrote: > Hello Martin. > > I am a little afraid about the resource used by tprogressbar. > > Included a simple demo to show it. > msemem.zip > > > The tprogressbar.value is assigned by a timer

[MSEide-MSEgui-talk] Tprogressbar and resource used ?

2018-06-01 Thread fredvs
Hello Martin. I am a little afraid about the resource used by tprogressbar. Included a simple demo to show it. msemem.zip The tprogressbar.value is assigned by a timer with a random value: When rendering the tprogressbar: cpu