Feature Requests item #418269, was opened at 2001-04-23 08:51
You can respond by visiting: 
http://sourceforge.net/tracker/?func=detail&atid=355757&aid=418269&group_id=5757

>Category: None
Group: None
Status: Open
Priority: 5
Submitted By: Yurij Silvestrov (yura_silver)
Assigned to: Nobody/Anonymous (nobody)
Summary: ButtonImage patch

Initial Comment:
To use ButtonImage constructor in such a way 

//begin js code
var normal = DynImage.getImage
("../src/lib/dynapi/images/common/button.gif");
var mouseover = DynImage.getImage
("../src/lib/dynapi/images/common/button_mo.gif");

buttonobj=new ButtonImage(normal,mouseover);
//end js code

we need to replace setImage function with this code:

ButtonImage.prototype.setImages = function
(defaultImage,defaultRoll,selectedImage,selectedRoll) {
  if (arguments.length==1 && defaultImage.length) 
arguments=defaultImage;
    if (arguments.length==4) this.checkbox = true;
    this.defaultImage = arguments[0];
    this.defaultRoll = arguments[1];
    this.selectedImage = arguments[2];
    this.selectedRoll = arguments[3];
    this.setImage(this.defaultImage);
    this.setSize
(this.defaultImage.width,this.defaultImage.height);
};

----------------------------------------------------------------------

You can respond by visiting: 
http://sourceforge.net/tracker/?func=detail&atid=355757&aid=418269&group_id=5757

_______________________________________________
Dynapi-Dev mailing list
[EMAIL PROTECTED]
http://lists.sourceforge.net/lists/listinfo/dynapi-dev

Reply via email to