Information générale
Catégorie:
Gestionnaire d'écran & Écrans
I'm replying to myself..
I tried utilizing the command group. This works. I execute the 'print is disabled' message code in the command group click if the command button is disabled.
>I disable a Print command button when a given condition exists on a particular record. But the user wants a message to pop up when they click on a disabled button - for example: 'Print is disabled for On Hold Orders'.
>
>Some alternatives are:
>
>1) Keep the button enabled - but disable the function - misleading because it looks like they can use the button
>2) Return .f. from the when - misleading also because it looks like the button is enabled.
>
>If in fact no events fire upon clicking a disabled button - what workarounds are there, if any to accomplish this?
>
>BTW - additional info: This app was converterted, I think, with the conversion utility that converts a 2.6 app to vfp. The converter makes every individual button part of a command group - either the converter did this or the people who originally wrote the app did it - I'm not sure. Maybe I can use this to my advantage by keeping the command group enabled but the button itself disabled? I haven't tested this yet. Just thought of it now while writing...
>
>Any suggestions appreciated
>
>Thanks
Précédent
Suivant
Répondre
Voir le fil de ce thread
Voir le fil de ce thread à partir de ce message seulement
Voir tous les messages de ce thread
Voir tous les messages de ce thread à partir de ce message seulement