Page 1 of 1

freeze a window

Posted: Sat Jul 04, 2015 8:57 am
by sunningdale
Teaching someone else is not always an easy thing to do.

My problem is that if I create window 1 with a few buttons on it then all is ok.

I then create window 2 and add a few more buttons. No problem.

With both windows in view how do I stop the user from pressing buttons in the first window accepting that I want it to remain on display but in an inactive state.

I have written a little routine to disable the buttons in window 1 and it works ok but is there and existing command that does the same in a more professional way.

Re: freeze a window

Posted: Sat Jul 04, 2015 10:28 am
by mustafa
Hola amigo sunningdale:
Mirate en este sample que te puede
interesar mediante las PROCEDURE Anular()
Form_1.Buton_1.Enabled := .T.
Form_1.Buton_2.Enabled := .T.
y PROCEDURE Activar()
Form_1.Buton_1.Enabled := .F.
Form_1.Buton_2.Enabled := .F.
Anulas o Activas los Botones
Un Saludo
*---------------------------------------------*
Hello sunningdale friend:
Look in this sample you can
PROCEDURE interest using the Anular() <-- Cancel
Form_1.Buton_1.Enabled: = .T.
Form_1.Buton_2.Enabled: = .T.
and PROCEDURE Activar() <--On
Form_1.Buton_1.Enabled: = .F.
Form_1.Buton_2.Enabled: = .F.
Nullify or Active Buttons
a Greeting
Mustafa :idea:

Re: freeze a window

Posted: Sat Jul 04, 2015 12:01 pm
by esgici
sunningdale wrote:Teaching someone else is not always an easy thing to do.

My problem is that if I create window 1 with a few buttons on it then all is ok.

I then create window 2 and add a few more buttons. No problem.

With both windows in view how do I stop the user from pressing buttons in the first window accepting that I want it to remain on display but in an inactive state.

I have written a little routine to disable the buttons in window 1 and it works ok but is there and existing command that does the same in a more professional way.
Hi

Did you tried define MODAL type the second window ?

Happy HMG'ing :D

Re: freeze a window

Posted: Sat Jul 04, 2015 4:42 pm
by sunningdale
Many thanks to Mustafa and Esgici. You both helped a lot it now works perfectly.

Re: freeze a window

Posted: Sat Jul 04, 2015 7:50 pm
by esgici
sunningdale wrote:Many thanks to Mustafa and Esgici. You both helped a lot it now works perfectly.
You are welcome friend :D

Happy HMG'ing :D