/**
 * QLIB 1.0 Button Resource
 * Serge Dolgov (C) 2002
 * studio.quazzle.com
 */

function QButtonRes(style, width, height, normal, pressed, disabled, tip) {
    this.style = style;
    this.width = width;
    this.height = height;
    this.imgN = new Image(width, height);
    this.imgN.src = normal;
    this.imgP = new Image(width, height);
    this.imgP.src = pressed;
    if (disabled) {
        this.imgD = new Image(width, height);
        this.imgD.src = disabled;
    }
    this.tip = tip || "";
}

QButtonRes.BUTTON = 0;  // button styles
QButtonRes.CHECK  = 1;
QButtonRes.WEB    = 2;
QButtonRes.SIGNAL = 3;
