Announcement

Collapse
No announcement yet.
X
  • Filter
  • Time
Clear All
new posts

    customizing Canvas.showClickMask

    Hello,

    is there a way to customize the view of Canvas.showClickMask? I want to make it look like the modal window mask.

    Code:
            HLayout container = new HLayout();
            container.setBackgroundColor("white");
            container.draw();
    
            Canvas vertical = new Canvas();
            vertical.setWidth(50);
            vertical.setHeight(50);
            vertical.setBackgroundColor("red");
            vertical.showClickMask(new Function() {
                public void execute() {
                    SC.say("clicked");
                }
            }, ClickMaskMode.SOFT, new Canvas[]{vertical});
    
            vertical.show();

    thanks

    #2
    The clickmask itself is just a block on input events, the mask effect comes from an overlaying Canvas which just has some background color and opacity set. See towards the end of this posting: http://forums.smartclient.com/showthread.php?t=7344

    Comment

    Working...
    X