I see in the RoadMap that NKModalWindow has been updated in 1.7 with the following added.
setAlpha(val) and setFrame(x,y,w,h) methods were added.
- Code: Select all
modal = new NKModalWindow();
modal.setFrame(20,0,320,400);
modal.setAlpha(val);
modal.show();
var indicator = new NKActivityIndicator();
indicator.init(90, 165, 30, "white");
indicator.show();
indicator.spin();
modal.addControl(indicator);
var label = new NKLabel();
label.init(140, 158, 140, 40, "Please wait...");
modal.addControl(label);
label.show();
var button = new NKButton();
button.init(120, 210, 100, 40, "buttonClick");
button.setTitle("Dismiss");
modal.addControl(button);
button.show();
This doesn't work for me and I'm not sure what I should use for 'val' in setAlpha.
Could you please provide sample code on how to use the new features.
Thanks