Thanks for the suggestion,

the problem with that solution is that the menu will then stay expanded. Which I guess for the user would be kind of an odd behaviour, probably more odd than the dialog not getting the focus. Unless I did something wrong when I tested this of course.

Cheers,

Tomas


On 08/23/2012 05:19 PM, Josh R wrote:
On Thu, Aug 23, 2012 at 2:30 AM, Tomas Stenlund
<[email protected]> wrote:
Hi,

I haven't actually thought about this until recently. But when a dialog is
opened from a menu selection it first gets the focus, but then looses it
when the menu redraws itself. It works as expected when the dialog is
Have you looked at the blockingdialog :
http://code.google.com/a/apache-extras.org/p/pivot-contrib/wiki/GuretzkiFeatures
If you want to block the user then this is the dialog you can use. I
spent an entire day and then found a solution on this list.

Download the contrib jar from the above link(I just add it to
external-jars on my eclipse build-path). Add this code in your
Main.java


                 //dialog.setModal(false);
                 //dialog.open(Main.this);

                 Dialog d = new Dialog("my-dialog", true);
                 BlockingDialog bd = new BlockingDialog();
                 bd.setContent(d);
                 bd.open(Main.this.getDisplay());


Let us know how it goes....


Cheers,
Tomas
thanks


Reply via email to