Use of the MDIware properties is optional.
Property | Type | Default | Description |
cascadeResizeHeight | boolean | true | If false then each windows height will not be resized when the windows are cascaded. |
cascadeResizeWidth | boolean | true | If false then each windows width will not be resized when the windows are cascaded. |
focusedWindowName | string | | Read only. The name of the window that currently has focus. |
forms | array | | Read only. An array of MDIware forms. |
lastOpenX | integer | | Read only. X coordinate where the last window was opened. |
lastOpenY | integer | | Read only. Y coordinate where the last window was opened. |
leftMargin | integer | 0 | The left margin is used by the cascade function as a leftmost starting point. |
| | | |
onModeChange | function pointer | null | Called when the user switches display mode. onModeChange(mode). |
onResize | function pointer | null | Called when the any window is resized. onResize(formName, leftCoord, topCoord, width, height, action). The numeric action code indicates the source action of the resize event. An action codes > 15 indicates a manual operation by the user. |
onWindowToTop | function pointer | null | Called when the user brings a new window to the top of the z-order. onWindowToTop(windowName). |
optNoTabOrStack | boolean | false | If true then eliminates the stack and tab options from the options menu of new windows. Set this to true for the 'Mobile Mode'. |
optCascadeAftOnTop | boolean | false | If true then call CascadeMode() whenever a new window moves to the top. Set this to true for the 'Mobile Mode'. |
optNoWindowMove | boolean | false | If true this disables the manual movement of any windows. Set this to true for the 'Mobile Mode'. |
optCascadeOverflow | boolean | false | If true then allow the cascaded windows to exceed the browser window dimensions Set this to true for the 'Mobile Mode'. |
optNoCascadeOffset | boolean | false | If true then don't horizontally offset cascaded windows. |
optOpenLeft | boolean | false | If true then open new windows at the left margin. Set this to true for the 'Mobile Mode'. |
optNoMaxButton | boolean | false | If true then don't display the max buttom in new windows. Set this to true for the 'Mobile Mode'. |
optNoMinButton | boolean | false | If true then don't display the min button in new windows. Set this to true for the 'Mobile Mode'. |
optDisableDesktop | boolean | false | If true then the desktop window will function as a normal window and not be restricted in its movement to the foreground. Set this to true for the 'Mobile Mode'. |
optLeftCloseButton | boolean | false | If true then display a close button in place of the option button in new windows. Set this to true for the 'Mobile Mode'. |
| | | |
systemModalOpen | boolean | false | Read only. Indicates if a system modal window is open. |
systemModalEvent | function pointer | null | Called when a MDIware switches in/out of a system modal state. systemModalEvent(bIsModal). |
soundOn | boolean | true | This controls the 'beep' sound that occurs when the user clicks off a modal window or message box. |
topMargin | integer | 0 | No window can be manually moved above the top margin. Set the topMargin to 35 or so to allow space for your applications menu - if you have one. |
windows | array | | Read only. An array of open MDIware windows. |
| | | |
An MDIware form defines the properties and behaviors that a window will have when opened.
A single form can be opened multiple times to create multiple open windows.
Property | Type | Default | Description |
alwaysOnTop | boolean | false | If true the form will always be displayed on top of any other open windows. |
height | integer | required | Sets the initial height of the window |
maximizable | boolean | true | If false then the maximize button will not be displayed on the title bar. |
minimizable | boolean | true | If false then the minimize button will not be displayed on the title bar. |
modal | boolean | false | If true then the window will be system modal and no other window can gain focus until this window is closed. |
name | string | required | You assign a name to the form. The form 'name' property must follow the naming conventions for html elements - no embedded spaces, etc.
|
closeButton | boolean | true | If false then the window will not have a close button at the right end of the window title bar. |
openInCenter | boolean | false | If true then the window will be initially centered in the browser screen. |
optionsButton | boolean | true | Controls the presence of the options button at the left end of the window title bar. If the value = false then the button will not be shown. |
resizable | boolean | true | trueIf true then the window frame can be dragged to manually change the size of the window. |
sandbox | string | optional |
MDIware uses html iframes to create windows. The sandbox property controls the
access that one open window has to the contents of the parent window, parent session
information, and other sibling windows. By default, each open window has access to the
parent window, the parent session information and some access to sibling windows. A
complete description of the sandbox
property is given here. |
title | string | optional | The initial title of the window to be displayed in the title bar. If no title is specified then the window title will display 'Loading...'. |
width | integer | required | Sets the initial width of the window |
x | integer | optional | The initial x position of the window. |
y | integer | optional | The initial y position of the window. |
| | | |
| | | |
"The MDIware team is committed to ensuring that new versions of MDIware are backward compatible with prior versions." - Ed Zaron
Date
|
Version
|
Changes
|
12/22/23 | 2.2.8 |
MDIware tested compatible with JQuery 1.9.1 through 3.7.1.
|
11/13/23 | 2.2.8 |
Removed call to https://mdiware.com/apps/reg/reg.aspx that was counting software usage.
|
8/27/23 | 2.2.7 |
Added mdi.getSize(windowName) returns an object with properties: width,height,x,y
Added mdi.setSize(windowName,width,height,[x],[y])
to get or set a window's size.
|
12/29/22 | 2.2.6 |
Corrected window size calculation prior to onResize call.
|
12/23/22 | 2.2.5 |
Modify window template to accomodate top-of-form menu in $('#windowName_menuDiv').
|
12/1/22 | 2.2.4 |
Added the mdi.addMenu(windowName string, menuId string, menuText string, functionCall string, inParent bool) function.
This function adds a menu choice to the window's titlebar option button. See addMenu() examples in the MDIwareHooks.js file.
|
4/12/22 | 2.2.3 |
Added an optional form property form.desktop. When set to true the form will stay in background when clicked.
The desktop can be moved to the foreground by clicking the up arrow button in the title bar.
|
3/10/22 | 2.2.1 |
Simplify and accelerate form loading.
|
3/7/22 | 2.1.9 |
Added mdi.children(windowName) function which
returns an array of window names that are children of the window 'windowName'.
Added mdi.closeChildern(windowName, [force]) function which closes the children of window 'windowName'.
|
2/25/22 | 2.1.7 |
Added msgBox text style control. Added mdiMsgText css class to MDIware.css.
|
2/13/22 | 2.1.6 |
Code cleanup, security.
|
10/7/21 | 2.1.4 |
Added the mdi.position(windowName, [coordinates]) for setting or getting the window position.
|
9/4/21 | 2.1.3 |
Smooth return to cascade mode from tab or stack mode. Position windows as in prior cascade.
|
8/29/21 | 2.1.2 |
Recode mdi.tile() to uncouple z order from tile order.
|
6/27/21 | 2.0.9 |
Fixed compatibility issue with jQuery 3.6.0. MDIware is now compatible with all versions of jQuery from 1.9.1 to 3.6.0.
|
6/12/21 | 2.0.8 |
Fixed error when refreshing screen in tab mode with no open tabs.
|
5/14/21 | 2.0.6 |
Added optionsInit and optionsPrep hooks to customize the window title bar options button choices.
|
4/4/21 | 2.0.5 |
Fixed the rare dropping of mouse state when the mouse is moved outside of browser and button released.
|
3/24/21 | 2.0.4 |
Added mdi.onResize property. Set mdi.onResive to the function that will be called when any window is resized.
Function is called as onResize(formName, leftCoord, topCoord, width, height, action).
|
3/2/21 | 2.0.3 |
Added mdi.pop() function that takes the top window and moves it to the bottom of the window stack.
|
1/23/21 | 2.0.2 |
Cleanup MDIwareHooks.js and document mdi.debug(..) function.
|
1/15/21 | 2.0.1 |
Minor fix to form.show(modal) when in stack mode.
|
1/06/21 | 2.0.0 |
New Year code cleanup. Improve response when clicking on an input item in a non-top window.
|
11/4/20 | 1.9.70 |
Add mdi.splitH(), mdi.splitV(), mdi.tile() functions.
|
10/26/20 | 1.9.20 |
If form.html property = true then use linkdata.html as window contents as in "..form.show(formname, mode, linkdata)"
|
8/29/20 | 1.8.28 |
On opening a window, don't exactly overlay windows with same form name. |
8/25/20 | 1.7.93 |
Corrected an error in msgBox(..) that sometimes didn't return the optional passThruData to the callback function. |
5/26/20 | 1.7.91 |
Add numerous 'opt...' MDIware properties to facilitate making MDIware mobile friendly. |
3/13/20 | 1.7.82 |
Disallow minimizing 'Always On Top' windows. |
1/26/20 | 1.7.79 |
Make callback parameter optional in msgBox(Title, Message, Buttons, [callback]). |
1/9/20 | 1.7.76 |
Add mdi.onModeChange function pointer callback to capture when user changes mode (cascade, tab, stack). |
12/21/19 | 1.7.74 |
Add form.maximizable property (boolean) to control display of maximize/restore title bar button. |
11/16/19 | 1.7.72 |
Fix msgBox over attached modal child. |
8/13/19 | 1.7.71 |
Fix msgBox over attached modal child. Add sysMsgBox(..) for message box creation in parent form |
3/4/19 | 1.7.65 |
Fix modal functionality to allow for multiple levels of modal windows. |
8/28/18 | 1.7.58 |
Add mdi.adjustMargins(windowName) to resize/resync non-scrolling areas of window. |
8/8/18 | 1.7.47 |
Replace jQuery bind and unbind calls with .on and .off for compatibility with latest jQuery. |
8/3/18 | 1.7.41 |
Add .linkData object to window.data. Add linkData as optional parameter to form.show(...) and form.showAttached(..) functions. |
7/27/18 | 1.7.30 |
Reset next window open position when all windows are closed. |
7/19/18 | 1.7.10 |
Recode mdi.windowWidth() and mdi.windowHeight() for improved browser compatibility. |
7/12/18 | 1.7.00 |
Display window caption in bold font-weight |
6/24/18 | 1.6.87 |
Add mdi.windowsName(window) function for retrieving the internal window name used for window access. |
6/17/18 | 1.6.80 |
Add mdi.broadcast to mdiware.js, add msgReceiver to mdiwarHooks.js |
6/5/18 | 1.6.74 |
Add 'url' property to form object. |
5/30/18 | 1.6.58 |
Changes to msgBox to return button selected name to callback function. |
2/20/18 | 1.5.94 |
Add touch interface for moving/manipulating windows on touch screens. |
1/17/18 | 1.5.41 |
Add window(windowName).title(caption text) for setting window caption in title bar. |
1/16/18 | 1.5.40 |
Add form.showAttached(parent, modal) function for creating dialog type windows. |
12/20/17 | 1.5.19 |
Add mdi.closeAll([force]) function for closing all open windows. |
8/8/17 | 1.4.84 |
Create Tabs and Stack display modes. |
6/9/17 | 1.3.82 |
Add menuArea, LeftArea and bottomArea for non scrolling content in window. |
6/7/17 | 1.3.70 |
Rename project from jsWindows to MDIware |