I have a couple of suggestions for the DynAPI that I think would be nice.

The first one is quite simple and I have implemented it by copying the
setBGColor() and getBGColor() functions.  It's purpose is to set the
foreground or text color of the layer.

DynLayer.prototype.setFgColor=function(color) {
if (color==null && !is.ns4) color='transparent';
this.color=color;
if (this.css==null) return;
if (is.ns4) this.doc.color=color;
else this.css.color=color;
};
DynLayer.prototype.getFgColor=function() {
return this.color;
};

The second suggestion is to make it possible to set font properties such as
font-family, font-size, and font-weight of the layer.  My attempts at this
have failed but I thought that I would mention it as a suggestion.

Reply via email to