dbform.h
Go to the documentation of this file.
1 /*--------------------------------------------------------------------------------------+
2 |
3 | Supplied under applicable software license agreement.
4 |
5 | Copyright (c) 2018 Bentley Systems, Incorporated. All rights reserved.
6 |
7 +---------------------------------------------------------------------------------------*/
8 #pragma once
9 
10 #define DBDIALOG_BUTTON_DEFAULT 0
11 #define DBDIALOG_BUTTON_NOFIRST 0x00000001
12 #define DBDIALOG_BUTTON_NOLAST 0x00000002
13 #define DBDIALOG_BUTTON_NONEXT 0x00000004
14 #define DBDIALOG_BUTTON_NOQUERY 0x00000008
15 #define DBDIALOG_BUTTON_NOINSERT 0x00000010
16 #define DBDIALOG_BUTTON_NOUPDATE 0x00000020
17 #define DBDIALOG_BUTTON_NODELETE 0x00000040
18 #define DBDIALOG_BUTTON_NOCLEAR 0x00000080
19 #define DBDIALOG_BUTTON_PGSCROLL 0x00000100 /* internal use */
20 #define DBDIALOG_MLTEXT_QUERY 0x00000200
21 #define DBDIALOG_BUTTON_PREVROW 0x00000400
22 #define DBDIALOG_LABEL_COUNTROW 0x00000800
23 #define DBDIALOG_BUTTON_ATTACH 0x00001000
24 #define DBDIALOG_BUTTON_DETACH 0x00002000
25 #define DBDIALOG_BUTTON_REVIEW 0x00004000
26 #define DBDIALOG_BUTTON_LOCATE 0x00008000
27 #define DBDIALOG_TOGGLE_USEFENCE 0x00010000
28 #define DBDIALOG_BUTTON_OK 0x00020000
29 #define DBDIALOG_BUTTON_CANCEL 0x00040000
30 #define DBDIALOG_TOGGLE_NOPROMPT 0x00080000
31 
32 // Altered in dgnoprn.cpp:dgnoprn_openFormByID based on Feature Aspects
33 #define DBDIALOG_GRAPHICS_ITEMS DBDIALOG_BUTTON_ATTACH | DBDIALOG_BUTTON_DETACH | DBDIALOG_BUTTON_REVIEW | DBDIALOG_BUTTON_LOCATE
34 
35 #define DBDIALOG_NOBUTTONS DBDIALOG_BUTTON_NOFIRST |DBDIALOG_BUTTON_NOLAST | \
36  DBDIALOG_BUTTON_NONEXT | DBDIALOG_BUTTON_NOQUERY | \
37  DBDIALOG_BUTTON_NOINSERT | DBDIALOG_BUTTON_NOUPDATE | \
38  DBDIALOG_BUTTON_NODELETE | DBDIALOG_BUTTON_NOCLEAR
39 /* form attributes */
40 #define DBDIALOGATTR_CURSORBASED 0x00000001 /* use database cursors instead of key array */
41 #define DBDIALOGATTR_NOQUERYEXECUTE 0x00000002 /* no select at opening the form */
42 #define DBDIALOGATTR_TYPE_FORM 0x00000004 /* type is text based form */
43 #define DBDIALOGATTR_TYPE_LISTFORM 0x00000008 /* type is listbox based */
44 #define DBDIALOGATTR_TYPE_REPORT 0x00000010 /* report form */
45 #define DBDIALOGATTR_MODAL 0x00000020 /* modal dialog box */
46 #define DBDIALOGATTR_NOFUNCTION_GROUP 0x00000040 /* no function group box */
47 #define DBDIALOGATTR_KEEPWHERE 0x00000080 /* keep where on clearing the form */
48 #define DBDIALOGATTR_READONLY_KEYFIELD 0x00000100 /* make key fields read only */
49 #define DBDIALOGATTR_NODUPLICATES 0x00000200 /* make key fields read only */
50 

Copyright © 2017 Bentley Systems, Incorporated. All rights reserved.