Page History
...
Clearly the code for both event handlers has been duplicated. This means any changes made to one handler should be made to another. We can eliminate the need to change the code in both places simply by modifying one event handler to call the other, like thithis:
Code Block |
---|
OnClick.PUB_TB_MOVIES:
Send_Event(@Window : '.MENU.SAMPLE.MOVIES', 'MENU')
return |
Launching our New MDI Child
If everything has been done correctly then we can launch FRW_MAIN and click on our new menu item, toolbar button, and launch bar item. Our MDI Child form should appear.
Note |
---|
If your MDI Child form is databound, it will not yet be able to read data. This is because all forms designed in SRP FrameWorks are automatically governed by the security management system. Until this form is properly registered in the Security Manager and the user granted sufficient rights, it will only be partially functional. Working with the Security Manager will be discussed in another article. |
As your applications begins to evolve, you will likely need to do more than launch MDI Child forms. Hopefully this exercise has given you a foundation from which you can do other things.