StrataFrame Forum

UI Design Question

http://forum.strataframe.net/Topic9166.aspx

By Sarosh - 5/29/2007

Hi!

In our current MDI Apps the most common UI is having a common Tool bar/strip on the MDI Container/Parent and many MDIChild forms with many Grids in them.

e.g. If the MDIChild 'CustomerForm' is the active form and has three grids GridParent, GridChild1 and GridChild2 on it and if the GridParent is the active control and if the user clicks on the MDIParent's Tool bar/strip to add a new row then the new row is added on the active control (GridParent) but if the users then clicks on GridChild2 and then clicks on the Navigate buttons on the tool bar/strip it should then act on GridChild2 and so on.

In short the tool bar/strip should find out the active form (MDIChild) and then within that form the ActiveControl (GridParent, or GridChild1 or GridChild2) and then act on that Active control.

How would I implement this type of UI in SF as it?

Thanks

Sarosh

By Trent L. Taylor - 5/29/2007

This really has nothing to do with StrataFrame but rather .NET in general.  You can do several different things.  In our medical software we have a MenuSystem class which is a shared (or static in C#) class that launches all of the forms and associates them with the application MDI (if it is in fact supposed to be added to the MDI).  So we know of all of forms and which form is active as well.  You can inherit the StrataFrame StandardForm and add additional functionality that handles the Activated event of the form and then take the appropriate action.  Below are some different links that we have posted on before that relate to setting up an MDI environment.  Just some different ideas:

http://forum.strataframe.net/FindPost6085.aspx

http://forum.strataframe.net/FindPost5199.aspx (more likely close to what you are looking for)

By Sarosh - 5/29/2007

Hi!

Thanks for the quick reply and the links!

It should serve as a good starting point for me.

Thanks again.

Sarosh

By Trent L. Taylor - 5/29/2007

Sure Smile