Re: [fpc-pascal] Directory Tree

2021-04-25 Thread James Richters via fpc-pascal
Thanks for the explanation... phew, what a lot of stuff... no wonder I like my console programs so much  For critical timing applications I have a lot more control of exactly when things happen... but this project is helping me appreciate the benefits of a GUI application. I just need to

Re: [fpc-pascal] Directory Tree

2021-04-25 Thread Jean SUZINEAU via fpc-pascal
Le 25/04/2021 à 21:30, James Richters via fpc-pascal a écrit : >I added LoadFromFile in this event. That was the first thing I tried, but the problem is, this happens before anything is put on the screen.. so when I run the program with an Ini file with 4000 entries in it, there is

Re: [fpc-pascal] Directory Tree

2021-04-25 Thread James Richters via fpc-pascal
>I'll try another pull request of something simple just to see if it will work. I made another pull request on GitHub, https://github.com/jsuzineau/pascal_o_r_mapping/pull/3 This one is an attempt to add some text boxes and to use them to display the totals and to get a time variable

Re: [fpc-pascal] Directory Tree

2021-04-25 Thread James Richters via fpc-pascal
>I added LoadFromFile in this event. That was the first thing I tried, but the problem is, this happens before anything is put on the screen.. so when I run the program with an Ini file with 4000 entries in it, there is a good 30 second delay, and then the screen is shown with

Re: [fpc-pascal] Directory Tree

2021-04-25 Thread Jean SUZINEAU via fpc-pascal
Le 25/04/2021 à 15:24, James Richters via fpc-pascal a écrit : RE: [fpc-pascal] Directory Tree I fixed the time totals to show days correctly with this: I didn't use your pull request because I don't know yet how to handle it. I have delete some files which differed only by case. After

Re: [fpc-pascal] Directory Tree

2021-04-25 Thread Jean SUZINEAU via fpc-pascal
Le 25/04/2021 à 02:54, James Richters via fpc-pascal a écrit : RE: [fpc-pascal] Directory Tree I’ve been trying make “Load from file”happen automatically when the program starts.. I would like it to happen after configuration.ini restores the file name and also after the form is on the screen

Re: [fpc-pascal] Directory Tree

2021-04-25 Thread James Richters via fpc-pascal
I fixed the time totals to show days correctly with this: procedure TTreeData.SetdValue( _dValue: TDateTime); begin FdValue:= _dValue; FValue:=''; If FdValue>=2 Then FValue:= Format ('%d Days ',[Trunc(FdValue)]) Else If FdValue>=1 Then FValue:= Format ('%d Day

Re: [fpc-pascal] Directory Tree

2021-04-25 Thread James Richters via fpc-pascal
I was able to fix the spacing on the PDF file so there are no more gaps between the box characters. I had to change both: DB.Layout.Height:=4; // 0.4 cm. DB.StretchMode:=smDontStretch; So now that the PDF file looks correct, I don’t need the open office document because it