All, I managed to add the GlassPanel with little effort and for the most part is looks great. I was about to ask how to get it to not disappear upon click but figured it out before i could post the message :). Thanks all. You've been a great help. In case anyone was interested, I'm using it within a tabbed panel when one tab is active with some static variable that controls the editable nature of either tab. Although of course, the parent panel of the GlassPanel should be AbsolutePanel.
Thanks Suri On Dec 11, 6:17 am, "Litty Preeth" <[email protected]> wrote: > Hey Make sure that the contents of the popup is put into a ScrollPanel. Coz > if you disable the window scrolling and the popup size goes beyond the > screen size then the overflowing popup area will get hidden. > > - Litty > > On Thu, Dec 11, 2008 at 2:13 AM, rakesh wagh <[email protected]> wrote: > > > Yup glasspanel is really handy. Do remember to turn off the > > scrollbars... they could mess up the page big time! > > Window.enableScrolling(false); > > > On Dec 9, 12:32 am, Petrus Pelser <[email protected]> wrote: > > > The component in the incubator is called a GlassPanel and it works > > > really well. Though I did have some issues with the blur event in IE, > > > but I could easily fix it by catching and ignoring the onBlur() call. > > > > Suri wrote: > > > > Hi Rakesh, Isaac & Litty > > > > Thanks for the replies. Since I'm currently already using the > > > > incubator jar for a table, I'll first attempt Isaac's suggestion which > > > > seems least effort-consuming at the moment. If i do need to create my > > > > own panel, I'll try both of your suggestions and update everyone on > > > > the results. > > > > > Thanks a bunch all. You guys are really great help in this forum. > > > > > On Dec 8, 3:11 pm, rakesh wagh <[email protected]> wrote: > > > > >> Correction to my earlier post: > > > >> Use PopupPanel, not AbsolutePanel. > > > >> I just tried this code in a class that extends DialogBox: > > > >> @Override > > > >> public void show() { > > > >> mask.setPixelSize(Window.getClientWidth(), > > Window.getClientHeight > > > >> ()); > > > >> mask.setPopupPosition(0, 0); > > > >> mask.setWidget(new Label("test")); > > > >> mask.setStyleName("trans-bg"); > > > >> mask.show(); > > > >> super.hide(); > > > >> super.show(); > > > >> } > > > >> @Override > > > >> public void hide() { > > > >> mask.hide(); > > > >> super.hide(); > > > >> } > > > > >> .trans-bg{ > > > >> background-color: black; > > > >> filter: alpha(opacity=50); > > > >> -moz-opacity: .5; > > > > >> } > > > > >> And I am able to show a translucent background to any of my dialog > > > >> box! > > > > >> Rakesh Wagh > > > > >> On Dec 8, 9:37 am, rakesh wagh <[email protected]> wrote: > > > > >>> if you are trying to do this on your own, you will probably need a > > > >>> absolute panel that is placed on the screen based on the screen size > > > >>> (0, 0, max clientx, max clienty). Select a proper style: color and > > > >>> transparency. Now just put your widget or popup on top of this panel. > > > >>> This way the z index of your translucent panel will be between the > > > >>> main screen and your visible widget. > > > > >>> You might also have to put a screen resize handler to resize the size > > > >>> of your panel. > > > > >>> I think the gwt incubator has a ready to use widget. > > > > >>> Rakesh Wagh > > > > >>> On Dec 6, 11:04 pm, Suri <[email protected]> wrote: > > > > >>>> Hey all, > > > >>>> In GWT how would we create a layered panel/widget that basically > > acts > > > >>>> like a semi-opaque screen for the stuff below it. Sort of looking > > like > > > >>>> the screen is in a disabled mode. Thanks for any ideas. > > > > >>>> Suri > > > > -- > > > Petrus Pelser > > > Software Developer, CTO > > > Codewave (http://www.codewave.co.za) > > > mailto:[email protected] > > > Cell: +27 79 522 6463 > > > ____________________________ --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Google Web Toolkit" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/Google-Web-Toolkit?hl=en -~----------~----~----~----~------~----~------~--~---
