nJDSK.customSizeDialog


Creates a custom sized dialog

nJDSK.customSizeDialog(width, height, winTitle, title, message, buttons, isFullGlass)

Parameters

  • int width dialog width
  • int height dialog height
  • string winTitle window title
  • string title dialog content title
  • string message dialog content
  • array buttons array of objects
  • bool isFullGlass semitransparent content area

Example

nJDSK.customSizeDialog(
    640,
    480,
    'About',
    'About nJDesktop',
    'Created by Nagy Ervin<br />Colorful HQ background image by <a href="http://www.superhqwallpapers.com/2012/02/07/hq-random-backgrounds/colorful-hq-background-1920x1200/">Super Hq Wallpapers</a><br />Menu Silk Icons by <a href="http://famfamfam.com/">FAMFAMFAM</a>',
    [
        {
            type:'ok_yes',  // this is a CSS class, so buttons can have different styles
            value:'OK', // button title
            callback:function(win){
                                // button click event
                win.close();
            }
        },
        {
            type:'no_cancel',  // this is a CSS class, so buttons can have different styles
            value:'OK', // button title
            callback:function(win){
                                // button click event
                win.close();
            }
        }
    ],
    true
);