Все вопросы: [mdi]

85 вопросов

похожие теги:
1
голосов
2ответов
1653 просмотров

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 ...

0
голосов
1ответов
1528 просмотров

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

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 ... etc ...

0
голосов
1ответов
391 просмотров

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 b...

12
голосов
7ответов
21445 просмотров

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?

0
голосов
2ответов
1356 просмотров

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...

1
голосов
3ответов
4599 просмотров

Programs as MDI Child windows

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

0
голосов
1ответов
678 просмотров

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?

0
голосов
2ответов
243 просмотров

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...

7
голосов
7ответов
9759 просмотров

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

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 em...

5
голосов
5ответов
39842 просмотров

Move one form to another winforms - C#

I have 2 winforms Form 1 and Form 2. I have button1 in form1, when i click on button1 from form1 i display form2. Form2 ins = new Form2(); ins.MdiParent = this.MdiParent; this.Hide(); ins.ShowDialog(); I hide the form1 to display form2 when butto...

8
голосов
4ответов
6177 просмотров

Delphi, MDI vs Tabs for multi-document interface

I'm developing a multi-document application. Currently it uses MDI which is quite convenient for me (as a developer) as well as for users I believe. However there is one "against" - I haven't found a solution to quickly load many child windows (each time the window is created and maximized to fil...

4
голосов
4ответов
7911 просмотров

Showing MDI form as modal

This will sound against the nature of MDI.. I need to show a MDI form (FormStyle=fsMdiChild) as modal sometimes. And I also need to access the part between Application.CreateForm and OnShow event of another MDI form, i.e. Application.CreateForm(Form2,TForm2); // but don't set form2's visible ...

5
голосов
2ответов
9274 просмотров

Delphi MDI - handling open/close/activate child form

I'm developing MDI application which assigns a tab for each created MDI child. I need to "catch" OnActivate, OnCreate and OnDestroy events of child form in the main (parent) form code. Simply calling the code in children form is impossible for me, as there are many form's classes that are used as...

0
голосов
4ответов
4464 просмотров

How to correctly handle a centered MDI form background image

I have an MDI form with a centered background image. Each time the user changes the size or state of the form, the image isn't updated at all. It remains in the old place (not centered any more) and is even lost when the form is made too small. How can this situation correctly be handled? Do I r...

2
голосов
1ответов
1949 просмотров

Distribution of MDI children in an MDI parent

I have an MDI parent form that creates many MDI children at run time. Is there a smart way to evenly ditribute these forms inside there parent? any ideas? Thanks in advance!!

4
голосов
4ответов
482 просмотров

Inspiration to get rid of MDI UI

Microsoft seems to want us to stop using the MDI, but if more people are like me they're stuck on how things used to be. Software like Word and Excel is simple to create without MDI, but I have trouble thinking out good UI without MDI. Is there a place where I, and others like me, can see examp...

2
голосов
1ответов
2516 просмотров

Getting Cross-thread operation not valid in MDIParent

Possible Duplicate: Cross-thread operation not valid I am trying to close the base of a form from another thread. I am getting the following error. System.InvalidOperationException: Cross-thread operation not valid: Control 'MDIParent' accessed from a thread other than the thread i...

3
голосов
3ответов
5115 просмотров

MDI window list not updating child title bar texts

I have a MDI container form, and some child forms that update their title bar texts themselves, independently. After the Text property is changed on the child form, the new title bar text from the child is not updated in the window list menu when the menu is opened. This is the auto-generated win...

5
голосов
3ответов
3099 просмотров

Qt MDI app with OpenGL: how to grab a valid screenshot?

I have an MDI app written in Qt. Some of the subwindows include QGLWidgets, i.e., OpenGL contexts. The most salient of these use OpenGL vertex and fragment shaders to visualize their data. I need to programmatically capture a screenshot of the application's main window, including of course all t...

1
голосов
1ответов
1550 просмотров

changing the color of MDI child windows under Windows 7

I have an MDI application written in C++ that looks great under Windows XP. All of the MDI child windows end up looking like their parent window. Nice. However, under Windows 7 (and probably Vista), the parent windows have aero glass, and the child windows are this hideous unchangeable baby bl...

3
голосов
7ответов
13469 просмотров

MDI parent background image

I have tried absolutely everything I could get my hand on, and it just won't work ! Has anyone ever solved this problem? I can put my image in the back, but it works only if the form never tries to be resized (shrinking is OK, growing leaves empty grey space...)

5
голосов
3ответов
4486 просмотров

GUI Design - Multiple forms vs Simulated MDI (Tabs) vs PageControl

which of the following styles do you prefer? An application which to perform tasks opens new forms An application which keeps the various "forms" in different tabs An application which is based on a PageControl and shows you the right tab depending on what you want to do. Something else Also ...

0
голосов
1ответов
776 просмотров

MDI Application minimize/restore issue

Ok, so I have a VB .Net MDI Forms Application. frmMain is the "parent" form with IsMDIContainer set to TRUE. I load "frmChild" from frmMain setting the MDIparent property to frmMain. I minimize the form, then minimize the application. I restore the application a few minutes later, then restor...

1
голосов
1ответов
437 просмотров

How to show available windows in the Window menu

I have a MFC MDI application that I've recently ported from VS2003 to VS2008, and at the same time moved from Stingray Objective Studio 2006 v2 to v10.1. On the previous versions of my application, if I had more than one view open, the Window menu would be populated by an enumerated list of avai...

1
голосов
3ответов
1964 просмотров

memory leak on mdi with blank child form

I've created a blank application with a mdi parent form opening a blank child form from the menu. When the parent form of the child form is set to the mdi - it appears the system does not release memory - thus a leak. When the parent form is not set, the child form is removed. Does anyone know...

6
голосов
4ответов
25587 просмотров

How to make mdichild load at the center of mdiparent window

HI all, I have this code in which the window property of making child window load at the center of mdiparent. Form2 f = new Form2(); f.MdiParent = this; //center screen is working. //f.StartPosition = FormStartPosition.CenterScreen; f.StartPosition = ...

8
голосов
3ответов
15463 просмотров

How to remove gray background on MDI parent form?

What I'm trying to do is draw some glass on a form marked as an mdi container. However as soon as the IsMdiContainer is set, the form adds an MdiClient to it's list of Controls. At this point something happens to the parent form - almost like a dark gray panel is being docked to the entire form o...

4
голосов
1ответов
3562 просмотров

How to remove the MDI child text from the parent form title bar? C# .NET

I have a form that acts as MDI parent form and several other forms as MDI child. The child windows have FormBorderStyle.None and ControlBox = false so that no border stuff from the MDI children is displayed in the MDI parent. But the MDI children run maximised in my application and in that case, ...

0
голосов
1ответов
1122 просмотров

C# glass on an mdiparent

I am trying to use the DwmExtendFrameIntoClientArea method on an mdiparent. IsMdiContainer = true; However the glass does not render correctly. Is this a limitation of an mdiparent I can get around? If the form isn't set as an mdicontainer then the glass renders perfectly. The glass area paint...

0
голосов
2ответов
2652 просмотров

Child form to use whole client area?

I'd like to show an MDI child window that will use the whole client area, ie. the grey part no the right-side of the taskpane, and have the child window show its titlebar and borders: http://img149.imageshack.us/img149/3204/delphimdichildwindowwit.jpg Here's the code, which doesn't work as plan...