At the Computer College of Beijing University of Technology, Mr. Hu's "Deep MDI client window Programming" article discusses two ways to change the background of MDI client windows in the learning process, and describes one of the implementation methods, as well as sample code. I admire the author's diligent attitude towards learning, and at the same time suggest the solutions I have taken when I encounter
Shortcomings, please correct me!What is MDI: I mean, I don't know.MDI (Multiple document Interface) is the so-called multi-document interface, which corresponds to the single Document Interface (SDI), which was introduced by Microsoft from Microsoft Excel spreadsheet program under Windows 2.0, An Excel spreadsheet user sometimes needs to manipulate multiple tables at the same time, and MDI is a great conven
Recently contacted DevExpress 13.1 This skin component, feel quite easy to use and began to build a small application of the main framework.Looking for a long time is not found the corresponding article to explain this piece. Turned over their main web site to ask, as well as the API to explore ... Do not understand English very difficult ah ~ ~ ~The first option is to still load the submodule with MDI child form modeFirst step: Create a primary ribbo
One, MDI form container:1. Function:It allows the other form to open inside it and cannot exceed its scopeSet the properties of a form: IsMdiContainer to true-window style2. Questions:(1) How do I open the other form inside it?The name of the form object. MdiParent = this;(2) How do I maximize properties when I open a form?Set maximized properties with code before instantiating a Form object, showNote: The WindowState property of the form must be the
How to Implement the conversion between SDI and MDI?
If you want to write a compiled SDI application
Program To convert to MDI, you must first create a class that inherits cmdichidwnd. Assume It is cchldfrm and make the following changes in cwinapp.
Initinstance ()
{
....
// Instead of adding csingledoctemplate
// Add cmultidoctemplate.
Pdoctemplate = new cmultidoctemplate (
Idr_mainframe,
Runtime_class (
Due to busy work, I haven't been here for a long time.
Background:
One of the MDI child forms is a navigation form, which defines CLOSING event processing: checks whether the close mark of the form is allowed. If not, cancels the close operation, this ensures that the navigation form is permanently present without being closed.
Problem:
When the MDI container form is closed, the close event of one of the Ch
Continue to the previous section, we still create an MDI window with the project file. The code is as follows: ProgramMdiapp;usesWindows, Messages;varthemessage:tmsg; Framewindow,clientwindow,childwindow:hwnd;ConstIdchildwnd= -; //First MDI child window ID{$R *. RES}//callback functionfunctionFramewindowproc (Theframewindow:hwnd; Themessage,wparam,lparam:longint): Longint;stdcall;varclientstruct:tclientcrea
"When you open a child window body in MDI mode, you always cannot maximize the display, and the windowstate of the Subwindow body is set to maximized?" ", I believe a lot of people will encounter this kind of problem, please use the following method to set the MDI child form to maximize:1. Set the IsMdiContainer of the parent form to true;2, the WindowState of the form is set to normal;3. Open the subform i
My brother started the project a few days ago and used vb.net for the first time. I believe that many beginners will encounter these problems more or less. For the convenience of learning for beginners, I have summarized some small experiences for your reference and discussion.Article 1: How to control attributes of the parent form in the MDI child formFunction: for example, after opening a child form, you must set a menu item or button in the parent
VCType
: It features
MDI
ProgramWhen the mode dialog box is opened (for example, the file dialog box is opened), the file that is double-clicked in resource manager is not opened;
UltraeditType
: It features
MDI
When the program opens the mode dialog box, the file that is double-clicked in resource manager is still opened;
WordType
: It features
MDI
# Region adds background to the MDI parent form and solves the problem of blinking// 1. Add a background image named "backgroundimage" to properties/resources. resx.
// 2. Add backgroundnosplash () in the following locations ();
Public frmmain (){
Initializecomponent ();
// Add background to the MDI parent form and solve the problem of blinkingBackgroundnosplash ();
}
// The followingCo
What should I do if the panel on the MDI main form overwrites the child form? Development and Application of VCL Components
Http://www.delphi2007.net/DelphiVCL/html/delphi_20061222144928188.html
What should I do if the panel on the MDI main form overwrites the child form?
The main form uses the fsmdiform type, and the child form uses the fsmdichild type.
When a widget is placed in a panel, the child f
C # learning notes-MDI form (Multi-Document Interface ),
1. Set the parent form:
To set a form as the parent form, set the IsMdiContainer attribute of the form to True.
2. Set the subform:
Set the MdiParent attribute of a form to determine that the form is a subform of the form.
Syntax:
1: public Form MdiParent{get;set;}
3. Arrange the MDI subforms:
Syntax:
1: public void LayoutMdi(MdiLayout value)
Value:
/// ///function: Set the main form size to the display workspace size in the MDI program/// /// main form Instance Public Static voidsetmainformsize (Form mainform) {mainform.location=NewPoint (0,0); Mainform.width=Screen.PrimaryScreen.WorkingArea.Width; Mainform.height=Screen.PrimaryScreen.WorkingArea.Height; }***************************************************** /// ///function: Child form size in
C # It is very easy to merge the child form menu in the MDI form menu. You only need to set the attribute AllowMerge = True to OK;But to merge the toolbar, it is a little complicated.
C # merge child forms in the MDI form Toolbar
First, the MDI form code:
// FrmMain is the MDI formPrivate void frmMain_Load (object send
I. Design of MDI Form1.MDI IntroductionMDI (Multiple document Interface) is the so-called multi-document interface , which corresponds to a single document interface (SDI), which is Microsoft Corporation from Microsoft Windows 2.0 when an Excel spreadsheet program is introduced, an Excel spreadsheet user sometimes needs to manipulate multiple tables at the same time, and
If multiple child forms are opened at the same time in an MDI form, if the order of the Child forms is not adjusted, the interface will be very messy and difficult to browse. How can this problem be solved? You can use the layoutmdi method with mdilayout enumeration to arrange child forms in the parent form of the Multi-document interface.Syntax:Public void layoutmdi (mdilayout value)Value: One of the mdilayout enumerated values, used to define the la
Brother some days ago to do projects, the first use of vb.net, met a lot of problems, I believe that many beginners will encounter these problems, in order to learn the convenience of beginners, younger brother summed up some small experience for everyone to refer to the discussion.
First: How to control the properties of a parent form in an MDI child form and so on
Features: For example, when you open a subform, you set a menu item or button in the p
"When a child window is opened in the MDI mode, the display cannot be Maximized. It is clear that the WindowState of the child window is set to Maximized ?", I believe many people will encounter this problem. Set the following method to maximize the MDI subform:
1. Set IsMdiContainer of the parent form to True;2. Set the WindowState of the subform to Normal;3. In the parent form, use the following method t
The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion;
products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the
content of the page makes you feel confusing, please write us an email, we will handle the problem
within 5 days after receiving your email.
If you find any instances of plagiarism from the community, please send an email to:
info-contact@alibabacloud.com
and provide relevant evidence. A staff member will contact you within 5 working days.