I use this function below:
- Code: Select all Expand view
Function ChangeTGetColor_1(oDlg)
AEval( oDlg:aControls,{|o| if(o:ClassName()=="TGET",;
( o:bGotFocus := {|o|o:SetColor( RGB(0,0,0), RGB(252,232,191) )} ,;
o:bLostFocus := {|o|o:SetColor( CLR_BLACK, CLR_WHITE )} ),) } )
Return NIL
I use ChangeTGetColor_1(::oDlg) work(TGet in Dialog)
ChangeTGetColor_1(::oFld) not work(TGet in TFolder/TFolderex).