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
-~----------~----~----~----~------~----~------~--~---