Page 1 of 1

A few minutes of your valuable time, for help please - Unos minutos de su valioso tiempo, para una ayuda por favor

Posted: Fri Aug 16, 2024 1:23 pm
by Jose Marte2
Greetings, I hope you are well as well as your families.

Please if you could help me with this question.

I am starting to migrate a system that I have on clipper

I am using the menu called ownerdrw
The question is when selecting an option is there any way to disable that option or the menu that cannot be used until closing or returning from the selected option

thanks in advance

EspaƱol
Saludos, espero que esten bien al igual que sus familias.

Por favor si pudieran brindarme su ayuda con esta pregunta

Estoy comenzando a migrar un sistema que tengo en clipper

Estoy usando el menu que se llama ownerdrw

La pregunta es al momento de seleccionar una opcion hay alguna manera para desactivar esa opcion o el menu que no se pueda utilizar hasta cerrar o volver de la opcion selecciona

Las gracias anticipadas

Re: A few minutes of your valuable time, for help please - Unos minutos de su valioso tiempo, para una ayuda por favor

Posted: Fri Aug 16, 2024 11:20 pm
by Auge_Ohr
hi,

i use XbpMenuBar():isItemchecked() to enable/disable MenuItem.

Re: A few minutes of your valuable time, for help please - Unos minutos de su valioso tiempo, para una ayuda por favor

Posted: Sun Aug 18, 2024 12:06 pm
by unixkd
Hi Joe

Are you using eXpress++ ?

It appear what you want is how to make a dialog MODAL

Joe

Re: A few minutes of your valuable time, for help please - Unos minutos de su valioso tiempo, para una ayuda por favor

Posted: Sun Aug 18, 2024 11:17 pm
by Tom
DCMENUITEM has a WHEN clause:

Code: Select all

DCMENUITEM 'Open File' PARENT oMyMenu ACTION {||lOpeningRuns := .T., DoTheDamnedFileOpening()} WHEN {||!lOpeningRuns}
If the WHEN-clause returns .F., the menu item can't be selected.