please compile this little sample program.
Code: Select all | Expand
#include "Fivewin.ch"
FUNCTION MAIN()
LOCAL oDlg
LOCAL cVar := SPACE(10)
CGETFILE( "*.*", "Select a file" )
DEFINE DIALOG oDlg
@ 1, 1 GET cVar
@ 2, 1 BUTTON "Button1"
@ 3, 1 BUTTON "Button2"
ACTIVATE DIALOG oDlg
RETURN NIL
First time use keyboard to select file into CGETFILE dialog ( you can use mouse and press keyboard just one time)
When you return to dialog oDlg and you change focus into Button1 everything works fine.

Second time use only mouse (please do not touch keyboard)
When Button1 gets focus it does not appear in the right way

Any suggestions?
Marco