Dear All ,
Flat Button and Normal Button behavior is NOT same. Please check/test below the code
1) Flat Button executes the Code Block/Action only when user PRESS ENTER Key
2) Normal Button execute the Code Block/Action when user PRESS ENTER Key , SPACE BAR and Alt+Macro(&) Char e.g. Alt+B
Can FLATBTN work as same as BUTTON ( Normal ) ? Please guide on this.
- Code: Select all Expand view
PROCEDURE TestBtns
local aoBTN := Array(5)
local oDlg
DEFINE DIALOG oDlg FROM 0 , 0 TO 500 ,1050 PIXEL TRUEPIXEL
@ 100, 100 FLATBTN aoBTN[1] PROMPT "&F-Quit" SIZE 100, 40 PIXEL OF oDlg ;
ACTION oDlg:End()
@ 200, 100 BUTTON aoBTN[2] PROMPT "&B-Quit" SIZE 100 , 40 PIXEL OF oDlg ;
ACTION oDlg:End()
ACTIVATE DIALOG oDlg CENTERED
return nil
Thanks
shridhar