Here=20is some= =20sample=20code=20 that=20exhibits=20the=20same=20problem.

Some=20background:

This=20example=20uses=20the=20time.sleep()=20method=20= to=20'duplicate'=20the=20 delay=20mechanism,=20so=20the=20gui=20won't=20show=20until=20the=20first=20= 'timeout'=20(default=20is=2010=20 seconds=20-=20line=2049),=20it=20will=20run=20twice=20(line=20125)=20i.e.=20= show=20the=20dialog=20and=20have=20 the=20user=20press=20a=20button=20twice=20and=20then=20the=20sample=20appl= ication=20will=20terminate=20 itself.

So=20start=20the=20application=20and=20then=20switch=20= to=20some=20other=20 applications=20i.e.=20Outlook=20or=20Word=20etc,=20after=20the=2010=20seco= nds=20the=20dialog=20should=20 activate=20-=20which=20it=20does=20but=20it=20doesn't=20pop=20to=20the=20t= op=20like=20it=20should,=20so=20you'll=20 have=20to=20go=20looking=20for=20it=20(assuming=20you=20have=20the=20same=20= problem=20I=20do=20 :-)).

Thanks=20for=20the=20help,

Peter

=20=20-----Original=20Message-----
From:=20stewart.midw= inter@gmail.com=20 =20=20[mailto:stewart.midwinter@gmail.com]On=20Behalf=20Of=20Stewar= t=20 =20=20Midwinter
Sent:=20Thursday,=2015=20February=202007=205:08=20= AM
To:=20 =20=20Peter=20Milliken
Cc:=20 =20=20pmw-general@lists.sourceforge.net
Subject:=20Re:=20[Pmw-ge= neral]=20How=20do=20 =20=20I=20get=20a=20MessageDialog=20to=20come=20to=20the=20top?

Peter,=20the=20 =20=20withdraw()=20method=20would=20hide=20the=20dialog.=20

Still=20= having=20a=20 =20=20problem?

=20=20
On=202/13/07,=20Peter=20 =20=20Milliken=20<=20 =20=20PeterM@resmed.com.au>=20wrote: =20=20 =20=20=20=20
=20=20=20=20

Hi,=20

=20=20=20=20

I=20have=20written=20an=20a= pplication=20where=20I=20want=20a=20 =20=20=20=20Pmw.MessageDialog=20to=20pop=20up=20on=20my=20screen=20(runnin= g=20Windows=202000)=20and=20be=20the=20 =20=20=20=20top=20level=20object.

=20=20=20=20

I=20originally=20used=20a=20= tkMessageBox=20which=20worked=20 =20=20=20=20fine=20but=20I=20wanted=20to=20customise=20the=20event=20so=20= I=20used=20a=20Pmw=20MessageDialog=20 =20=20=20=20instead.=20Now,=20for=20some=20reason=20the=20dialog=20will=20= not=20become=20visible=20i.e.=20it=20is=20 =20=20=20=20shown=20but=20is=20often=20under=20some=20other=20application=20= window=20and=20therefore=20I=20don't=20 =20=20=20=20see=20it=20raised.=20

=20=20=20=20

The=20code=20to=20raise=20i= t=20looks=20like=20this:=20

=20=20=20=20

self.dialog.show()=20=
self.dialog.activate()=20

=20=20=20=20

I=20do=20a=20self.dialog.wi= thdraw()=20immediately=20after=20I=20 =20=20=20=20have=20created=20the=20dialog.=20

=20=20=20=20

I=20have=20searched=20the=20= list,=20I=20have=20tried=20some=20 =20=20=20=20different=20things=20but=20am=20at=20a=20loss=20as=20to=20why=20= this=20doesn't=20become=20the=20topmost=20 =20=20=20=20item=20on=20my=20screen=20when=20it=20activates=20-=20I=20didn= 't=20have=20a=20problem=20with=20the=20 =20=20=20=20tkMessageBox.=20I=20(briefly)=20tried=20to=20see=20whether=20t= here=20was=20any=20clues=20in=20the=20tk=20 =20=20=20=20library=20stuff=20about=20dialogs,=20tkSimpleDialog=20etc=20bu= t=20couldn't=20see=20anything=20 =20=20=20=20obvious.=20

=20=20=20=20

Help=20would=20be=20much=20= appreciated=20:-)=20

=20=20=20=20

Thanks=20
Peter=20

=20=20=20=20

Peter=20= Milliken=20 =20=20=20=20
Softw= are=20Engineer=20 =20=20=20=20
Re= sMed=20Ltd
1=20Elizabeth=20Macarthur=20Drive<= BR>Bella=20Vista=20NSW=202153=20 =20=20=20=20Australia=20
Tel:=20 =20=20=20=20=20 =20=20=20=20=20=20=20+61=202=208884=201000=20 =20=20=20=20
Dir:=20=20 =20=20=20=20=20=20=20+61=202=208884=202316=20 =20=20=20=20
Fax:+61=202=208884=20 =20=20=20=202006
email:=20peterm@resmed.com.au=20 =20=20=20=20

materials=20is=20subject=20exclusively=20to=20the=20c= onditions=20of=20engagement=20 =20=20=20=20between=20ResMed=20and=20the=20intended=20recipient.

Th= is=20communication=20is=20 =20=20=20=20confidential=20and=20may=20contain=20legally=20privileged=20in= formation.
By=20the=20use=20 =20=20=20=20of=20email=20over=20the=20Internet=20or=20other=20communicatio= n=20systems,=20ResMed=20is=20not=20 =20=20=20=20waiving=20either=20confidentiality=20of,=20or=20legal
privi= lege=20in,the=20content=20of=20 =20=20=20=20the=20email=20and=20of=20any=20attachments.

--------------------------= -----------------------------------------------
Using=20 =20=20=20=20Tomcat=20but=20need=20to=20do=20more?=20Need=20to=20support=20= web=20services,=20security?
Get=20 =20=20=20=20stuff=20done=20quickly=20with=20pre-integrated=20technology=20= to=20make=20your=20job=20easier.=20 =20=20=20=20
http://sel.as-us.falkag.net/sel?cmd=3Dlnk&= kid=3D120709&bid=3D263057&dat=3D121642
____________________= ___________________________
Pmw-general=20 =20=20=20=20mailing=20list
Pmw-general@= lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/p= mw-general=20 =20=20=20=20

--=20=
Stewart=20 =20=20Midwinter
stewart@midwinter.ca
stewart.midwinter@gmail.= com=20 =20=20