Tutorial: window.updateOptions

window.updateOptions

Changes a window's options that were defined upon creation. The supported options are:

  • alwaysOnTop
  • contextMenu
  • cornerRounding
  • frame
  • hideOnClose
  • maxHeight
  • maximizable
  • maxWidth
  • minHeight
  • minimizable
  • minWidth
  • opacity
  • resizable

Example

var mainWindow = fin.desktop.Window.getCurrent();

mainWindow.updateOptions({
    frame: false,
    maxWidth: 500
});