Page 1 of 1

multi thread vs no modal dialog ?

Posted: Fri Jan 09, 2009 9:03 am
by ShumingWang
Hi,
Someone build fwh Multi thread app open dialogs like no modal dialog ?
For some no modal dialog not works as same as modal dialog,if could, I'd like use multithread to open more than one dialogs at same time .
Thanks !
Shuming Wang

Re: multi thread vs no modal dialog ?

Posted: Fri Jan 09, 2009 12:10 pm
by Antonio Linares
Shuming,

Why don't you use non modal dialogs ?

You can use several modal dialogboxes simultaneously if their parents are different windows (or dialogs).

Re: multi thread vs no modal dialog ?

Posted: Sat Jan 10, 2009 1:01 am
by ShumingWang
Antonio,
I use:
getsysmetrics(0),
getsysmetrics(1),
oCtrol = ::aControls[i]
aRect = GetCoors( oCtrol:hWnd )
oCtrol:Move( aRect[1]*rsl1, aRect[2]*rsl0,(aRect[4] - aRect[2])*rsl0, (aRect[3] - aRect[1])*rsl1, .t. )
::Move( ntop,nleft,::nWidth*rsl0, ::nHeight*rsl1, .T. )

to change dialogs fit different 800X600,1024X768, 1280X1024,1600X12800.and dialog fonts can't be changed .
Non modal dialog does not move dialog position .
Regards!
Shuming Wang

Re: multi thread vs no modal dialog ?

Posted: Sun Jan 11, 2009 11:06 am
by Antonio Linares
Shuming,

You can do:

oDlg:nTop = nNewTop
oDlg:nLeft = nNewLeft
oDlg:nWidth = nNewWidth
oDlg:nHeight = nNewHeight

Re: multi thread vs no modal dialog ?

Posted: Mon Jan 12, 2009 1:08 am
by ShumingWang
Antonio,
Thanks !
Shuming Wang