I have a search window in a Delphi7 application that needs to behave differently depending on which form was Active when the search was opened. Specifically, there are two forms that need to have a different button visible on the search, when it should be invisible when coming from all other forms.
Is there a way to access the property that stores the name of a form (either accessing the Name property or even the Caption property) that I can send as a parameter? Or another better/cleaner way of achieving this, if you know of one.
In an MDI application, the main form’s
ActiveMDIChildproperty gives you the currently active child form.