//=============================================================================
// NXVXFramedWindow.
//=============================================================================
class NXVXFramedWindow expands UWindowFramedWindow;

function Created() 
{
    bStatusBar = False;
    bSizable = True;

    Super.Created();

    MinWinWidth = 300;
    MinWinHeight = 200;
    SetSize(300, 650);

    SetSizePos();
}

function SetSizePos()
{
    local float W, H;

    GetDesiredDimensions(W, H);

    if(Root.WinHeight < 400)
        SetSize(290, Min(Root.WinHeight - 32, H + (LookAndFeel.FrameT.H + LookAndFeel.FrameB.H)));
    else
        SetSize(290, Min(Root.WinHeight - 50, H + (LookAndFeel.FrameT.H + LookAndFeel.FrameB.H)));

    WinLeft = Root.WinWidth/2 - WinWidth/2;
    WinTop = Root.WinHeight/2 - WinHeight/2;
}

function ResolutionChanged(float W, float H)
{
    SetSizePos();
    Super.ResolutionChanged(W, H);
}

function Resized()
{
    if(WinWidth != 300)
        WinWidth = 300;

    Super.Resized();
}


defaultproperties
{
    WindowTitle="{WINGS} Venom-X Settings"
    ClientClass=class'NXVXDialogClientWindow'
}

