We wrote
script in the clicked event of each menu item under 'Module' option to invoke the
respective window as a sheet. As you might have observed, we have few lines of code that
are repeated in these events. What we like you to do is, write a generic function for the
menu object to instantiate the given window and display it in the menu's parent window,
i.e., mdi frame window. Once the function is ready, change the script of all menu items (
menu items under 'Module' option ) clicked events to call this function with appropriate
window name.
Tip: You can use the
second format of OpenSheet() function.
Solution: - ex-10-1-m_mdi_menu_asi.srm |