On Nov 29, 2007, at 9:30 AM, Graeme Geldenhuys wrote:

Hi

See Mantis bug report #10297 for a screenshot of the issue I have.
 http://www.freepascal.org/mantis/view.php?id=10297

I have a 1440x900 widescreen display, yet the Projects|Open Recent
Projects popup menu is very wide due to long directory paths and
project names.

What if we trim the paths that get displayed in the popup menu if they
go over a certain length.  Not sure if this should be always on
(default), or user selectable. I think always on should be fine if we
use a descent trimming algorithm.

eg: We can trim a very long project path like show below to a max of
60 characters.

/home/graemeg/programming/3rdParty/tiOPF2/Source/Demos/ WorkInProgress/Demo_31_AdrsBook_MGM/Demo_AdrsBook_MGM.lpi

...becomes...

Linux:
 /home/...rogress/Demo_31_AdrsBook_MGM/Demo_AdrsBook_MGM.lpi
Windows:
 c:\home\...gress\Demo_31_AdrsBook_MGM\Demo_AdrsBook_MGM.lpi

or

Linux
 ...orkInProgress/Demo_31_AdrsBook_MGM/Demo_AdrsBook_MGM.lpi
Windows:
 ...orkInProgress\Demo_31_AdrsBook_MGM\Demo_AdrsBook_MGM.lpi


We can discuss the trimming algorithm to use. My preference is the first one.
Show the first complete directory (in Windows we include the drive
letter) and trim the rest down to size. The project name *.lpi must
always be complete.


What's you thoughts on this?


I would prefer the first one too. That's why I already recently posted the code to do this :)



--
Damien Gerard
[EMAIL PROTECTED]



_________________________________________________________________
    To unsubscribe: mail [EMAIL PROTECTED] with
               "unsubscribe" as the Subject
  archives at http://www.lazarus.freepascal.org/mailarchives

Reply via email to