Jump to content
Sign in to follow this  
dummzeuch

The annoying problem of the growing GExperts menu

Recommended Posts

As I add new functionality to GExperts the menu it displays grows larger and larger. On small monitors (there are still computers with e.g. 1024×600 pixels screen size in use, usually not with the latest Delphi version though) this means that the menu has to be broken into chunks, each with a “more” entry at the end to display the next chunk.
While this has been implemented for years (decades actually) it didn’t work very well. For Delphi 6 the code was completely broken (I might have been the culprit myself) it still had some bugs with all later versions.

No more. Today I fixed those bugs and tested it with screens as small as 640×480 pixels.

Also, when moving the GExperts menu into the Tools menu, there was a problem that the maximum number of entries for a chunk was not calculated correctly which would mean that the “more” entry could end up outside the visible area. This has also been fixed.

 

GExperts-Menu.thumb.png.19cff436ca05d344a04afd35a63615b9.png

 

Unfortunately this does not solve the underlying problem: The menu keeps growing. There are now a maximum of 45 + 3 Entries in that menu.  [read on in my blog post]

Share this post


Link to post

What about breaking down the menu into groups?

Yes, it is convenient to have everything on top level ... until it isn't.

Since I don't use GExperts, my grouping suggestion is only based on menu names, not on actual functionality - so some placements may be totally wrong.
 

File
  Code Librarian
  Code Proofreader ...
  Favorites 
  Open
Project
  Backup ...
  Class Browser
  Dependencies
  Source Export
Component
  Copy Names
  Find Reference
  Grid ...
  Hide / Show Non.-Visual
  Rename
  Replace
  Select
  Set FocusControl
  Set Tab Order ...
  To Code
Editor
  Bookmarks
  Comment Empty Code Blocks
  Clipboard History
  Experts
  Focus
  Go to
Grep
  Next Item
  Previous Item
  Results
  Search ...
Macro
  Library
  Playback
  Record Start/Stop
Tools  
  Ascii Chart
  IDE Menu Shortcuts...
  Keyboard Shortcuts
  Message Dialog
  PE Information
  To Do List
  --
  Configuration
  About
Window
  Add Dock Window
  Reselect Desktop

 

  • Like 1

Share this post


Link to post
5 hours ago, Lars Fosdal said:

What about breaking down the menu into groups?

From my blog post:

Quote

The way that menu is created on demand, depending on which experts are enabled or not, does not lend itself to a sensible menu structure.

 

I have added a “Category” property to each expert, which so far is neither filled nor used anywhere. I plan to create only one entry per Category in the GExperts menu with sub menus for each category. Maybe I will even make those categories configurable. But that’s for another day.

But thanks for your suggestion on how to group them. I'll keep that in mind once I get to actually implement it.

  • Like 1

Share this post


Link to post

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
Sign in to follow this  

×