Re: [BLACKBOX] Long running command and Dialog.ShowStatus

From: [at]} <Josef>
Date: Thu, 3 Dec 2009 11:24:16 +0100

----boundary-LibPST-iamunique-1386189633_-_-
Content-type: text/plain

Thanks to Chris I was able to solve the problem of
missing status bar updates in a long running command.
The solution he suggested is to process the Windows event queue
from time to time and it works just fine.
The enclosed test program contains a solution that
(1) blocks the app while the long running command is active
and (2) that allows to interrupt the command by the user.
I did not want to process input events such as mouse clicks
or keybourd inputs while the command is running because
this may invalidate assumtions made when the command
was started.

- Josef


StdCoder.Decode ..,, ..ng....3Qw7uP5PRPPNR9Rbf9b8R79FTvMf1GomCrlAy2xhX,Cb2x
hXhC6FU1xhiZiVBhihgmRiioedhgrZcZRiXFfaqmSrtuGfa4700zdGrr8rmCLLCJuyKtYcZRiX
7.2.s,6iJ.0k,5TWyql.bnayKmKKqGomC5XzET1.PuP.MHT9N9ntumaU2,CJuyKtQC98P9PP7O
NbXmb.2.oU8k2Ezb.0E.cUGpmWLuOpoKqvCbHZiYpedhA704TeKKw.bHfEWUmL.6..D.FR0E.C
cIhgsNHT9N9ntQ8qorG4704D.CbB,708T1U.ENT.T.Jx,2U.2.Aq0U00.bnUGLu8ro8quGrmCL
WKqtE0E.kJU.EDE.0.4.AcmBhVZBtfj1.0E65.A4AU0KyBU.2.e12.u,2..42.E.07s.kBk.W,
0E3E,8Mtr.2.S00E.c46.,.16.c8mLT5.2UE0K,CE,9z4E.0.L20.p.0.z50EJ.6.V2Q0sRc.J
E.0U12.gY..k6UEU0Q.AU9U0A,6A2U0w0cCc.Z.,sBc.B,561c.H.S24.YU0KyB.,UqV.2.u,2
..42.E.mP,U02.4Ec6.u.4k0E,m24kLE.4,4k3U6U,.W.8k5k.U0Y22UDU,g1gU0KyBU.2.e30
E.c5E.sz6.,ME..,6YUcU,w3IUM.b.,60M.1.3M.6.0.0.Cp69UPoZ0cUXDF9fR5uPPPP1fP7P
NZvQRtIdHf.2UlbcZpC.c9h0E.8z,U...B6.6.K,W.8E0kz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XJiZBgnhgUAha3YtxhpJiUghVRgcBhihgUAhn3YaBgnZiZJiUIZd..CJu8rosQRNGR9
RduPb8RZPO2ZdZZUQidQbBEW.CJoyqvCJu4KuKrtWGFqqtSKEqHE8GEiGECrIqk2KIbg,2Y2xh
vgVBgcCZ6dONbHaELqk48EeKqtG56FTP13QwdONQcjphoJijZhghgmRiiQ8CIu8LqGomCrl0ks
H3..RtETfPd16F9vQ59.C24485Et...ktu0.Y62Umb.,E.E8E.k22.,6..M.3Qwd0ZORNPNZvQ
RtIIepZBG20ksH3.bf9ZORNPNG20EtD.0E.ses,sc6.,k,,UnpZHldGrwmqmGomCrl0ks,Uikw
m46.Zz,E..W.e32.86.c918R.Y6bvM,E0E...7,,M.,.,.,tcp00Eyu9zwPA.A.2U.E,9z4U..
.p.0.4.I3t1,U.2m,.,.E4WDN.Ntarm3Wj.Jklbcjlq.5uP..I0,U...F.,.aU.E.TptM65J.n
T32kwL,,sKFHKHGA,p11...
--- end of encoding ---


----
To unsubscribe, send a message with body "SIGNOFF BLACKBOX" to LISTSERV{([at]})nowhere.xy----boundary-LibPST-iamunique-1386189633_-_-
Content-type: application/rtf
Content-transfer-encoding: base64
Content-Disposition: attachment; filename="rtf-body.rtf"
e1xydGYxXGFuc2lcYW5zaWNwZzEyNTJcZnJvbXRleHQgXGRlZmYwe1xmb250dGJsDQp7XGYwXGZz
d2lzcyBBcmlhbDt9DQp7XGYxXGZtb2Rlcm4gQ291cmllciBOZXc7fQ0Ke1xmMlxmbmlsXGZjaGFy
c2V0MiBTeW1ib2w7fQ0Ke1xmM1xmbW9kZXJuXGZjaGFyc2V0MCBDb3VyaWVyIE5ldzt9fQ0Ke1xj
b2xvcnRibFxyZWQwXGdyZWVuMFxibHVlMDtccmVkMFxncmVlbjBcYmx1ZTI1NTt9DQpcdWMxXHBh
cmRccGxhaW5cZGVmdGFiMzYwIFxmMFxmczIwIFRoYW5rcyB0byBDaHJpcyBJIHdhcyBhYmxlIHRv
IHNvbHZlIHR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