Please let me know where I am doing mistake...!
Below Button Action working but aoGET[1]:SetFocus() works only when PRESS SPACE BAR but it does NOT work PRESS ENTER KEY.
- Code: Select all Expand view
@ 070, 200 GET aoGET[ 1 ] VAR aPrdCat[2] SIZE 315, C_GETH PIXEL OF oWnd ;
COLOR C_FCLR, C_BCLR FONT oApp:oFontGet UPDATE
.....
@ 300, 500 BUTTON oBtn1 PROMPT "&Save" SIZE C_BTNW , C_BTNH PIXEL OF oWnd ;
FONT oApp:oFontBTN1 ;
ACTION ( mprdcat_save(@aPrdCat) , oWnd:Update() , aoGET[ 1 ]:SetFocus() )
// also tried below
//ACTION ( mprdcat_save(@aPrdCat) , oWnd:Update() , SetFocus( aoGET[ 1 ]:hWnd ) )
Thanks
Shridhar