msdn
New Member
ادامه برنامه هاي چند سندي
[ltr]Multiple-Document Interface (MDI) Applications
The multiple-document interface (MDI) allows you to create an application that maintains multiple forms within a single container form. Applications such as Microsoft Excel and Microsoft Word for Windows have multiple-document interfaces.
An MDI application allows the user to display multiple documents at the same time, with each document displayed in its own window. Documents or child windows are contained in a parent window, which provides a workspace for all the child windows in the application. For example, Microsoft Excel allows you to create and display multiple-document windows of different types. Each individual window is confined to the area of the Excel parent window. When you minimize Excel, all of the document windows are minimized as well; only the parent window's icon appears in the task bar.[/ltr]
اينترفيس چند سندي به شما اجازه مي دهد كه برنامه هايي بسازيد كه در يك فرم واحد ، فرمهاي متعدد باز مي شوند. برنامه هايي مثل ((اكسل)) و (( ورد )) اينترفيس چند سندي دارند.
يك برنامه چند سندي به كاربر اجازه مي دهد كه سندهاي متعددي را در يك زمان در برنامه باز كند و هر سند ، پنجره خاص خود را خواهد داشت. سندها يا پنجره هاي فرزند در برنامه در بر گرفته مي شوند توسط پنجره والد. كه باعث ايجاد يك محيط كاري براي تمام پنجره هاي فرزند مي شود. تمامي پنجره ها در اكسل توسط پنجره مادر(والد) در بر گرفته مي شود ، اگر شما پنجره اصلي اكسل را مينيمايز كنيد ، تمامي پنجره ها مينيمايز مي شوند و فقط آيكون پنجره اصلي در تاسك بار نمايش داده مي شود.
[ltr]A child form is an ordinary form that has its MDIChild property set to True. Your application can include many MDI child forms of similar or different types.
At run time, child forms are displayed within the workspace of the MDI parent form (the area inside the form's borders and below the title and menu bars). When a child form is minimized, its icon appears within the workspace of the MDI form instead of on the taskbar, as shown in Figure 6.4.[/ltr]
يك فرم فرزند ، يك فرم معمولي است كه صفت ((ام دي آي چايلد)) آن به (( ترو)) تنظيم شده. برنامه شما مي تواند شامل تعداد زيادي فرم فرزند داشته باشد. از انواع مشابه يا مختلف.
در موقع اجرا ، پنجره فرزند درون محيط كاري فرم مادر نشان داده مي شود.( منظور در منطقه اي درون لبه هاي فرم و زير تايتل و منو بار.) وقتي كه يك فرم فرزند كوچك مي شود ، آيكون آن در منطقه محيط كاري فرم مادر قرار دارد ، نه در تاسك بار. شكل زير.
[ltr]Note[/ltr] [ltr]Your application can also include standard, non-MDI forms that are not contained in the MDI form. A typical use of a standard form in an MDI application is to display a modal dialog box.
An MDI form is similar to an ordinary form with one restriction. You can't place a control directly on a MDI form unless that control has an Align property (such as a picture box control) or has no visible interface (such as a timer control).[/ltr]
برنامه شما همچنين مي تواند شامل يك فرم استاندارد غير چند سندي باشد. يك استفاده شايع از فرم استاندارد در يك برنامه چند سندي ، براي نمايش يك ديالوگ باكس اجباري(مترجم: ديالوگ باكسهايي كه تا دكمه اي از آن را نزنيم نمي توانيم با پنجره هاي ديگر كار كنيم. ) مي باشد.
يك فرم چند سندي شبيه يك فرم معمولي است ، ولي با يك محدوديت. و آن اين است كه شما نمي توانيد يك كنترل را مستقيما روي آن قرار دهيد مگر اينكه آن كنترل صفت ((اليگن - رديف شدن)) را داشته باشد(مثلا يك پيكچر باكس) يا بايد آن ابزار موقع اجرا غيرقابل ديدن باشد.( مثل تايمر)
[ltr]size=4]Creating an MDI Application[/ltr]
[ltr]Use the following procedure to create an MDI form and its child forms.
======To create an MDI application
----Create an MDI form.
From the Project menu, choose Add MDI Form.
Note: An application can have only one MDI form. If a project already has an MDI form, the Add MDI Form command on the Project menu is unavailable.
----Create the application's child forms.
To create an MDI child form, create a new form (or open an existing one) and set its MDIChild property to True.[/ltr]
طرز ساخت يك برنامه چند سندي:
مراحل زير را برويد تا يك فرم چند سندي و فرمهاي فرزند آن را ايجاد كنيد.
براي ساختن برنامه چند- سندي.....
از منوي پروژه (( ادد ام-دي-آي فرم )) را انتخاب كنيد.
توجه : هر برنامه فقط مي تواند يك فرم چند سندي داشته باشد. اگر يك پروژه يك فرم چند سندي دارد ، انتخاب گزينه (( ادد ام-دي آي فرم)) غير قابل دسترس است.
براي ساختن فرمهاي فرزند ......
براي ايجاد فرمهاي فرزند ، يك فرم جديد ايجاد كنيد (يا آن كه ايجاد شده را فرابخوانيد(اپن كنيد) ) و صفت (( ام - دي - آي چايلد)) آن را به ((ترو)) تغيير دهيد.
.
[ltr]Multiple-Document Interface (MDI) Applications
The multiple-document interface (MDI) allows you to create an application that maintains multiple forms within a single container form. Applications such as Microsoft Excel and Microsoft Word for Windows have multiple-document interfaces.
An MDI application allows the user to display multiple documents at the same time, with each document displayed in its own window. Documents or child windows are contained in a parent window, which provides a workspace for all the child windows in the application. For example, Microsoft Excel allows you to create and display multiple-document windows of different types. Each individual window is confined to the area of the Excel parent window. When you minimize Excel, all of the document windows are minimized as well; only the parent window's icon appears in the task bar.[/ltr]
اينترفيس چند سندي به شما اجازه مي دهد كه برنامه هايي بسازيد كه در يك فرم واحد ، فرمهاي متعدد باز مي شوند. برنامه هايي مثل ((اكسل)) و (( ورد )) اينترفيس چند سندي دارند.
يك برنامه چند سندي به كاربر اجازه مي دهد كه سندهاي متعددي را در يك زمان در برنامه باز كند و هر سند ، پنجره خاص خود را خواهد داشت. سندها يا پنجره هاي فرزند در برنامه در بر گرفته مي شوند توسط پنجره والد. كه باعث ايجاد يك محيط كاري براي تمام پنجره هاي فرزند مي شود. تمامي پنجره ها در اكسل توسط پنجره مادر(والد) در بر گرفته مي شود ، اگر شما پنجره اصلي اكسل را مينيمايز كنيد ، تمامي پنجره ها مينيمايز مي شوند و فقط آيكون پنجره اصلي در تاسك بار نمايش داده مي شود.
[ltr]A child form is an ordinary form that has its MDIChild property set to True. Your application can include many MDI child forms of similar or different types.
At run time, child forms are displayed within the workspace of the MDI parent form (the area inside the form's borders and below the title and menu bars). When a child form is minimized, its icon appears within the workspace of the MDI form instead of on the taskbar, as shown in Figure 6.4.[/ltr]
يك فرم فرزند ، يك فرم معمولي است كه صفت ((ام دي آي چايلد)) آن به (( ترو)) تنظيم شده. برنامه شما مي تواند شامل تعداد زيادي فرم فرزند داشته باشد. از انواع مشابه يا مختلف.
در موقع اجرا ، پنجره فرزند درون محيط كاري فرم مادر نشان داده مي شود.( منظور در منطقه اي درون لبه هاي فرم و زير تايتل و منو بار.) وقتي كه يك فرم فرزند كوچك مي شود ، آيكون آن در منطقه محيط كاري فرم مادر قرار دارد ، نه در تاسك بار. شكل زير.
Figure 6.4 Child forms displayed within the workspace of the MDI form
![g4.gif](http://saalek110b.250free.com/gifs/gifs2/b6/g4.gif)
[ltr]Note[/ltr] [ltr]Your application can also include standard, non-MDI forms that are not contained in the MDI form. A typical use of a standard form in an MDI application is to display a modal dialog box.
An MDI form is similar to an ordinary form with one restriction. You can't place a control directly on a MDI form unless that control has an Align property (such as a picture box control) or has no visible interface (such as a timer control).[/ltr]
برنامه شما همچنين مي تواند شامل يك فرم استاندارد غير چند سندي باشد. يك استفاده شايع از فرم استاندارد در يك برنامه چند سندي ، براي نمايش يك ديالوگ باكس اجباري(مترجم: ديالوگ باكسهايي كه تا دكمه اي از آن را نزنيم نمي توانيم با پنجره هاي ديگر كار كنيم. ) مي باشد.
يك فرم چند سندي شبيه يك فرم معمولي است ، ولي با يك محدوديت. و آن اين است كه شما نمي توانيد يك كنترل را مستقيما روي آن قرار دهيد مگر اينكه آن كنترل صفت ((اليگن - رديف شدن)) را داشته باشد(مثلا يك پيكچر باكس) يا بايد آن ابزار موقع اجرا غيرقابل ديدن باشد.( مثل تايمر)
[ltr]size=4]Creating an MDI Application[/ltr]
[ltr]Use the following procedure to create an MDI form and its child forms.
======To create an MDI application
----Create an MDI form.
From the Project menu, choose Add MDI Form.
Note: An application can have only one MDI form. If a project already has an MDI form, the Add MDI Form command on the Project menu is unavailable.
----Create the application's child forms.
To create an MDI child form, create a new form (or open an existing one) and set its MDIChild property to True.[/ltr]
طرز ساخت يك برنامه چند سندي:
مراحل زير را برويد تا يك فرم چند سندي و فرمهاي فرزند آن را ايجاد كنيد.
براي ساختن برنامه چند- سندي.....
از منوي پروژه (( ادد ام-دي-آي فرم )) را انتخاب كنيد.
![g1.gif](http://saalek110b.250free.com/gifs/gifs2/b6/g1.gif)
![g3.jpg](http://saalek110b.250free.com/gifs/gifs2/b6/g3.jpg)
توجه : هر برنامه فقط مي تواند يك فرم چند سندي داشته باشد. اگر يك پروژه يك فرم چند سندي دارد ، انتخاب گزينه (( ادد ام-دي آي فرم)) غير قابل دسترس است.
براي ساختن فرمهاي فرزند ......
براي ايجاد فرمهاي فرزند ، يك فرم جديد ايجاد كنيد (يا آن كه ايجاد شده را فرابخوانيد(اپن كنيد) ) و صفت (( ام - دي - آي چايلد)) آن را به ((ترو)) تغيير دهيد.
![g2.gif](http://saalek110b.250free.com/gifs/gifs2/b6/g2.gif)
.
آخرین ویرایش توسط مدیر: