I have a dialog with a bunch of GETS, I want the user to press Enter through the fields as he enters them.
When I press enter, it presses the 'Save' button. How can I make it not do that, forcing the user to Click "Save" when he is ready.
REDEFINE BTNBMP oBtn_Save ID IDOK of Dlg_SUB PROMPT "Save" TOP RESOURCE "save" ACTION ( Update_dbmain(), Dlg_SUB:END() ) TOOLTIP "Save"
REDEFINE BTNBMP oBtn_Cancel ID IDCANCEL of Dlg_SUB PROMPT "Cancel" TOP RESOURCE "cancel" ACTION ( oDBF_MAIN:Load(), Dlg_Dbmain:Update(), Dlg_SUB:END() ) TOOLTIP "Cancel"
Ollie wrote:It hasn't been set to default. As far as I know. (There is no DEFAULT clause in the button definition How do I set default off?
- Code: Select all Expand view RUN
REDEFINE BTNBMP oBtn_Save ID IDOK of Dlg_SUB PROMPT "Save" TOP RESOURCE "save" ACTION ( Update_dbmain(), Dlg_SUB:END() ) TOOLTIP "Save"
REDEFINE BTNBMP oBtn_Cancel ID IDCANCEL of Dlg_SUB PROMPT "Cancel" TOP RESOURCE "cancel" ACTION ( oDBF_MAIN:Load(), Dlg_Dbmain:Update(), Dlg_SUB:END() ) TOOLTIP "Cancel"
Return to FiveWin for Harbour/xHarbour
Users browsing this forum: Google [Bot] and 58 guests