Page 3 of 3

Re: Migration from Clipper to HMG

Posted: Sun Jul 28, 2013 4:09 pm
by tonton2
Thank you very much,
I am going to study it :P
SHOKRANE katiren :!:

Re: Migration from Clipper to HMG

Posted: Sun Jul 28, 2013 4:19 pm
by tonton2
My problem was to change the name of main.fmg
once more thank you
I am going to try something else examples.
Shokrane katiren :D

Re: Migration from Clipper to HMG

Posted: Sun Jul 28, 2013 6:47 pm
by esgici
Afven; pas de quoi mon ami :)

Not the problem, but the reality is that HMG assumes all source file ( especially .fmg ) are in the same directory with project file (.hbp) ;)

Happy HMG'ing :D

Re: Migration from Clipper to HMG

Posted: Thu Aug 08, 2013 7:45 pm
by tonton2
good evening to all the team,
please how to block the main window when I'm working in another window ? thank you very much

Re: Migration from Clipper to HMG

Posted: Thu Aug 08, 2013 8:05 pm
by esgici
tonton2 wrote:good evening to all the team,
please how to block the main window when I'm working in another window ? thank you very much
Hello Tabet

Please be more specific: what do you want say by "blocking" window ?

Close, hide, disable etc ?

Bon soiré

Re: Migration from Clipper to HMG

Posted: Thu Aug 08, 2013 9:08 pm
by tonton2
bonsoir mr ESGICI ,

closed or hidden is the same thing , it is to not use the main window when I use another window
Example, when I use MsgInfo is good as long as I do not press' OK ' but when I call a function such as Action CALL () I can go back to the main window without leaving the CALL ()
Merci et bonne soirée
NB that what i used 'ACTION RECH_FAC(Win_1.HIDE)'

Re: Migration from Clipper to HMG

Posted: Thu Aug 08, 2013 10:02 pm
by esgici
tonton2 wrote: ...
closed or hidden is the same thing , it is to not use the main window when I use another window
Example, when I use MsgInfo is good as long as I do not press' OK ' but when I call a function such as Action CALL () I can go back to the main window without leaving the CALL ()
Merci et bonne soirée
NB that what i used 'ACTION RECH_FAC(Win_1.HIDE)'
If I understood correct, you need simply define the non-main window as MODAL. If a window defined "modal", while this window is open; user can't make anything on the "caller" window of that "modal" window. A "modal" window may be called by the "main" or another else.

As your sample, MsgInfo() ( and all windows open by Msgxxx functions ) are "modal"; so, user can't use another window until closed ( by answering question(s) or simply pressing red "X" button ) that "modal" window.

I hope this will help you.

Happy HMG'ing :D

Re: Migration from Clipper to HMG

Posted: Thu Aug 08, 2013 10:08 pm
by CalScot
Bonsoir, Monsieur.

Sorry if I misunderstand what it is that you're trying to do, but I think that you want to disable any possible action(s) on the main window while the called window is active to receive instruction(s).

If so, you might want to try creating two new functions, such as SHUT_MAIN(), invoked as soon as your "CALL()" function starts, which sets all of the active options in Main to "Enabled := .F." and the other, such as OPEN_MAIN(), invoked when "CALL()" is released, to set everything back to "Enabled :- .T."

Hope this helps!
CalScot

I've just seen Esgici's response, which came up before I could post mine, and I will always defer to his mastery, but perhaps my reply might be of some help.

Re: Migration from Clipper to HMG

Posted: Fri Aug 09, 2013 10:32 am
by tonton2
Hello everyone,
Thank you very much for your help,This is the method that I used to hide the main window

Code: Select all

ITEM "&Recherche de Factures Emise"      ;
                ACTION RECH_FAC(Win_1.Hide)
"

then to open new Win_1 I used:

Code: Select all

proc Quit_RECH_FAC()
		  use
		  Show Window win_1
	   	 form_FGrids.Release //  quit  
		return
it seems to work.
I am going to try your suggestions.
thank you very much

Re: Migration from Clipper to HMG

Posted: Fri Aug 09, 2013 12:04 pm
by tonton2
If I understood correct, you need simply define the non-main window as MODAL. If a window defined "modal", while this window is open; user can't make anything on the "caller" window of that "modal" window. A "modal" window may be called by the "main" or another else.
I used MODAL method and it is a very good solution !
Thank you to all
Good day