When you wish to create a new application and click on MDI, Delphi creates a basic MDI application for you with the basic menu items and graphics. You can run the program and create children windows and using the Window menu item place the children in cascade, tile, etc. arrangements.
My question is: where is the code to perform these operations?
I am stumped. You open the pas file editor and basically nothing is there. How does it do it?
Each menu item is linked to different types descendants of TWindowsAction=class(TAction)
. For example WindowsCascadeItem
menu item is linked to WindowsCascade1:TWindowsCascade(=class(TWindowAction))
action. So code is hidden in this class implementation in VCL\STDActns.PAS.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With