Patch #779
Add undecorated parameter for formInModalDialog
0%
Description
Adds an optional undecorated parameter for globals.DIALOGS.showFormInModalDialog()
3 code changes required:
CHANGE 1:
function showDialog(_sFormName, _sDlgType, _aArguments, _sIconStyle) {
dialogWindow.resizable = (_aArgs[6] null ? true : _aArgs[6]);
dialogWindow.showTextToolbar(_aArgs[7] null ? false : _aArgs7);
dialogWindow.undecorated = (_aArgs9 == null ? false : _aArgs9) // <------ NEW LINE
CHANGE 2:
@ /**
* Show a Form In Modal Dialog
* @param {String|RuntimeForm} formName
* @param {Number} [left]
* @param {Number} [top]
* @param {Number} [width]
* @param {Number} [height]
* @param {String} [title]
* @param {Boolean} [resizable]
* @param {Boolean} [showTextToolbar]
* @param {String} [windowName]
* param {Boolean} [undecorated] <---- NEW LINE
*/
CHANGE 3:
this.showFormInModalDialog = function(formName, left, top, width, height, title, resizable, showTextToolbar, windowName, undecorated) { // <---- MODIFIED CODE
showDialog(null, 'FIMD', arguments);
}
History
Updated by Harjo Kompagnie about 11 years ago
- Assignee changed from Robert Ivens to Harjo Kompagnie
Updated by Harjo Kompagnie about 11 years ago
- Status changed from New to Closed
Please check the latest trunk version.
The undecorated option for FIMD is implementend. Also the DemoDialog solution has been updated for that!