Jump to content
panie

Feature Request: Keyboard shortcut to close the IDE Messages window

Recommended Posts

When I use my absolute favorite database IDE from JetBrains called DataGrip, there is a keyboard shortcut SHIFT+ESC that close the result windows after writing a SQL command.

 

What I would like to see is a keyboard shortcut that close the Messages window that pops up in the lower part of the Delphi IDE when I compile. As it is today it irritates me since I have to lift my hand from the keyboard and move the mouse to close the window.

 

Maybe this would be useful for more than me.

 

Share this post


Link to post

GExperts has the "Reselect desktop" expert (GExperts - Configuration - Experts tab). This expert basically reloads your currently selected IDE desktop layout. You are able to assign shortcut to trigger that expert. Not ideal solution but that does it for me.

Edited by Dmitriy M

Share this post


Link to post
1 hour ago, Dmitriy M said:

GExperts has the "Reselect desktop" expert (GExperts - Configuration - Experts tab). This expert basically reloads your currently selected IDE desktop layout. You are able to assign shortcut to trigger that expert. Not ideal solution but that does it for me.

GExperts also has an option to "Automatically close (the) message window after a successful compile". It's on the IDE tab of the configuration.

Not quite a keyboard shortcut but maybe even better?

Share this post


Link to post

Use the attached Pascal script file with CN Pack's "Script Expert", set a shortcut for the script.

 

This is the only workable solution ATM AFAIK.


 

{*******************************************************}
{                                                       }
{       Pascal Script Source File                       }
{       Run by RemObjects Pascal Script in CnWizards    }
{                                                       }
{       Generated by CnPack IDE Wizards                 }
{                                                       }
{       Author: Edwin Yip                               }
{*******************************************************}

program ToggleMsgView;

uses
  Windows, Messages, SysUtils, Classes, Graphics, Controls, Forms, Dialogs;

const
  cMinMsgViewHeight = 130;

begin
  // Toogle the message view of the Delphi IDE
  if CnMessageViewWrapper.MessageViewForm.Visible then
    CnMessageViewWrapper.MessageViewForm.Hide
  else
  begin
    if CnMessageViewWrapper.MessageViewForm.Height < cMinMsgViewHeight then
      CnMessageViewWrapper.MessageViewForm.Height := cMinMsgViewHeight;
    CnMessageViewWrapper.MessageViewForm.Show;
  end;
end.

 

ToggleMsgView.pas

Edited by Edwin Yip
  • Like 1

Share this post


Link to post

Lots of good suggestions. Thank you all. :classic_biggrin:

 

I have considered unpin the Messages window in the IDE too. But that does only irritate me since I like to read the compiler warning/messages.

 

Thought my "SHIFT+ESC" keyboard function was a good candidate for either MMX or for GExperts.

 

I will try the CnPack script...

 

PPS. I remember long, long time ago when I worked in Visual Studio 6 that its message window also could be removed by pressing the ESC key.

 

Share this post


Link to post

1) I tried to use the GExperts expert Reselect desktop, but could not map it to keyboard shortcut SHIFT+ESC.

 

    As soon as I press the ESC key the keyboard shortcut field is cleared.

 

2) I also tried to use CnPack wizard Script Expert, but did not find how to connect run of the script to a keyboard shortcut.

 

Would be much easier for me if MMX Code Explorer (or maybe GExperts) had it built in.

Edited by panie

Share this post


Link to post
On 10/13/2020 at 1:38 AM, panie said:

1

2) I also tried to use CnPack wizard Script Expert, but did not find how to connect run of the script to a keyboard shortcut.

Go to Cn Pack -> Script Wizard > Script Library.

Add a new item then set the file name and keyboard shortcut for it.

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
×