mdi

Delphi, frames vs forms. What for multi-document interface?

Hi, yesterday I've started discussion on "MDI vs tabbed interface". I've asked whether should I continue developing my app as MDI-based, or should I embed the child forms into tab sheets. Someone pointed that I should use TFrames instead... My question is: why? What are pros of using TFrames when embedding the form over TFrame? So far I...

Hiding some attributes i.e. textboxes, labels in parent form

m using a MDI child form and want it to display when a button from its parent form is clicked, at the same time i want that when the child form appears it should be placed such that some of the attributes of the parent form i.e. picture box is shown while others as labels and textboxes are hidden. Is this possible and how? ...

How can I Persist MDI Layout in .NET?

I'm writing an MDI Application in C#. I'd like a way to store the positions and contents of all the open windows, so that a user can customize the way multiple documents are viewed. Is there a simple way to do this, or will I have to roll my own solution? ...

Change Layout of all opened Child Forms

Hi all, I have a menu item named as Window which contains the sub items as - tile horizontally, tile vertically and cascade. I have enabled the checked property for all the three items. I have also written the appropriate coding for all the three. But when I open all the child windows in the MDI form even though the tileHorizontally o...

Programs as MDI Child windows

Hi Is there a way to use a program as a MDI child window. I am thinking of having one main MDI parent window which can have multipe child windows, some of which will be programs(.exe files) in there own right. Tim ...

MODI Printer changes my current directory

Hi all, When using the MODI Printer to save a document in mdi format it changes my current directory. The problem is my software saves some stuff in an INI file that is in the current folder (i.e: the "start in" directory of the software) and after a user saves a document using MODI the path changes and the stuff gets writen to a wrong l...

C#: How to change the region containing MDI children?

When creating a MDI parent, the entire "inside" of the form is made the MDI region. If you add a menustrip to the MDI parent, the MDI region is scaled down a bit to make room for the menustrip. But if you add a panel to the top of the MDI parent, the entire inside is still the MDI region. Which means that you can move MDI children up b...

C# - Prevent duplicate MDI children forms

Is there a way to prevent the opening of a certain form within an MDI container if that said form is already opened? Thanks. ...

How would you work with "MDI-ness" in an application that wants to use the MVP pattern?

The situation: MainForm (assigned to the MainPresenter) is up and running. The user click a ShowFoo button - an event is passed to the MainPresenter which in turn creates new FooPresenter and the FooView. How should I proceed now ? Where should the presenter be created and where should the view be created and most importantly, where shou...

How to set an MDI child as another form's owner?

Hi. The title of the question says it all really. I have a child form which has a find form in it. I set the find form's owner to the child form like so: private void ShowFindForm() { FindForm.Show(this); } which then allows me to access it's properties like this: private void FindNext() { TreeNode matchingNode = ... ... etc ...

C# MDI Parent Gain Focus by clicking on MDI Parent background

I want to set focus to an MDI Parent Form when I click on the background of the form. However, the only way I can get it to set focus is when I resize the form. I have tried using mouse click event, click event, key press event etc to manually set the focus when you click on the MDI Parent but none of these events fire. Is there ANY wa...

How do I find which control is focused?

I have a .net MDI application written in vb.net. I'm trying to program a form that will allow the user to select a special character such as °, µ, ², ³, ɑ and so on and have that character inserted into whatever control was focused prior to their launching the form via a hot-key or the main menu in the MDI parent. The easy way to do th...

MDI Applications in WPF

I am working on a new .Net WPF project and will most likely be using the PRISM framework. One of the requirements that I have for the application is to have an MDI type user interface. I need a main shell with a header, footer and sidebar regions. The main workarea of the application needs to contain multiple tabs, with one tab for each...

Delphi MDI Application Next Window menu item

How would I go about implementing the Ctrl+F6 Next Window action in the Windows menu for an MDI application in Delphi 7? ...

How to uses a ToolStripContainer whith Dock=Fill on a MDI parent???

How to uses a ToolStripContainer whith Dock=Fill on a MDI parent???... When I drop a ToolStripContainer on a MDI parent and assing fill to a property Dock it hide all the MDI children. thanks... ...

Try to implement global keyboard shortcut in MDI parent/child form and other form by using ProcessCmdKey

I override ProcessCmdKey() in my MDI parent form class and have some keyboard shortcut calling method in same class. But I wish to make these hotkeys working in parent/child form and other form. The case now is when focus on the other form(regular form, not MDI), ProcessCmdKey() doesn't capture keyboard anymore. Which class should I put ...

How to check the "Z-position" of form in a MDI application?

Hello. I have created MDI application in Delphi. Lets assume that I have a bunch of MDIChild forms in my application which are visible on the screen. I would like to perform a loop on those forms and check in what order each of the forms is displayed on the screen. For example if I have 3 MDICHild forms: FormA, FormB, FormC and For...

Should I subtract 1 from the upper bound of my "for" loops?

I'm having a bit of trouble figuring out what's going wrong with this function. I'm not sure if I should be using -1 or not anymore, and no matter how I try to arrange the code it seems to return nil even when it shouldn't. Could someone with fresh eyes take a look? Also, I'm not sure my result := nil is in the proper place. function TF...

Switching from MDI to SDI and Back Again

This sounds like it would be a simple task, but I'm running into some issues. I have some fairly straightforward code for my C# application: private void SwitchToSdi() { MainWindow mainWindow = GetMainWindow(); for (int index = mainWindow.MdiChildren.Length - 1; index >= 0; index--) { Form f...

How to show a * (asterisk) in Application Title when document has changed and is not saved

I have a MDI Application with one MDI child. When a user changes a Textbox on the MDI child, the MDI child (= document) is changed and is not saved. I want this to be visible in the Titlebar of the Application, like this: ApplicationName [DocumentName*] When the users saves the Document and doesn't change anything after, it should di...