Fivehm/multi thread vs child/MDI dialog

Fivehm/multi thread vs child/MDI dialog

Postby ShumingWang » Sun Dec 09, 2007 2: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
ShumingWang
 
Posts: 465
Joined: Sun Oct 30, 2005 6:37 am
Location: Guangzhou(Canton),China

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

Postby ShumingWang » Mon Dec 10, 2007 5: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
ShumingWang
 
Posts: 465
Joined: Sun Oct 30, 2005 6:37 am
Location: Guangzhou(Canton),China

Postby Antonio Linares » Mon Dec 10, 2007 8:47 am

Shuming,

ACTIVATE DIALOG oDlg NOWAIT

that will execute it as non modal
regards, saludos

Antonio Linares
www.fivetechsoft.com
User avatar
Antonio Linares
Site Admin
 
Posts: 42107
Joined: Thu Oct 06, 2005 5:47 pm
Location: Spain

Postby ShumingWang » Tue Dec 11, 2007 1:34 am

Antonio,

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

Shuming Wang
ShumingWang
 
Posts: 465
Joined: Sun Oct 30, 2005 6:37 am
Location: Guangzhou(Canton),China

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

Global Flag for 2007 style - Requested

Postby nageswaragunupudi » Wed Dec 12, 2007 8: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
User avatar
nageswaragunupudi
 
Posts: 10643
Joined: Sun Nov 19, 2006 5:22 am
Location: India


Return to FiveWin for Harbour/xHarbour

Who is online

Users browsing this forum: Google [Bot] and 55 guests