we've tried to make the background of a smartgwt window transparent with no success :/ setting a transparent image as backgroundimage yields nor directly setting a custom style class with a transparent background setting yields no success.
is there any possibility to change the default background color : #ffffff or rgb(255,255,255) to transparent?
thank you in advance, dave
我认为#setOpacity(int)
应该可以解决问题...另请参阅#setDragOpacity(int)
。
I think I read that this would be a feature of the new Java JDK 7. So if you can't find an answer that might be the problem. I'm not positive though. Good Luck
I've found solution in [Showcase] - [Forms] - [Custom Picker] (SmartGWT 2.2):
Try to use code like this:
dialog = new Dialog();
dialog.setIsModal(true);
dialog.setShowModalMask(true);
dialog.setShowHeader(false);
dialog.setShowEdges(false);
dialog.setEdgeSize(10);
dialog.setWidth(980);
dialog.setHeight(700);
dialog.setShowToolbar(false);
dialog.centerInPage();
I think this line disables background - setShowEdges(false).
Did you try #setBackgroundColor("transparent")
?
Eg:
Window window = new Window();
window.setBackgroundColor("transparent");
Worked for me...
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.