FiveTech Support Forums

FiveWin / Harbour / xBase community
Board index FiveWin for Harbour/xHarbour multi thread vs no modal dialog ?
Posts: 474
Joined: Sun Oct 30, 2005 06:37 AM
multi thread vs no modal dialog ?
Posted: Fri Jan 09, 2009 09:03 AM

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

http://www.xtech2.top
Mobile:(86)13802729058
Email:100200651@qq.com
QQ:100200651
Weixin: qq100200651
Posts: 44158
Joined: Thu Oct 06, 2005 05:47 PM
Re: multi thread vs no modal dialog ?
Posted: Fri Jan 09, 2009 12:10 PM

Shuming,

Why don't you use non modal dialogs ?

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

regards, saludos

Antonio Linares
www.fivetechsoft.com
Posts: 474
Joined: Sun Oct 30, 2005 06:37 AM
Re: multi thread vs no modal dialog ?
Posted: Sat Jan 10, 2009 01:01 AM
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
http://www.xtech2.top
Mobile:(86)13802729058
Email:100200651@qq.com
QQ:100200651
Weixin: qq100200651
Posts: 44158
Joined: Thu Oct 06, 2005 05:47 PM
Re: multi thread vs no modal dialog ?
Posted: Sun Jan 11, 2009 11:06 AM

Shuming,

You can do:

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

regards, saludos

Antonio Linares
www.fivetechsoft.com
Posts: 474
Joined: Sun Oct 30, 2005 06:37 AM
Re: multi thread vs no modal dialog ?
Posted: Mon Jan 12, 2009 01:08 AM

Antonio,
Thanks !
Shuming Wang

http://www.xtech2.top
Mobile:(86)13802729058
Email:100200651@qq.com
QQ:100200651
Weixin: qq100200651

Continue the discussion