multi thread vs no modal dialog ?

multi thread vs no modal dialog ?

Postby ShumingWang » Fri Jan 09, 2009 9: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
ShumingWang
 
Posts: 460
Joined: Sun Oct 30, 2005 6:37 am
Location: Guangzhou(Canton),China

Re: multi thread vs no modal dialog ?

Postby Antonio Linares » 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
User avatar
Antonio Linares
Site Admin
 
Posts: 41314
Joined: Thu Oct 06, 2005 5:47 pm
Location: Spain

Re: multi thread vs no modal dialog ?

Postby ShumingWang » Sat Jan 10, 2009 1: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
ShumingWang
 
Posts: 460
Joined: Sun Oct 30, 2005 6:37 am
Location: Guangzhou(Canton),China

Re: multi thread vs no modal dialog ?

Postby Antonio Linares » 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
User avatar
Antonio Linares
Site Admin
 
Posts: 41314
Joined: Thu Oct 06, 2005 5:47 pm
Location: Spain

Re: multi thread vs no modal dialog ?

Postby ShumingWang » Mon Jan 12, 2009 1:08 am

Antonio,
Thanks !
Shuming Wang
http://www.xtech2.top
Mobile:(86)13802729058
Email:100200651@qq.com
QQ:100200651
Weixin: qq100200651
ShumingWang
 
Posts: 460
Joined: Sun Oct 30, 2005 6:37 am
Location: Guangzhou(Canton),China


Return to FiveWin for Harbour/xHarbour

Who is online

Users browsing this forum: No registered users and 99 guests