View Issue Details

IDProjectCategoryView StatusLast Update
0001747JEDI VCL00 JVCL Componentspublic2004-05-14 11:12
ReporteranonymousAssigned Touser72 
PrioritynormalSeverityfeatureReproducibilityalways
Status resolvedResolutionfixed 
Product Version 
Target VersionFixed in Version 
Summary0001747: JVMruManager length of menu item
DescriptionIt would be nice to set the maximum lenght for the menu item and a switch if it should look like

C:\SomePa...\text.txt
or
...notherDir\text.txt

There is a function PathCompactPath in jcl for this manipulation.
This would be helpfull to use MenuLocation := mruSibling
TagsNo tags attached.

Activities

user72

2004-05-12 13:46

  ~0004225

PathCompactPath doesn't support the "...notherDir\text.txt style" so that would have to be implemented manually (no biggie, though).

Supposing there was a MaxLength property, what would be best: MaxLength = pixels or MaxLength = characters?

anonymous

2004-05-13 11:53

viewer   ~0004238

I would say the best for me is MaxLength = characters.

user72

2004-05-13 13:09

  ~0004240

I'm pleased because I checked in a version yesterday :) with two new properties:

propery MaxLength:integer; - sets the maximum number of characters to display of the path
property StartEllipsis:boolean; - if true, the first part of the path is removed, if false, the middle part of the path is removed

Note that MaxLength is approximate when StartEllipsis is false, and exact when it is false. This is due to how DrawText calculates the length of a string as opposed to just chopping of characters at the beginning of the path so it is <= MaxLength.


Try it out and let me know what you think.

anonymous

2004-05-14 09:06

viewer   ~0004273

Looks great, thanks a lot!!!!

user72

2004-05-14 11:12

  ~0004279

You are welcome

Issue History

Date Modified Username Field Change
2004-05-10 12:06 anonymous New Issue
2004-05-11 23:46 user72 Status new => acknowledged
2004-05-12 13:46 user72 Note Added: 0004225
2004-05-12 13:46 user72 Assigned To => user72
2004-05-12 13:46 user72 Status acknowledged => feedback
2004-05-13 11:53 anonymous Note Added: 0004238
2004-05-13 13:09 user72 Note Added: 0004240
2004-05-14 09:06 anonymous Note Added: 0004273
2004-05-14 11:12 user72 Status feedback => resolved
2004-05-14 11:12 user72 Resolution open => fixed
2004-05-14 11:12 user72 Note Added: 0004279