> Bonjour, > - what are the possible values for the field "just" in the >RECORD "ControlFontStyleRec" The constants _leftJust _centerJust _rightJust are FB constants and are not understood by the Control Manager. The correct constant to pass for the .just field is one of: _teFlushDefault _teCenter _teFlushRight _teFlushLeft These justification constants work for a static text control (_kControlStaticTextProc), but the Control Manager has a bug and ignores the .just field for an editable text control. Alain Pasteur's workaround allows any of the 4 constants to be applied: def SetButtonTextString ( 1, "Hello" ) def SetButtonFontStyle ( 1, cfs ) dim teH as ..TERec teH = button( 1, _FBgetControlTEHandle ) long if teH teH..just = _teJustRight// or _teFlushDefault, _teJustCenter, _teJustLeft end if > - is it possible to trap keypress in "pseudo edit field" >APPEARANCE BUTTON _kControlEditTextProc (like TEKEY$ function in >true edit field) Yes. There is an example on the Release 6 CD, showing how to install a key filter on a password text control (_kControlEditTextPasswordProc). The same method should work for an ordinary editable text control (_kControlEditTextProc). On the US English CD, the example can be found at R6 Appearance examples folder:Miscellaneous:Password +key filter demo Robert P.