panie 2 Posted October 11, 2020 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
Dmitriy M 10 Posted October 11, 2020 (edited) 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 October 11, 2020 by Dmitriy M Share this post Link to post
dummzeuch 1517 Posted October 11, 2020 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
Edwin Yip 154 Posted October 11, 2020 (edited) 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 October 11, 2020 by Edwin Yip 1 Share this post Link to post
panie 2 Posted October 12, 2020 Lots of good suggestions. Thank you all. 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
panie 2 Posted October 12, 2020 (edited) 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 October 12, 2020 by panie Share this post Link to post
Edwin Yip 154 Posted October 14, 2020 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