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

Xbase++ 2.0 Build 554 or later
Post Reply
Message
Author
User avatar
Jose Marte2
Posts: 46
Joined: Thu Nov 16, 2017 2:19 pm
Location: República Dominicana

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

#1 Post 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
José Marte
Software & Servicios


User avatar
Auge_Ohr
Posts: 1419
Joined: Wed Feb 24, 2010 3:44 pm

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

#2 Post by Auge_Ohr »

hi,

i use XbpMenuBar():isItemchecked() to enable/disable MenuItem.
greetings by OHR
Jimmy

User avatar
unixkd
Posts: 569
Joined: Thu Feb 11, 2010 1:39 pm

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

#3 Post by unixkd »

Hi Joe

Are you using eXpress++ ?

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

Joe

User avatar
Tom
Posts: 1184
Joined: Thu Jan 28, 2010 12:59 am
Location: Berlin, Germany

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

#4 Post 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.
Best regards,
Tom

"Did I offend you?"
"No."
"Okay, give me a second chance."

Post Reply