What you are referring to is the label widget, there are some examples of use here, note that not all borders show in NS4.
 
Cheers,
Richard Bennett
 
[EMAIL PROTECTED]
www.richardinfo.com
(Everything running on, and ported to the 19/12/2000 snapshot of DynAPI2)
Find the DynAPI faq here:
http://sourceforge.net/docman/display_doc.php?docid=656&group_id=5757
Browse the mailinglist here:
http://www.mail-archive.com/index.php3?hunt=dynapi
----- Original Message -----
Sent: Tuesday, March 06, 2001 2:20 AM
Subject: [Dynapi-Dev] Suggestions for the DynAPI

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