Antwort: RE: hide a key in before field clause of input statement

[email protected] Thu, 8 Jun 2006 09:02:40 +0200
Newsgroups gmane.comp.lang.4gl.fourjs.user
Message-ID <OF3E65001A.97DC12F5-ONC1257187.00253BD1-C1257187.00272F58@kofu.de>
Hey Sunil,
I don' t know how to hide a button from a menu. Perhaps you can do it with 
a single button in a form.
These buttons can be activated or deactivated in the input-section

I do it like this:

in a form: 
....
drucken = formonly.mo_drucken
   --#, widget = "BUTTON", config="Control-e"
;

in the programm:

to disable the button:
DISPLAY "DRUCKEN" to mo_drucken     ##when doing this there is no 
"contro-e" visible in the button
DISPLAY "" to mo_drucken 

AFTER FIELD xxx
   DISPLAY "Drucken" TO mo_drucken    ##aktivate the Button

ON KEY (CONTROL-E)
   CALL zzz()

To hide empty buttons in the form you can modify your fglprofile:

########################################################################
# Define if the key buttons with empty labels are visible.
# Default value : true

gui.empty.button.visible    = false ## WFE1 TCL3

########################################################################


hth


Stefan Serwe

KOFU Tiernahrung Kottmann GmbH
EDV-Abteilung
Danziger Strasse 3-5
41460 Neuss
Tel.: +49 2131 181 202
Fax: +49 2131 181 204