Overview Package Class Source Class tree Glossary
previous class      next class frames      no frames

UWindow.UWindowCheckbox


00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020
00021
00022
00023
00024
00025
00026
00027
00028
00029
00030
00031
00032
00033
00034
00035
//=============================================================================
// UWindowCheckbox - a checkbox
//=============================================================================
class UWindowCheckbox extends UWindowButton;

var bool        bChecked;

function BeforePaint(Canvas C, float X, float Y)
{
    LookAndFeel.Checkbox_SetupSizes(Self, C);
    Super.BeforePaint(C, X, Y);
}

function Paint(Canvas C, float X, float Y)
{
    LookAndFeel.Checkbox_Draw(Self, C);
    Super.Paint(C, X, Y);
}


function LMouseUp(float X, float Y)
{
    if(!bDisabled)
    {   
        bChecked = !bChecked;
        Notify(DE_Change);
    }
    
    Super.LMouseUp(X, Y);
}

defaultproperties
{
}

Overview Package Class Source Class tree Glossary
previous class      next class frames      no frames
Class file time: za 22-4-2006 13:27:48.000 - Creation time: za 22-4-2006 13:29:33.578 - Created with UnCodeX