The two panes located at the bottom of the Obeject Inspector has no use at all, and it's consuming screen estates unnecessarily, as illustrated in the screenshot below. How to disable that two panes even after restarting the IDE? Built-in options or third party plugins would be OK with me. Thanks.
Delphi XE4 IDE, how to always hide the bottom panes of the Object Inspector
403 views Asked by Edwin Yip At
1
The XE4 code below shows how to hide the items you want to remove: They are instances of the classes
THotCommands
andTDescriptionPane
.Update The original version of this answer required a package including an add-in form and a button to refresh the Object Inspector to hide the two unwanted items. In the code below, I've removed the form entirely and the hiding of the items should now be fully automatic. To achieve this, I replaced the previous IDENotifier by a
DesignNotification
object and use itsSelectionChanged
event to invoke the code which hides theTHotCommands
andTDescriptionPane
controls.TDesignNotification
implements theIDesignNotification
interface in DesignIntf.PasThe other detail which turned out to be critical to getting the hiding process to work automatically is to set the
Height
of theTHotCommands
andTDescriptionPane
controls to 0, because the IDE seems to reset theirVisible
property toTrue
after the component selection in the OI is changed. Fortunately, whatever code does that does not also reset their Heights to a non-zero value.Obviously, to use you add a unit containing the code to a package (.Dpk) file and then compile and install the package in the IDE.
Code: