FiveTech Support Forums

FiveWin / Harbour / xBase community
Board index FiveWin for Harbour/xHarbour Fivehm/multi thread vs child/MDI dialog
Posts: 474
Joined: Sun Oct 30, 2005 06:37 AM
Fivehm/multi thread vs child/MDI dialog
Posted: Sun Dec 09, 2007 02:24 AM

Hi,
Multi thread use of harbour+fwhm like No modal/ Child dialog?

function myfun()
local odlg
define dialog odlg

browse ...
redefine get id 201 of odlg
redefine button id 202 of odlg action (call thread 2 myfun1() )

activate dialog odlg

return

function myfun1()
local odlg

define dialog odlg

browse ...
redefine get id 201 of odlg
redefine button id 202 of odlg action myfun2()

activate dialog odlg

return

after call myfun1(), there are 2 dialogs like 2 no modal dialogs ?

Thanks !

Shuming Wang

http://www.xtech2.top
Mobile:(86)13802729058
Email:100200651@qq.com
QQ:100200651
Weixin: qq100200651
Posts: 44162
Joined: Thu Oct 06, 2005 05:47 PM
Fivehm/multi thread vs child/MDI dialog
Posted: Sun Dec 09, 2007 08:41 AM

Shuming,

dialogs are non modal between them, unless you specify OF ... or the previous dialog has focus:

DEFINE DIALOG oDlg2 OF oDlg1

regards, saludos

Antonio Linares
www.fivetechsoft.com
Posts: 474
Joined: Sun Oct 30, 2005 06:37 AM
Fivehm/multi thread vs child/MDI dialog
Posted: Mon Dec 10, 2007 05:06 AM

Antonio,
How could I switch from one dialog to another freely if they are non dialogs?

Normaly we call and create another dialog odlg2 after ckick /press the first dialog .

function main()
define dialog odlg1

redefine button id 101 of odlg1 action createdialog2()
activate dialog odlg1

function creatdialog2()
define dialog odlg2
redefine ...
activate dialog odlg2.
return

You must close odlg2,then you can back/enter/active odlg1.

Regards!
Shuming Wang

http://www.xtech2.top
Mobile:(86)13802729058
Email:100200651@qq.com
QQ:100200651
Weixin: qq100200651
Posts: 44162
Joined: Thu Oct 06, 2005 05:47 PM
Fivehm/multi thread vs child/MDI dialog
Posted: Mon Dec 10, 2007 08:47 AM

Shuming,

ACTIVATE DIALOG oDlg NOWAIT

that will execute it as non modal

regards, saludos

Antonio Linares
www.fivetechsoft.com
Posts: 474
Joined: Sun Oct 30, 2005 06:37 AM
Fivehm/multi thread vs child/MDI dialog
Posted: Tue Dec 11, 2007 01:34 AM

Antonio,

The odlg2 seems does not work properly ,for example, xbrowse unmoveable .
Regards!

Shuming Wang

http://www.xtech2.top
Mobile:(86)13802729058
Email:100200651@qq.com
QQ:100200651
Weixin: qq100200651
Posts: 44162
Joined: Thu Oct 06, 2005 05:47 PM
Fivehm/multi thread vs child/MDI dialog
Posted: Tue Dec 11, 2007 12:50 PM

Shuming,

Please provide a small and self contained PRG to test, thanks

regards, saludos

Antonio Linares
www.fivetechsoft.com
Posts: 10733
Joined: Sun Nov 19, 2006 05:22 AM
Global Flag for 2007 style - Requested
Posted: Wed Dec 12, 2007 08:58 PM

Mr Antonio

I renew my request for providing a global flag for 2007 style, instead of having to specify at each and every instance of menu. bar, msgbar. popmenus spread over in many modules of of the application.

This time I managed by changing xcommands' translates, but I normally do not like to modify FWH commands.

For reconsideration

Regards



G. N. Rao.

Hyderabad, India

Continue the discussion