Re: [fpc-pascal] Directory Tree

2021-04-11 Thread Jean SUZINEAU via fpc-pascal

I have updated the VirtualTreeView example with sub-totals of time.
___
fpc-pascal maillist  -  fpc-pascal@lists.freepascal.org
https://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-pascal


Re: [fpc-pascal] Version 3.2.2 changes

2021-04-11 Thread Marco van de Voort via fpc-pascal


Op 2021-04-11 om 15:21 schreef Marco van de Voort via fpc-pascal:


Op 2021-04-09 om 10:42 schreef Florian Klämpfl via fpc-pascal:

 but the "fix version" of most bug reports does not get updated when

fixes are backported. I used to spend days on going through all merges
and updating the merge revisions and fix versions when a release was
nearing, but I no longer have time for that.
As this is most likely pretty useful, I am willing to work on it. 
Anybody else?


Start rev on fixes branch to look at is r45254, the  revision that 
3.2.0 branched off, all revs in fixes_3_2 before are guaranteed in 3.2.0


The revisions post merged into 3.2.0 should be subtracted from that set.


I did a few till "r46616 | michael | 2020-08-23"


___
fpc-pascal maillist  -  fpc-pascal@lists.freepascal.org
https://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-pascal


Re: [fpc-pascal] Directory Tree

2021-04-11 Thread Jean SUZINEAU via fpc-pascal

TStringList works pretty much like an inifile section.
The index corresponds to the line number in you text block.
The Names property corresponds to the part of the line before the '=' char.
The ValueFromIndex property corresponds to the part of the line after 
the '=' char.
So if you line i contains "M:\Project1\File1=8:32", Names[i] will 
returns "M:\Project1\File1" and ValueFromIndex returns "8:32"
The text block (property Text) is viewed like a kind of list of virtual 
records "name=value"


You can iterate the nodes in the TreeView and change their text.

I have updated the example with a VirtualTreeView on a new form (you 
should download all the files in a different directory).
It's more complex to implement, but with checkboxes you just need a 
simple click.




___
fpc-pascal maillist  -  fpc-pascal@lists.freepascal.org
https://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-pascal


Re: [fpc-pascal] Directory Tree

2021-04-11 Thread James Richters via fpc-pascal
I had a feeling it wouldn't be easy to change, but thought I would ask.  I like 
the selected items to be highlighted as they are in your TTreeview example.

I'm confused by your reference to slFiles.Names and slFiles.ValueFromIndex  I 
am trying to see how those got defined.  I see slFiles is a TStringList,  I 
thought a TStringList was strictly a list of strings, but this seems to be more 
like a list of records, but don't see how the records were ever defined.. and I 
didn't know this was something you could even do with TStringList.  In fact I 
like the records a lot better than just strings, but I'm trying to figure out 
how it was accomplished.

I'm also trying to figure out where the tree data is stored and if I can modify 
it?  Once the tree is built, I would like to go through and modifiy all the 
parent names with the total times of all the children under the parent.  Is 
this even possible with TTreeView?  Or is this another reason I might use 
something else?  Or will I have to re-build the input file to include the 
totals somehow?

James

-Original Message-
From: fpc-pascal  On Behalf Of Jean 
SUZINEAU via fpc-pascal
Sent: Sunday, April 11, 2021 9:23 AM
To: fpc-pascal@lists.freepascal.org
Cc: Jean SUZINEAU 
Subject: Re: [fpc-pascal] Directory Tree

Indeed, I think it's difficult (if possible) to change the behaviour of the 
multiselection this way.

The TTreeview.MultiSelectStyle property allows you to change from 
CtrL+Click to Shift+Click.

https://lazarus-ccr.sourceforge.io/docs/lcl/comctrls/tmultiselectstyle.html

To make the multi selection with just a left click, I think the best way would 
be to use the TVirtualTreeView with checkboxes.


___
fpc-pascal maillist  -  fpc-pascal@lists.freepascal.org
https://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-pascal

___
fpc-pascal maillist  -  fpc-pascal@lists.freepascal.org
https://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-pascal


Re: [fpc-pascal] Directory Tree

2021-04-11 Thread Jean SUZINEAU via fpc-pascal
Indeed, I think it's difficult (if possible) to change the behaviour of 
the multiselection this way.


The TTreeview.MultiSelectStyle property allows you to change from 
CtrL+Click to Shift+Click.


https://lazarus-ccr.sourceforge.io/docs/lcl/comctrls/tmultiselectstyle.html

To make the multi selection with just a left click, I think the best way 
would be to use the TVirtualTreeView with checkboxes.



___
fpc-pascal maillist  -  fpc-pascal@lists.freepascal.org
https://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-pascal


Re: [fpc-pascal] Version 3.2.2 changes

2021-04-11 Thread Marco van de Voort via fpc-pascal


Op 2021-04-09 om 10:42 schreef Florian Klämpfl via fpc-pascal:

 but the "fix version" of most bug reports does not get updated when

fixes are backported. I used to spend days on going through all merges
and updating the merge revisions and fix versions when a release was
nearing, but I no longer have time for that.

As this is most likely pretty useful, I am willing to work on it. Anybody else?


Start rev on fixes branch to look at is r45254, the  revision that 3.2.0 
branched off, all revs in fixes_3_2 before are guaranteed in 3.2.0


The revisions post merged into 3.2.0 should be subtracted from that set.

___
fpc-pascal maillist  -  fpc-pascal@lists.freepascal.org
https://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-pascal


Re: [fpc-pascal] Version 3.2.2 changes

2021-04-11 Thread Jonas Maebe via fpc-pascal
On 09/04/2021 10:42, Florian Klämpfl via fpc-pascal wrote:
> 
> 
>> Am 08.04.2021 um 21:27 schrieb Jonas Maebe via fpc-pascal 
>> :
>>
>> On 08/04/2021 21:07, Peter via fpc-pascal wrote:
>>> Does anyone have a link to useful list of changes or bug fixes for 3.2.2?
>>
>> Unfortunately, no. In theory you could see it on
>> https://bugs.freepascal.org/changelog_page.php (for the 3.2.1 version),
>> but the "fix version" of most bug reports does not get updated when
>> fixes are backported. I used to spend days on going through all merges
>> and updating the merge revisions and fix versions when a release was
>> nearing, but I no longer have time for that.
> 
> As this is most likely pretty useful, I am willing to work on it. Anybody 
> else?

I can do it for the ones I merged.


Jonas
___
fpc-pascal maillist  -  fpc-pascal@lists.freepascal.org
https://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-pascal


Re: [fpc-pascal] Interruption handling on i8086

2021-04-11 Thread Guillermo via fpc-pascal
El Sun, 11 Apr 2021 00:26:39 +0200
Sven Barth  escribió:
 
> That revision wasn't merged to 3.2.x, so it's not fixed in the RC.
> I've now done so, thus it should be in the final 3.2.2.

Thanks Sven.  I was about to ask at Lazarus forums right now. :)

> 
> Regards,
> Sven

Regards,
Guillermo "Ñuño" Matínez

___
fpc-pascal maillist  -  fpc-pascal@lists.freepascal.org
https://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-pascal


Re: [fpc-pascal] Interruption handling on i8086

2021-04-11 Thread Guillermo via fpc-pascal
Hi, Tomas.

El Sat, 10 Apr 2021 16:05:28 +0200
Tomas Hajny via fpc-pascal  escribió:
>
> Hi,
> 
> I believe that you need to add the "far" modifier after the
> "interrupt" - at least this has been the case with TP/BP and is
> probably needed at least for some memory models supported with FPC
> for i8086. The {$F+} directive as mentioned in your later post is an
> alternative, but not needed for the whole program (it might make it
> less efficient). I don't know if there are any other caveats.
> 
> Tomas

It was long ago since I did my latest DOS 16bit program with Turbo
C/C++ 2.0 so I forgot the "far" modifier.  Thank you to make me
remember it.

Now I remember I have to use it with Large and Huge, not sure about
Medium but I'll look for documentation.  I'll also look for the {$F+}
directive to know how it behaves with Tiny and Compact models.


Regards,
Guillermo "Ñuño" Martínez.
___
fpc-pascal maillist  -  fpc-pascal@lists.freepascal.org
https://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-pascal