home *** CD-ROM | disk | FTP | other *** search
- // DataFlex Source Code
- // Copyright 1987-1992 Data Access Corporation, Miami FL, USA
- // All Rights reserved
- //
- // LS 5/12/92
- // JR 2/7/92
-
- // Since a large part of FLEXERRS.SRC was produced by DFAUTO, it seemed
- // reasonable to simply include the code additions where possible so
- // that the source could continue to be updated with DFAUTO with a minumum
- // of overhead. This is one of the included modules.
-
- /cancelZoomButtonImg
- ____________ _________
- /*
-
- object cancelZoomButton is a button cancelZoomButtonImg
-
- set location to 9 14 relative
-
- item_List
- on_item "<Esc=Cancel>" send deactivate to ( parent( current_Object ) )
- on_item "<F1=Help>" send help
- end_Item_List
-
- procedure add_Focus integer focusParent
- forward send add_Focus focusParent
- set focus_Mode to POINTER_ONLY
- end_Procedure
-
- procedure release_Focus
- set focus_mode to FOCUSABLE
- forward send release_Focus
- end_Procedure
-
- end_Object
-
- procedure popUp
- forward send popUp
- send add_Focus to ( cancelZoomButton( current_Object ) ) current_Object
- end_Procedure
-
- procedure request_Cancel
- send release_Focus to ( cancelZoomButton( current_Object ) )
- forward send request_Cancel
- end_Procedure
-
- procedure request_Clear
- [ not editOnlyState ] forward send request_Clear
- end_Procedure
-
- procedure request_Clear_All // disable this operation altogether
- end_procedure
-
- procedure request_Delete
- if (overrideEditState or ;
- (not(editOnlyState) and current_Record(server(current_Object)) GT 100)) ;
- forward send request_Delete
- else error DFERR_DELETE_A_PROT_REC
- end_Procedure
-
- //--------------------------------------------------------------------------
- //--------------------------------------------------------------------------
-
- set verify_Delete_Msg to get_Verify_A_Delete
- set verify_Save_Msg to get_Verify_A_Save
-