EdgedCanvas

hello,

several properties of the decorative frame is placed in EdgedCanvas class. but how do we say a widget use that EdgedCanvas instance when we say setShowEdges(true) ?

or should I create an EdgedCanvas and add my widget to it ? i’ve tried that and had some strange behaviour: such as buttons in parent canvas doesn’t work

regards,
r a f t

There’s a number of setters on Canvas for properties related to the EdgedCanvas, like edgeWidth. Take a look at those.

thanks for answer but those setters are not sufficient for me. for example i want to make a decorated window, where sizes of bottom, top, left and right side differ.

furthermore, for tiling of sides you suggested to use EdgedCanvas in this thread:
http://forums.smartclient.com/showthread.php?t=3464

There are actually properties for that too (edgeTop, edgeBottom, etc), but right now, they can only be used for JSNI or set up via SmartClient’s skinning system (see the Skinning Guide in the SmartClient Reference).

correct me if i’m wrong: skinning is like applying a scheme, so if i use it will aplly to all bordered widgets. but i need to apply different borders to individual widgets

any plan to expose those JSNI properties/methods ?

or can’t i use EdgeCanvas directly ? ie: add the widget to it ?