B4J Code Snippet Looking for MDI form?

upload_2017-7-3_12-8-53-png.57278
upload_2017-7-3_13-38-15.png


1 - Put a tabpane in the layout that you want to be the "MDI";
2 - Create a code module for each "form" with a show method;
3 - In the show method, each form will be loaded into the tabpane as follows: Main.TabPane1.LoadLayout ("Form layout", "Tab name")
4 - To close a "Form", you can use Main.TabPane1.Tabs.RemoveAt (Main.TabPane1.SelectedIndex)

Ready!
 

Attachments

  • MDI.zip
    32.8 KB · Views: 519
Top