home *** CD-ROM | disk | FTP | other *** search
- /*============================================================================*/
- /* L a b W i n d o w s / C V I */
- /*----------------------------------------------------------------------------*/
- /* Copyright (c) National Instruments 1987-1996. All Rights Reserved. */
- /*----------------------------------------------------------------------------*/
- /* */
- /* Title: userint.h */
- /* Purpose: Include file for LabWindows/CVI User Interface Library */
- /* */
- /*============================================================================*/
-
- #ifndef USERINT_HEADER
- #define USERINT_HEADER
-
- #include "cvidef.h"
- #include "cvirte.h"
-
- #ifdef __cplusplus
- extern "C" {
- #endif
-
- #if defined(_NI_mswin16_)
- #define MAX_PATHNAME_LEN 80 /* includes nul byte */
- #define MAX_DRIVENAME_LEN 3 /* includes nul byte */
- #define MAX_DIRNAME_LEN 66 /* includes nul byte */
- #define MAX_FILENAME_LEN 13 /* includes nul byte */
-
- #elif defined(_NI_mswin32_)
- #define MAX_PATHNAME_LEN 260 /* includes nul byte */
- #define MAX_DRIVENAME_LEN 3 /* includes nul byte */
- #define MAX_DIRNAME_LEN 256 /* includes nul byte */
- #define MAX_FILENAME_LEN 256 /* includes nul byte */
-
- #elif defined(_NI_unix_) || defined(_NI_sparc_)
- #define MAX_PATHNAME_LEN 256 /* recommended buffer size for paths */
- #define MAX_DRIVENAME_LEN 1 /* includes nul byte */
- #define MAX_DIRNAME_LEN 256 /* includes nul byte */
- #define MAX_FILENAME_LEN 256 /* recommended buffer size for file names */
-
- #elif defined(_NI_mac_)
- #define MAX_PATHNAME_LEN 256 /* includes nul byte */
- #define MAX_DRIVENAME_LEN 1 /* includes nul byte */
- #define MAX_DIRNAME_LEN 256 /* includes nul byte */
- #define MAX_FILENAME_LEN 256 /* includes nul byte */
-
- #else
- #error Undefined Platform. You need to add one of the
- #error following to your compiler defines:
- #error Platform Preprocessor directive
- #error Microsoft Windows 3.1 #define _NI_mswin16_
- #error Windows 95/NT #define _NI_mswin32_
- #error Solaris 1 #define _NI_sparc_ 1
- #error Solaris 2 #define _NI_sparc_ 2
- #error
- #error _NI_i386_ has been replaced with _NI_mswin16_.
- #error See Programmers Reference Manual for more information.
-
- #endif
-
- /* */
- /* CONTROL STYLES: (for use in the NewCtrl() function) */
- /* */
-
-
- /*** numerics: ***/
- #define CTRL_NUMERIC 100
- #define CTRL_NUMERIC_THERMOMETER 101
- #define CTRL_NUMERIC_TANK 102
- #define CTRL_NUMERIC_GAUGE 103
- #define CTRL_NUMERIC_METER 104
- #define CTRL_NUMERIC_KNOB 105
- #define CTRL_NUMERIC_DIAL 106
- #define CTRL_NUMERIC_VSLIDE 107
- #define CTRL_NUMERIC_HSLIDE 108
- #define CTRL_NUMERIC_FLAT_VSLIDE 109
- #define CTRL_NUMERIC_FLAT_HSLIDE 110
- #define CTRL_NUMERIC_LEVEL_VSLIDE 111
- #define CTRL_NUMERIC_LEVEL_HSLIDE 112
- #define CTRL_NUMERIC_POINTER_VSLIDE 113
- #define CTRL_NUMERIC_POINTER_HSLIDE 114
- #define CTRL_COLOR_NUMERIC 130
-
- #define CTRL_STRING 150
-
- #define CTRL_TEXT_MSG 160
-
- #define CTRL_TEXT_BOX 170
-
- /*** command buttons ***/
- #define CTRL_SQUARE_COMMAND_BUTTON 200
- #define CTRL_OBLONG_COMMAND_BUTTON 201
- #define CTRL_ROUND_COMMAND_BUTTON 202
- #define CTRL_ROUNDED_COMMAND_BUTTON 203
- #define CTRL_PICTURE_COMMAND_BUTTON 204
-
- /*** buttons ***/
- #define CTRL_ROUND_BUTTON 220
- #define CTRL_SQUARE_BUTTON 221
- #define CTRL_ROUND_FLAT_BUTTON 222
- #define CTRL_SQUARE_FLAT_BUTTON 223
- #define CTRL_ROUND_RADIO_BUTTON 224
- #define CTRL_SQUARE_RADIO_BUTTON 225
- #define CTRL_CHECK_BOX 226
- #define CTRL_ROUND_PUSH_BUTTON 227
- #define CTRL_SQUARE_PUSH_BUTTON 228
- #define CTRL_ROUND_PUSH_BUTTON2 229
- #define CTRL_SQUARE_PUSH_BUTTON2 230
- #define CTRL_SQUARE_TEXT_BUTTON 231
- #define CTRL_OBLONG_TEXT_BUTTON 232
- #define CTRL_ROUND_TEXT_BUTTON 233
- #define CTRL_ROUNDED_TEXT_BUTTON 234
- #define CTRL_PICTURE_TOGGLE_BUTTON 235
-
- /*** LED's ***/
- #define CTRL_ROUND_LIGHT 260
- #define CTRL_SQUARE_LIGHT 261
- #define CTRL_ROUND_LED 262
- #define CTRL_SQUARE_LED 263
-
- /*** binary switches ***/
- #define CTRL_HSWITCH 280
- #define CTRL_VSWITCH 281
- #define CTRL_GROOVED_HSWITCH 282
- #define CTRL_GROOVED_VSWITCH 283
- #define CTRL_TOGGLE_HSWITCH 284
- #define CTRL_TOGGLE_VSWITCH 285
-
- /*** rings ***/
- #define CTRL_RING 300
- #define CTRL_RECESSED_MENU_RING 301
- #define CTRL_MENU_RING 302
- #define CTRL_POPUP_MENU_RING 303
- #define CTRL_RING_VSLIDE 304
- #define CTRL_RING_HSLIDE 305
- #define CTRL_RING_FLAT_VSLIDE 306
- #define CTRL_RING_FLAT_HSLIDE 307
- #define CTRL_RING_LEVEL_VSLIDE 308
- #define CTRL_RING_LEVEL_HSLIDE 309
- #define CTRL_RING_POINTER_VSLIDE 310
- #define CTRL_RING_POINTER_HSLIDE 311
- #define CTRL_RING_THERMOMETER 312
- #define CTRL_RING_TANK 313
- #define CTRL_RING_GAUGE 314
- #define CTRL_RING_METER 315
- #define CTRL_RING_KNOB 316
- #define CTRL_RING_DIAL 317
- #define CTRL_PICTURE_RING 318
-
- #define CTRL_LIST 340
-
- /*** decorations */
- #define CTRL_RAISED_BOX 380
- #define CTRL_RECESSED_BOX 381
- #define CTRL_FLAT_BOX 382
- #define CTRL_RAISED_CIRCLE 383
- #define CTRL_RECESSED_CIRCLE 384
- #define CTRL_FLAT_CIRCLE 385
- #define CTRL_RAISED_FRAME 386
- #define CTRL_RECESSED_FRAME 387
- #define CTRL_FLAT_FRAME 388
- #define CTRL_RAISED_ROUND_FRAME 389
- #define CTRL_RECESSED_ROUND_FRAME 390
- #define CTRL_FLAT_ROUND_FRAME 391
- #define CTRL_RAISED_ROUNDED_BOX 392
- #define CTRL_RECESSED_ROUNDED_BOX 393
- #define CTRL_FLAT_ROUNDED_BOX 394
-
- #define CTRL_GRAPH 440
- #define CTRL_STRIP_CHART 460
-
- #define CTRL_PICTURE 480
-
- #define CTRL_TIMER 490
-
- #define CTRL_CANVAS 500
-
- /* */
- /* ATTRIBUTES: (for use in the set and get attribute functions) */
- /* Note that not all attributes apply to all objects */
- /* */
-
- /*** for controls, menus, menuItems, menuBars and panels: ***/
- #define ATTR_DIMMED 500 /* int (boolean) */
- #define ATTR_CONSTANT_NAME 501 /* (char *) (not settable) */
- #define ATTR_CONSTANT_NAME_LENGTH 502 /* int (not settable) */
-
- /*** for controls, menus, menuItems, and panels: ***/
- #define ATTR_CALLBACK_DATA 510 /* (void *) */
- #define ATTR_CALLBACK_NAME 511 /* (char *) (not settable) */
- #define ATTR_CALLBACK_NAME_LENGTH 512 /* int (not settable) */
- #define ATTR_CALLBACK_FUNCTION_POINTER 513 /* (void *) */
-
- /*** for panels and all controls: ***/
- #define ATTR_VISIBLE 530 /* int (boolean) */
- #define ATTR_LEFT 531 /* int (-32768 - 32767) */
- #define ATTR_TOP 532 /* int (-32768 - 32767) */
- #define ATTR_WIDTH 533 /* int (0-32767) */
-
- /*** for child panels and all controls: ***/
- #define ATTR_ZPLANE_POSITION 610 /* int (0 - numObjects-1) */
-
-
- /*** for panels and all controls except
- simple strings, simple numerics and simple rings */
- #define ATTR_HEIGHT 540 /* int (0-32767) */
-
- /*** for panels and controls with frames:
- (text boxes, strings, numerics, simple rings, ring meters,
- ring gauges, picture rings, list boxes, decorations, and pictures)
- ***/
- #define ATTR_FRAME_COLOR 550 /* int (rgb value) */
-
- /*** for panels, text boxes and list boxes: ***/
- #define ATTR_SCROLL_BARS 551 /* int: VAL_NO_SCROLL_BARS, ... */
- #define ATTR_SCROLL_BAR_COLOR 552 /* int (rgb value) */
-
- /*** for panels and text boxes: ***/
- #define ATTR_HSCROLL_OFFSET 560 /* int (in pixels) */
- #define ATTR_HSCROLL_OFFSET_MAX 561 /* int (in pixels) */
-
- /*** for panels only: ***/
- #define ATTR_BACKCOLOR 570 /* int (rgb value) */
- #define ATTR_TITLEBAR_VISIBLE 571 /* int (boolean) */
- #define ATTR_TITLEBAR_THICKNESS 572 /* int */
- #define ATTR_TITLE 573 /* (char *) */
- #define ATTR_TITLE_LENGTH 574 /* int (not settable) */
- #define ATTR_TITLE_COLOR 575 /* int (rgb value) */
- #define ATTR_TITLE_BACKCOLOR 576 /* int (rgb value) */
- #define ATTR_FRAME_STYLE 577 /* int: VAL_OUTLINED_FRAME, ... */
- #define ATTR_FRAME_THICKNESS 578 /* int */
- #define ATTR_MENU_HEIGHT 579 /* int */
- #define ATTR_SIZABLE 580 /* int (boolean) */
- #define ATTR_MOVABLE 581 /* int (boolean) */
- #define ATTR_NUM_CTRLS 582 /* int (not settable) */
- #define ATTR_MOUSE_CURSOR 583 /* int: VAL_DEFAULT_CURSOR, ... */
- #define ATTR_TITLE_FONT 584 /* (char *) */
- #define ATTR_TITLE_ITALIC 585 /* int (boolean) */
- #define ATTR_TITLE_UNDERLINE 586 /* int (boolean) */
- #define ATTR_TITLE_STRIKEOUT 587 /* int (boolean) */
- #define ATTR_TITLE_POINT_SIZE 588 /* int (1-255) */
- #define ATTR_TITLE_BOLD 589 /* int (boolean) */
- #define ATTR_TITLE_FONT_NAME_LENGTH 590 /* int (not settable) */
- #define ATTR_MENU_BAR_VISIBLE 591 /* int (boolean) */
- #define ATTR_CLOSE_CTRL 592 /* int (ctrl Id) */
- #define ATTR_VSCROLL_OFFSET 593 /* int (in pixels) */
- #define ATTR_VSCROLL_OFFSET_MAX 594 /* int (in pixels) */
- #define ATTR_PARENT_SHARES_SHORTCUT_KEYS 595 /* int (boolean) */
- #define ATTR_ACTIVATE_WHEN_CLICKED_ON 596 /* int (boolean) */
- #define ATTR_WINDOW_ZOOM 597 /* int: VAL_MINIMIZE, ... */
- #define ATTR_SYSTEM_WINDOW_HANDLE 598 /* int (HWND, or X-Window) */
- #define ATTR_CAN_MINIMIZE 599 /* int (boolean) */
- #define ATTR_CAN_MAXIMIZE 600 /* int (boolean) */
- #define ATTR_CLOSE_ITEM_VISIBLE 601 /* int (boolean) */
- #define ATTR_SYSTEM_MENU_VISIBLE 602 /* int (boolean) */
- #define ATTR_PANEL_MENU_BAR_CONSTANT 603 /* (char *) */
- #define ATTR_PANEL_MENU_BAR_CONSTANT_LENGTH 604 /* int (not settable) */
- #define ATTR_TITLE_SIZE_TO_FONT 605 /* int (boolean) */
- #define ATTR_PANEL_PARENT 606 /* int (not settable) */
- #define ATTR_NUM_CHILDREN 607 /* int (not settable) */
- #define ATTR_FIRST_CHILD 608 /* int (not settable) */
- #define ATTR_NEXT_PANEL 609 /* int (not settable) */
- #define ATTR_PANEL_FIRST_CTRL 612 /* int (not settable) */
- #define ATTR_ACTIVE 614 /* int (not settable) */
- #define ATTR_FLOATING 615 /* int (boolean) */
- #define ATTR_TL_ACTIVATE_WHEN_CLICKED_ON 616 /* int (boolean) */
- #define ATTR_CONFORM_TO_SYSTEM 617 /* int (boolean) */
-
- /*** for all controls: ***/
- #define ATTR_CTRL_STYLE 611 /* int: CTRL_NUMERIC, ... */
- /* (not settable) */
- #define ATTR_NEXT_CTRL 613 /* int (not settable) */
- #define ATTR_OVERLAPPED 1372 /* int (not settable) */
-
- /*** for all controls except indicator-only controls:
- (indicator-only controls are:
- timer, decorations, strip charts, text messages, and pictures)
- ***/
- #define ATTR_CTRL_MODE 620 /* int: VAL_HOT, ... */
- #define ATTR_CTRL_TAB_POSITION 612 /* int */
-
- /*** for all controls except decorations, pictures, canvases,
- graphs, and strip charts: ***/
- #define ATTR_CTRL_VAL 630 /* same datatype as ctrl */
-
- /*** for controls with labels:
- (all controls except decorations and text messages)
- ***/
- #define ATTR_LABEL_COLOR 640 /* int (rgb value) */
- #define ATTR_LABEL_TEXT 641 /* (char *) */
- #define ATTR_LABEL_FONT 642 /* (char *) */
- #define ATTR_LABEL_ITALIC 643 /* int (boolean) */
- #define ATTR_LABEL_UNDERLINE 644 /* int (boolean) */
- #define ATTR_LABEL_STRIKEOUT 645 /* int (boolean) */
- #define ATTR_LABEL_POINT_SIZE 646 /* int (1-255) */
- #define ATTR_LABEL_BOLD 647 /* int (boolean) */
- #define ATTR_LABEL_TEXT_LENGTH 648 /* int (not settable) */
- #define ATTR_LABEL_FONT_NAME_LENGTH 650 /* int (not settable) */
- #define ATTR_LABEL_VISIBLE 660 /* int (boolean) */
-
- /*** for controls with labels except command buttons */
- #define ATTR_LABEL_LEFT 670 /* int (-32768 - 32767) */
- #define ATTR_LABEL_TOP 671 /* int (-32768 - 32767) */
- #define ATTR_LABEL_WIDTH 672 /* int (0-32767) */
- #define ATTR_LABEL_HEIGHT 673 /* int (0-32767) */
- #define ATTR_LABEL_BGCOLOR 674 /* int (rgb value) */
- #define ATTR_LABEL_JUSTIFY 675 /* int: VAL_LEFT_JUSTIFIED, ... */
- #define ATTR_LABEL_RAISED 676 /* int (boolean) */
- #define ATTR_LABEL_SIZE_TO_TEXT 649 /* int (boolean) */
-
- /*** for controls with text except graphs and strip charts:
- (controls with text are all controls except:
- timer, decorations, pictures, canvases, LED's,
- and buttons without on/off text) ***/
- #define ATTR_TEXT_COLOR 680 /* int (rgb value) */
- #define ATTR_TEXT_FONT_NAME_LENGTH 681 /* int (not settable) */
- #define ATTR_TEXT_FONT 682 /* (char *) */
- #define ATTR_TEXT_ITALIC 683 /* int (boolean) */
- #define ATTR_TEXT_UNDERLINE 684 /* int (boolean) */
- #define ATTR_TEXT_STRIKEOUT 685 /* int (boolean) */
- #define ATTR_TEXT_POINT_SIZE 686 /* int (1-255) */
- #define ATTR_TEXT_BOLD 687 /* int (boolean) */
-
- /*** for controls with text except graphs, strip charts, ring slides,
- binary switches, and text buttons ***/
- #define ATTR_TEXT_BGCOLOR 690 /* int (rgb value) */
-
- /*** for controls with text except graphs, strip charts, ring slides,
- numeric slides, binary switches, text buttons, amd popup rings ***/
- #define ATTR_TEXT_JUSTIFY 700 /* int: VAL_LEFT_JUSTIFIED, ... */
-
- /*** for controls with variable data types:
- (numerics, rings, binary switches, and list boxes)
- ***/
- #define ATTR_DATA_TYPE 710 /* int: VAL_CHAR, ... */
-
- /*** for label/value controls:
- (slides, rings, binary switches and list boxes)
- ***/
- #define ATTR_CTRL_INDEX 720 /* int: (0 to numItems-1) */
- #define ATTR_DFLT_INDEX 721 /* int: (0 to numItems-1) */
-
-
- /*** for numerics: ***/
- #define ATTR_MAX_VALUE 730 /* same datatype as ctrl */
- #define ATTR_MIN_VALUE 731 /* same datatype as ctrl */
- #define ATTR_DFLT_VALUE 732 /* same datatype as ctrl */
- #define ATTR_INCR_VALUE 733 /* same datatype as ctrl */
- #define ATTR_FORMAT 734 /* int: VAL_HEX_FORMAT, ... */
- #define ATTR_PRECISION 735 /* int (0 - 15)*/
- #define ATTR_SHOW_RADIX 736 /* int (boolean) */
- #define ATTR_CHECK_RANGE 738 /* int: VAL_COERCE, ... */
-
- /*** for numerics and picture rings: ***/
- #define ATTR_SHOW_INCDEC_ARROWS 737 /* int (boolean) */
-
- /*** for strings and text boxes: ***/
- #define ATTR_MAX_ENTRY_LENGTH 760 /* int (-1 means no limit) */
- #define ATTR_TEXT_SELECTION_START 762 /* int */
- #define ATTR_TEXT_SELECTION_LENGTH 763 /* int */
-
- /*** for text messages, strings and text boxes: ***/
- #define ATTR_STRING_TEXT_LENGTH 770 /* int (not settable) */
-
- /*** for text boxes: ***/
- #define ATTR_WRAP_MODE 791 /* int: VAL_CHAR_WRAP, ... */
- #define ATTR_EXTRA_LINES 793 /* int (-1 means no limit) */
- #define ATTR_TOTAL_LINES 794 /* int (not settable) */
- #define ATTR_ENTER_IS_NEWLINE 795 /* int (boolean) */
-
- /*** for text boxes, list boxes and panels: ***/
- #define ATTR_SCROLL_BAR_SIZE 820 /* int: VAL_SMALL_SCROLL_BARS, ... */
- /* (not settable for panels ) */
- /*** for text boxes and list boxes: ***/
- #define ATTR_FIRST_VISIBLE_LINE 790 /* int */
- #define ATTR_VISIBLE_LINES 821 /* int (0 - 500) */
-
- /*** for strings and simple numerics: ***/
- #define ATTR_NO_EDIT_TEXT 840 /* int (boolean) */
-
- /*** for text messages: ***/
- #define ATTR_TEXT_RAISED 860 /* int (boolean) */
- #define ATTR_SIZE_TO_TEXT 861 /* int (boolean) */
-
- /*** for command buttons ***/
- #define ATTR_CMD_BUTTON_COLOR 880 /* int (rgb value) */
-
- /*** for binary switches: ***/
- #define ATTR_ON_VALUE 900 /* same datatype as ctrl */
- #define ATTR_OFF_VALUE 901 /* same datatype as ctrl */
- #define ATTR_ON_VALUE_LENGTH 902 /* int (only if string value) */
- /* (not settable) */
- #define ATTR_OFF_VALUE_LENGTH 903 /* int (only if string value) */
- /* (not settable) */
- #define ATTR_BINARY_SWITCH_COLOR 904 /* int (rgb value) */
-
- /*** for LED's and buttons except command buttons***/
- #define ATTR_ON_COLOR 920 /* int (rgb value) */
- #define ATTR_OFF_COLOR 921 /* int (rgb value) */
-
- /*** for text buttons and binary switches ***/
- #define ATTR_ON_TEXT 940 /* (char *) */
- #define ATTR_OFF_TEXT 941 /* (char *) */
- #define ATTR_ON_TEXT_LENGTH 942 /* int (not settable) */
- #define ATTR_OFF_TEXT_LENGTH 943 /* int (not settable) */
-
- /*** for numerics with digital displays:
- (slides, knobs, dials, meters and gauges) ***/
- #define ATTR_DIG_DISP_TOP 970 /* int (-32768 - 32767) */
- #define ATTR_DIG_DISP_LEFT 971 /* int (-32768 - 32767) */
- #define ATTR_DIG_DISP_WIDTH 972 /* int (0-32767) */
- #define ATTR_DIG_DISP_HEIGHT 973 /* int (0-32767) */
- #define ATTR_SHOW_DIG_DISP 974 /* int (boolean) */
-
- /*** for numeric and ring slides, knobs, dials, meters and gauges: ***/
- #define ATTR_SLIDER_COLOR 980 /* int (rgb value) */
- #define ATTR_NEEDLE_COLOR ATTR_SLIDER_COLOR
- #define ATTR_FILL_HOUSING_COLOR 981 /* int (rgb value) */
- #define ATTR_MARKER_STYLE 982 /* int: VAL_NO_MARKERS, ... */
- #define ATTR_TICK_STYLE 983 /* int: VAL_NO_TICKS, ... */
-
- /*** for numeric and ring slides ***/
- #define ATTR_FILL_COLOR 985 /* int (rgb value) */
- #define ATTR_FILL_OPTION 986 /* int: VAL_NO_FILL, ... */
-
- /** for numeric and ring knobs, dials and gauges: ***/
- #define ATTR_MARKER_START_ANGLE 990 /* int (0-359) */
- #define ATTR_MARKER_END_ANGLE 991 /* int (0-359) */
-
- /** for numeric and ring normal and pointer slides: ***/
- #define ATTR_SLIDER_WIDTH 992 /* int (0-32767) */
- #define ATTR_SLIDER_HEIGHT 993 /* int (0-32767) */
- #define ATTR_SLIDER_LEFT 997 /* int (0-32767) */
- #define ATTR_SLIDER_TOP 998 /* int (0-32767) */
-
- /*** for color numerics: ***/
- #define ATTR_SHOW_MORE_BUTTON 995 /* int (boolean) */
- #define ATTR_SHOW_TRANSPARENT 996 /* int (boolean) */
-
- /*** for menu rings: ***/
- #define ATTR_MENU_ARROW_COLOR 1000 /* int (rgb value) */
-
- /*** for controls and menuItems: ***/
- #define ATTR_SHORTCUT_KEY 1020 /* int */
-
- /*** for menu items: ***/
- #define ATTR_CHECKED 1040 /* int (boolean) */
- #define ATTR_IS_SEPARATOR 1041 /* int (boolean) */
- /* (not settable) */
- #define ATTR_ITEM_NAME 1042 /* (char *) */
- #define ATTR_ITEM_NAME_LENGTH 1043 /* int (not settable) */
- #define ATTR_SUBMENU_ID 1044 /* int (not settable) */
-
- /*** for picture buttons: ***/
- #define ATTR_IMAGE_FILE 1050 /* (char *) */
- #define ATTR_IMAGE_FILE_LENGTH 1051 /* int (not settable) */
- #define ATTR_FAST_DRAW_BUTTON 1052 /* int (boolean) */
- #define ATTR_USE_SUBIMAGE 1053 /* int (boolean) */
- #define ATTR_SUBIMAGE_TOP 1054 /* int (positive or zero) */
- #define ATTR_SUBIMAGE_LEFT 1055 /* int (positive or zero) */
- #define ATTR_SUBIMAGE_WIDTH 1056 /* int (positive or zero) */
- #define ATTR_SUBIMAGE_HEIGHT 1057 /* int (positive or zero) */
-
- /*** for menus: ***/
- #define ATTR_MENU_NAME 1060 /* (char *) */
- #define ATTR_MENU_NAME_LENGTH 1061 /* int (not settable) */
- #define ATTR_NUM_MENU_ITEMS 1062 /* int (not settable) */
-
- /*** for menu bars: ***/
- #define ATTR_NUM_MENUS 1070 /* int (not settable) */
- #define ATTR_DRAW_LIGHT_BEVEL 1071 /* int (boolean) */
- #define ATTR_DIMMER_CALLBACK 1072 /* (int) (really a MenuDimmerCallbackPtr) */
-
- /*** for graphs and strip charts: ***/
- #define ATTR_GRID_COLOR 1080 /* int (rgb value) */
- #define ATTR_PLOT_BGCOLOR 1081 /* int (rgb value) */
- #define ATTR_XYNAME_FONT 1082 /* (char *) */
- #define ATTR_XYNAME_COLOR 1083 /* int (rgb value) */
- #define ATTR_XYLABEL_FONT 1084 /* (char *) */
- #define ATTR_XYLABEL_COLOR 1085 /* int (rgb value) */
- #define ATTR_XNAME 1086 /* (char *) */
- #define ATTR_XGRID_VISIBLE 1087 /* int (boolean) */
- #define ATTR_XLABEL_VISIBLE 1088 /* int (boolean) */
- #define ATTR_XFORMAT 1089 /* int: VAL_ENGINEERING... */
- #define ATTR_XDIVISIONS 1090 /* int (1-100, or VAL_AUTO) */
- #define ATTR_XPRECISION 1091 /* int (0-15, or VAL_AUTO) */
- #define ATTR_XENG_UNITS 1092 /* int (-308 to 308) */
- #define ATTR_YNAME 1093 /* (char *) */
- #define ATTR_YGRID_VISIBLE 1094 /* int (boolean) */
- #define ATTR_YLABEL_VISIBLE 1095 /* int (boolean) */
- #define ATTR_YMAP_MODE 1096 /* int: VAL_LINEAR or VAL_LOG */
- #define ATTR_YFORMAT 1097 /* int: VAL_ENGINEERING... */
- #define ATTR_YDIVISIONS 1098 /* int (1-100, or VAL_AUTO) */
- #define ATTR_YPRECISION 1099 /* int (0-15, or VAL_AUTO) */
- #define ATTR_YENG_UNITS 1100 /* int (-308 to 308) */
- #define ATTR_EDGE_STYLE 1101 /* int: VAL_RAISED_EDGE, ...*/
- #define ATTR_BORDER_VISIBLE 1102 /* int (boolean) */
- #define ATTR_XYNAME_BOLD 1103 /* int (boolean) */
- #define ATTR_XYNAME_ITALIC 1104 /* int (boolean) */
- #define ATTR_XYNAME_UNDERLINE 1105 /* int (boolean) */
- #define ATTR_XYNAME_STRIKEOUT 1106 /* int (boolean) */
- #define ATTR_XYNAME_POINT_SIZE 1107 /* int (1-255) */
- #define ATTR_XNAME_LENGTH 1108 /* int (not settable) */
- #define ATTR_YNAME_LENGTH 1109 /* int (not settable) */
- #define ATTR_XYNAME_FONT_NAME_LENGTH 1110 /* int (not settable) */
- #define ATTR_XYLABEL_BOLD 1111 /* int (boolean) */
- #define ATTR_XYLABEL_ITALIC 1112 /* int (boolean) */
- #define ATTR_XYLABEL_UNDERLINE 1113 /* int (boolean) */
- #define ATTR_XYLABEL_STRIKEOUT 1114 /* int (boolean) */
- #define ATTR_XYLABEL_POINT_SIZE 1115 /* int (1-255) */
- #define ATTR_XYLABEL_FONT_NAME_LENGTH 1116 /* int (not settable) */
- #define ATTR_GRAPH_BGCOLOR 1117 /* int (rgb value) */
- #define ATTR_PLOT_AREA_WIDTH 1118 /* int (not settable) */
- #define ATTR_PLOT_AREA_HEIGHT 1119 /* int (not settable) */
- #define ATTR_INNER_LOG_MARKERS_VISIBLE 1120 /* int (boolean) */
- #define ATTR_YREVERSE 1121 /* int (boolean) */
- #define ATTR_XUSE_LABEL_STRINGS 1122 /* int (boolean) */
- #define ATTR_YUSE_LABEL_STRINGS 1123 /* int (boolean) */
- #define ATTR_XAXIS_GAIN 1124 /* double */
- #define ATTR_YAXIS_GAIN 1125 /* double */
- #define ATTR_XAXIS_OFFSET 1126 /* double */
- #define ATTR_YAXIS_OFFSET 1127 /* double */
-
- /*** for graphs: ***/
- #define ATTR_NUM_CURSORS 1140 /* int (0-10) */
- #define ATTR_XMAP_MODE 1141 /* int: VAL_LINEAR or VAL_LOG */
- #define ATTR_DATA_MODE 1142 /* int: VAL_RETAIN, ... */
- #define ATTR_COPY_ORIGINAL_DATA 1143 /* int (boolean) */
- #define ATTR_XMARK_ORIGIN 1144 /* int (boolean) */
- #define ATTR_YMARK_ORIGIN 1145 /* int (boolean) */
- #define ATTR_SMOOTH_UPDATE 1146 /* int (boolean) */
- #define ATTR_REFRESH_GRAPH 1147 /* int (boolean) */
- #define ATTR_SHIFT_TEXT_PLOTS 1148 /* int (boolean) */
- #define ATTR_ACTIVE_YAXIS 1149 /* int: VAL_LEFT_YAXIS or VAL_RIGHT_YAXIS */
- #define ATTR_XREVERSE 1150 /* int (boolean) */
- #define ATTR_ENABLE_ZOOM_AND_PAN 1151 /* int (boolean) */
-
- /*** for strip charts: ***/
- #define ATTR_NUM_TRACES 1170 /* int (1-64) */
- #define ATTR_POINTS_PER_SCREEN 1171 /* int (3-10000) */
- #define ATTR_SCROLL_MODE 1172 /* int: VAL_SWEEP, ... */
-
- /** for graph cursors: ***/
- #define ATTR_CURSOR_MODE 1200 /* int: VAL_FREE_FORM, ... */
- #define ATTR_CURSOR_POINT_STYLE 1201 /* int: VAL_EMPTY_SQUARE, ... */
- #define ATTR_CROSS_HAIR_STYLE 1202 /* int: VAL_LONG_CROSS, ... */
- #define ATTR_CURSOR_COLOR 1203 /* int (rgb value) */
- #define ATTR_CURSOR_YAXIS 1204 /* int: VAL_LEFT_YAXIS or VAL_RIGHT_YAXIS */
-
- /*** for graph plots and strip chart traces: ***/
- #define ATTR_TRACE_COLOR 1230 /* int (rgb value) */
- #define ATTR_PLOT_STYLE 1231 /* int: VAL_THIN_LINE, ... */
- #define ATTR_TRACE_POINT_STYLE 1232 /* int: VAL_EMPTY_SQUARE, ... */
- #define ATTR_LINE_STYLE 1233 /* int: VAL_SOLID, ... */
- #define ATTR_TRACE_VISIBLE 1234 /* int (boolean) */
-
- /*** for graph plots: ***/
- #define ATTR_TRACE_BGCOLOR 1240 /* int (rgb value) */
- #define ATTR_PLOT_FONT 1241 /* (char *) */
- #define ATTR_PLOT_FONT_NAME_LENGTH 1242 /* int (not settable) */
- #define ATTR_INTERPOLATE_PIXELS 1243 /* int (boolean) */
- #define ATTR_PLOT_ZPLANE_POSITION 1244 /* int (0 - numPlots - 1) */
- #define ATTR_NUM_POINTS 1245 /* int (not settable) */
- #define ATTR_PLOT_XDATA 1246 /* (void *) (not settable) */
- #define ATTR_PLOT_YDATA 1247 /* (void *) (not settable) */
- #define ATTR_PLOT_ZDATA 1248 /* (void *) (not settable) */
- #define ATTR_PLOT_XDATA_TYPE 1249 /* int (not settable) */
- #define ATTR_PLOT_YDATA_TYPE 1250 /* int (not settable) */
- #define ATTR_PLOT_ZDATA_TYPE 1251 /* int (not settable) */
- #define ATTR_PLOT_XDATA_SIZE 1252 /* int (not settable) */
- #define ATTR_PLOT_YDATA_SIZE 1253 /* int (not settable) */
- #define ATTR_PLOT_ZDATA_SIZE 1254 /* int (not settable) */
- #define ATTR_PLOT_YAXIS 1255 /* int: VAL_LEFT_YAXIS or VAL_RIGHT_YAXIS */
- #define ATTR_PLOT_SNAPPABLE 1256 /* int (boolean) */
- #define ATTR_PLOT_ORIGIN 1257 /* int: VAL_LOWER_LEFT,... */
-
- /*** for list boxes: ***/
- #define ATTR_CHECK_MODE 1260 /* int (boolean) */
- #define ATTR_CHECK_STYLE 1261 /* int: VAL_CHECK_MARK, ... */
- #define ATTR_TEXT_CLICK_TOGGLES_CHECK 1262 /* int: (boolean) */
- #define ATTR_HILITE_CURRENT_ITEM 1263 /* int (boolean) */
- #define ATTR_ALLOW_ROOM_FOR_IMAGES 1264 /* int (boolean) */
-
- /*** for timers: ***/
- #define ATTR_INTERVAL 1270 /* double (seconds) */
- #define ATTR_ENABLED 1271 /* int (boolean) */
-
- /*** for pictures and picture rings: ***/
- #define ATTR_FRAME_VISIBLE 1290 /* int (boolean) */
-
- /*** for pictures, picture rings and canvases: ***/
- #define ATTR_PICT_BGCOLOR 1291 /* int (rgb value) */
-
- /*** for pictures, picture buttons and picture rings: ***/
- #define ATTR_FIT_MODE 1292 /* int: VAL_SIZE_TO_IMAGE, ... */
-
- /*** for printing: ***/
- #define ATTR_ORIENTATION 1300 /* int: VAL_PORTRAIT, ... */
- #define ATTR_PAPER_HEIGHT 1301 /* int (millimeter/10), VAL_USE... */
- #define ATTR_PAPER_WIDTH 1302 /* int (millimeter/10), VAL_USE... */
- #define ATTR_NUMCOPIES 1303 /* int (1-100) */
- #define ATTR_XRESOLUTION 1304 /* int (dpi), VAL_USE... */
- #define ATTR_YRESOLUTION 1305 /* int (dpi), VAL_USE... */
- #define ATTR_XOFFSET 1306 /* int (millimeter/10), VAL_USE... */
- #define ATTR_YOFFSET 1307 /* int (millimeter/10), VAL_USE... */
- #define ATTR_COLOR_MODE 1308 /* int: VAL_BW, ... */
- #define ATTR_DUPLEX 1309 /* int: VAL_SIMPLEX, ... */
- #define ATTR_EJECT_AFTER 1310 /* int (boolean) */
- #define ATTR_TEXT_WRAP 1311 /* int (boolean) */
- #define ATTR_TAB_INTERVAL 1312 /* int (1-80) */
-
- /*** for canvases: ***/
- #define ATTR_PEN_COLOR 1350 /* int (rgb value) */
- #define ATTR_PEN_FILL_COLOR 1351 /* int (rgb value) */
- #define ATTR_PEN_MODE 1354 /* int: VAL_COPY_MODE, ... */
- #define ATTR_PEN_WIDTH 1355 /* int: (1-255) */
- #define ATTR_PEN_PATTERN 1356 /* unsigned char[8] */
- #define ATTR_PEN_STYLE 1357 /* int: VAL_SOLID, ... */
- #define ATTR_DRAW_POLICY 1370 /* int: VAL_UPDATE_IMMEDIATELY, ... */
- #define ATTR_OVERLAPPED_POLICY 1373 /* int: VAL_DRAW_ON_TOP or VAL_DEFER_DRAWING */
- #define ATTR_XCOORD_AT_ORIGIN 1374 /* double */
- #define ATTR_YCOORD_AT_ORIGIN 1375 /* double */
- #define ATTR_XSCALING 1376 /* double */
- #define ATTR_YSCALING 1377 /* double */
-
- /*** for Set/GetSystemAttribute: ***/
- #define ATTR_ALLOW_UNSAFE_TIMER_EVENTS 1400 /* int (boolean) */
- #define ATTR_REPORT_LOAD_FAILURE 1405 /* int (boolean) */
- #define ATTR_ALLOW_MISSING_CALLBACKS 1410 /* int (boolean) */
- #define ATTR_SUPPRESS_EVENT_PROCESSING 1415 /* int (boolean) */
- #define ATTR_TASKBAR_BUTTON_VISIBLE 1420 /* int (boolean) */
- #define ATTR_TASKBAR_BUTTON_TEXT 1425 /* (char*) */
-
- /* */
- /* ATTRIBUTE VALUES: (primarily for use in the set and get attribute functions) */
- /* */
-
- /*** control data types (for ATTR_DATA_TYPE): ***/
- #define VAL_CHAR 0L
- #define VAL_INTEGER 1L
- #define VAL_SHORT_INTEGER 2L
- #define VAL_FLOAT 3L
- #define VAL_DOUBLE 4L
- #define VAL_STRING 5L
- #define VAL_UNSIGNED_SHORT_INTEGER 6L
- #define VAL_UNSIGNED_INTEGER 7L
- #define VAL_UNSIGNED_CHAR 8L
- #define VAL_NO_TYPE 9L /* for internal use only */
-
- /*** special position values: ***/
- #define VAL_AUTO_CENTER 0x80000000L /* for ATTR_LABEL_TOP, ATTR_, ... */
- /* SetPanelPos, NewPanel, ... */
- #define VAL_RIGHT_ANCHOR 0x8000000FL /* for ATTR_LABEL_LEFT */
- #define VAL_LEFT_ANCHOR 0x8000000EL /* for ATTR_LABEL_LEFT */
- #define VAL_KEEP_SAME_POSITION 0x80000001L /* for DuplicateCtrl */
- /* and DuplicatePanel */
-
- /*** justification values (for ATTR_LABEL_JUSTIFY and ATTR_TEXT_JUSTIFY): ***/
- #define VAL_LEFT_JUSTIFIED 0L
- #define VAL_RIGHT_JUSTIFIED 0x10L
- #define VAL_CENTER_JUSTIFIED 0x20L
-
- /*** RGB colors (for all color attributes): ***/
- #define VAL_RED 0xFF0000L /* 16 standard colors */
- #define VAL_GREEN 0x00FF00L
- #define VAL_BLUE 0x0000FFL
- #define VAL_CYAN 0x00FFFFL
- #define VAL_MAGENTA 0xFF00FFL
- #define VAL_YELLOW 0xFFFF00L
- #define VAL_DK_RED 0x800000L
- #define VAL_DK_BLUE 0x000080L
- #define VAL_DK_GREEN 0x008000L
- #define VAL_DK_CYAN 0x008080L
- #define VAL_DK_MAGENTA 0x800080L
- #define VAL_DK_YELLOW 0x808000L
- #define VAL_LT_GRAY 0xC0C0C0L
- #define VAL_DK_GRAY 0x808080L
- #define VAL_BLACK 0x000000L
- #define VAL_WHITE 0xFFFFFFL
-
- #define VAL_PANEL_GRAY VAL_LT_GRAY
- #define VAL_GRAY 0xA0A0A0L
- #define VAL_OFFWHITE 0xE0E0E0L
- #define VAL_TRANSPARENT 0x1000000L
-
- /*** platform independent fonts: ***/
- #define VAL_MENU_FONT "NIMenu"
- #define VAL_DIALOG_FONT "NIDialog"
- #define VAL_EDITOR_FONT "NIEditor"
- #define VAL_APP_FONT "NIApp"
- #define VAL_MESSAGE_BOX_FONT "NIMessageBox"
-
- /*** platform independent meta fonts: ***/
- #define VAL_MENU_META_FONT "NIMenuMetaFont"
- #define VAL_DIALOG_META_FONT "NIDialogMetaFont"
- #define VAL_EDITOR_META_FONT "NIEditorMetaFont"
- #define VAL_APP_META_FONT "NIAppMetaFont"
- #define VAL_MESSAGE_BOX_META_FONT "NIMessageBoxMetaFont"
-
- /*** CVI supplied meta fonts: ***/
- #define VAL_7SEG_META_FONT "NI7SegMetaFont"
- #define VAL_SYSTEM_META_FONT "NISystemMetaFont"
-
- /*** wrap modes (for ATTR_WRAP_MODE): ***/
- #define VAL_CHAR_WRAP 1L
- #define VAL_LINE_WRAP 2L
- #define VAL_WORD_WRAP 4L
-
- /*** numeric display formats: ***/
- #define VAL_FLOATING_PT_FORMAT 0xFFF0
- #define VAL_SCIENTIFIC_FORMAT 0xFFF1
- #define VAL_ENGINEERING_FORMAT 0xFFF2
- #define VAL_DECIMAL_FORMAT 64L /* not valid for graph axis format */
- #define VAL_HEX_FORMAT 66L /* not valid for graph axis format */
- #define VAL_OCTAL_FORMAT 67L /* not valid for graph axis format */
- #define VAL_BINARY_FORMAT 68L /* not valid for graph axis format */
-
- /*** key masks:
- either the ascii field or the virtual key field will be all zeros.
- ***/
- #define VAL_ASCII_KEY_MASK (0xFF)
- #define VAL_VKEY_MASK (0xFF << 8)
- #define VAL_MODIFIER_KEY_MASK (0xFF << 16)
-
- /*** key modifiers: ***/
- #define VAL_SHIFT_MODIFIER (1L << 16)
- #define VAL_UNDERLINE_MODIFIER (1L << 17)
- #define VAL_MENUKEY_MODIFIER (1L << 18)
- #define VAL_SHIFT_AND_MENUKEY (VAL_SHIFT_MODIFIER | VAL_MENUKEY_MODIFIER)
-
- /*** virtual key codes: ***/
- #define VAL_FWD_DELETE_VKEY (1L << 8) /* not available on SPARC */
- #define VAL_BACKSPACE_VKEY (2L << 8) /* the delete key on SPARC */
- #define VAL_ESC_VKEY (3L << 8)
- #define VAL_TAB_VKEY (4L << 8)
- #define VAL_ENTER_VKEY (5L << 8)
- #define VAL_UP_ARROW_VKEY (6L << 8)
- #define VAL_DOWN_ARROW_VKEY (7L << 8)
- #define VAL_LEFT_ARROW_VKEY (8L << 8)
- #define VAL_RIGHT_ARROW_VKEY (9L << 8)
- #define VAL_INSERT_VKEY (10L << 8)
- #define VAL_HOME_VKEY (11L << 8)
- #define VAL_END_VKEY (12L << 8)
- #define VAL_PAGE_UP_VKEY (13L << 8)
- #define VAL_PAGE_DOWN_VKEY (14L << 8)
- #define VAL_F1_VKEY (15L << 8)
- #define VAL_F2_VKEY (16L << 8)
- #define VAL_F3_VKEY (17L << 8)
- #define VAL_F4_VKEY (18L << 8)
- #define VAL_F5_VKEY (19L << 8)
- #define VAL_F6_VKEY (20L << 8)
- #define VAL_F7_VKEY (21L << 8)
- #define VAL_F8_VKEY (22L << 8)
- #define VAL_F9_VKEY (23L << 8)
- #define VAL_F10_VKEY (24L << 8)
- #define VAL_F11_VKEY (25L << 8)
- #define VAL_F12_VKEY (26L << 8)
- #define VAL_POPUP_MENUBAR_VKEY (37L << 8) /* for fake key stroke only */
-
- /*** range checking (for ATTR_CHECK_RANGE): ***/
- #define VAL_COERCE 0L
- #define VAL_IGNORE 1L
- #define VAL_NOTIFY 2L
-
- /*** fill options (for ATTR_FILL_OPTION): ***/
- #define VAL_NO_FILL 5L
- #define VAL_TOP_FILL 2L
- #define VAL_BOTTOM_FILL 1L
- #define VAL_RIGHT_FILL VAL_TOP_FILL
- #define VAL_LEFT_FILL VAL_BOTTOM_FILL
-
- /*** marker styles (for ATTR_MARKER_STYLE): ***/
- #define VAL_NO_MARKERS 3L
- #define VAL_NO_INNER_MARKERS 2L
- #define VAL_FULL_MARKERS 1L
-
- /*** tick styles (for ATTR_TICK_STYLE): ***/
- #define VAL_NO_TICKS 3L
- #define VAL_NO_MINOR_TICKS 0L
- #define VAL_FULL_TICKS 6L
-
- /*** control mode values (for ATTR_CTRL_MODE): ***/
- #define VAL_INDICATOR 0L
- #define VAL_HOT 1L
- #define VAL_NORMAL 2L
- #define VAL_VALIDATE 3L
-
- /*** panel frame styles (for ATTR_FRAME_STYLE): ***/
- #define VAL_OUTLINED_FRAME 1L
- #define VAL_BEVELLED_FRAME 2L
- #define VAL_RAISED_FRAME 3L
- #define VAL_HIDDEN_FRAME 4L
- #define VAL_STEP_FRAME 5L
- #define VAL_RAISED_OUTLINED_FRAME 6L
-
- /*** top level panel zoom states (for ATTR_WINDOW_ZOOM) ***/
- #define VAL_NO_ZOOM 0L
- #define VAL_MINIMIZE 1L
- #define VAL_MAXIMIZE 2L
-
- /*** graph border styles (for ATTR_EDGE_STYLE): ***/
- #define VAL_RAISED_EDGE 1L
- #define VAL_FLAT_EDGE 2L
- #define VAL_RECESSED_EDGE 3L
-
- /*** images on list box items (for SetListItemImage): ***/
- #define VAL_NO_IMAGE 0L
- #define VAL_FOLDER 1L
- #define VAL_OPEN_FOLDER 2L
- #define VAL_CURRENT_FOLDER 3L
-
- /*** list box check styles (for ATTR_CHECK_STYLE): ***/
- #define VAL_CHECK_MARK 0L
- #define VAL_CHECK_BOX 1L
-
- /*** graph, strip chart and graph cursor point styles: ***/
- /*** (for ATTR_CURSOR_POINT_STYLE and ATTR_TRACE_POINT_STYLE) ***/
- #define VAL_EMPTY_SQUARE 0L
- #define VAL_SOLID_SQUARE 1L
- #define VAL_ASTERISK 2L
- #define VAL_DOTTED_EMPTY_SQUARE 3L
- #define VAL_DOTTED_SOLID_SQUARE 4L
- #define VAL_SOLID_DIAMOND 5L
- #define VAL_EMPTY_SQUARE_WITH_X 6L
- #define VAL_EMPTY_SQUARE_WITH_CROSS 7L
- #define VAL_BOLD_X 8L
- #define VAL_SMALL_SOLID_SQUARE 9L
- #define VAL_SIMPLE_DOT 10L
- #define VAL_EMPTY_CIRCLE 11L
- #define VAL_SOLID_CIRCLE 12L
- #define VAL_DOTTED_SOLID_CIRCLE 13L
- #define VAL_DOTTED_EMPTY_CIRCLE 14L
- #define VAL_BOLD_CROSS 15L
- #define VAL_CROSS 16L
- #define VAL_SMALL_CROSS 17L
- #define VAL_X 18L
- #define VAL_SMALL_X 19L
- #define VAL_DOTTED_SOLID_DIAMOND 20L
- #define VAL_EMPTY_DIAMOND 21L
- #define VAL_DOTTED_EMPTY_DIAMOND 22L
- #define VAL_SMALL_EMPTY_SQUARE 23L
- #define VAL_NO_POINT 24L
-
- /*** graph plot styles (for ATTR_PLOT_STYLE): ***/
- #define VAL_THIN_LINE 0L
- #define VAL_CONNECTED_POINTS 1L
- #define VAL_SCATTER 2L
- #define VAL_VERTICAL_BAR 3L /* not valid for strip charts */
- #define VAL_HORIZONTAL_BAR 4L /* not valid for strip charts */
- #define VAL_FAT_LINE 5L
- #define VAL_THIN_STEP 6L
- #define VAL_FAT_STEP 7L
- #define VAL_BASE_ZERO_VERTICAL_BAR 8L /* not valid for strip charts */
- #define VAL_BASE_ZERO_HORIZONTAL_BAR 9L /* not valid for strip charts */
-
- /*** graph, strip chart, and canvas line styles (for ATTR_LINE_STYLE and ATTR_PEN_STYLE): ***/
- #define VAL_SOLID 0L
- #define VAL_DASH 1L
- #define VAL_DOT 2L
- #define VAL_DASH_DOT 3L
- #define VAL_DASH_DOT_DOT 4L
-
- /*** text and bitmap plot origins (for ATTR_PLOT_ORIGIN, CanvasDrawText(), ...): ***/
- #define VAL_LOWER_LEFT 1L
- #define VAL_CENTER_LEFT 2L
- #define VAL_UPPER_LEFT 3L
- #define VAL_LOWER_CENTER 4L
- #define VAL_CENTER 5L
- #define VAL_UPPER_CENTER 6L
- #define VAL_LOWER_RIGHT 7L
- #define VAL_CENTER_RIGHT 8L
- #define VAL_UPPER_RIGHT 9L
-
- /*** graph and strip chart scale modes: ***/
- /*** (for ATTR_XMAP_MODE or ATTR_YMAP_MODE) ***/
- #define VAL_LINEAR 0L
- #define VAL_LOG 1L
-
- /*** graph and strip chart auto divisions and auto precision: ***/
- /*** (for ATTR_XDIVISIONS, ATTR_XPRECISION, ATTR_YDIVISIONS, ATTR_YPRECISION) ***/
- #define VAL_AUTO -1L
-
- /*** graph data modes (for ATTR_DATA_MODE): ***/
- #define VAL_RETAIN 0L
- #define VAL_DISCARD 1L
-
- /*** graph cursor modes (for ATTR_CURSOR_MODE): ***/
- #define VAL_FREE_FORM 0L
- #define VAL_SNAP_TO_POINT 1L
-
- /*** graph cursor cross hair styles (for ATTR_CROSS_HAIR_STYLE): ***/
- #define VAL_LONG_CROSS 0L
- #define VAL_VERTICAL_LINE 1L
- #define VAL_HORIZONTAL_LINE 2L
- #define VAL_NO_CROSS 3L
- #define VAL_SHORT_CROSS 4L
-
- /*** strip chart scroll modes (for ATTR_SCROLL_MODE): ***/
- #define VAL_SWEEP 0L
- #define VAL_CONTINUOUS 1L
- #define VAL_BLOCK 2L
-
- /*** graph and strip chart scaling modes: ***/
- #define VAL_NO_CHANGE -1L
- #define VAL_MANUAL 0L
- #define VAL_AUTOSCALE 1L
- #define VAL_LOCK 2L
-
- /*** plot deletion options: ***/
- #define VAL_DELAYED_DRAW 0L
- #define VAL_IMMEDIATE_DRAW 1L
- #define VAL_NO_DRAW 2L
-
- /*** mouse cursors (for ATTR_MOUSE_CURSOR, SetMouseCursor): ***/
- #define VAL_DEFAULT_CURSOR -1L
- #define VAL_CHECK_CURSOR 11L
- #define VAL_CROSS_HAIR_CURSOR 12L
- #define VAL_BOX_CURSOR 13L
- #define VAL_POINTING_FINGER_CURSOR 14L
- #define VAL_OPEN_HAND_CURSOR 15L
- #define VAL_QUESTION_MARK_CURSOR 16L
- #define VAL_HOUR_GLASS_CURSOR 17L
- #define VAL_HIDDEN_CURSOR 18L
- #define VAL_SIZE_EW_CURSOR 19L
- #define VAL_SIZE_NS_CURSOR 20L
- #define VAL_SIZE_NW_SE_CURSOR 21L
- #define VAL_SIZE_NE_SW_CURSOR 22L
-
- /*** scroll bar options (for ATTR_SCROLL_BARS): ***/
- #define VAL_NO_SCROLL_BARS 0L
- #define VAL_HORIZ_SCROLL_BAR 1L
- #define VAL_VERT_SCROLL_BAR 2L
- #define VAL_BOTH_SCROLL_BARS (2L|1L)
-
- /*** scroll bar sizes (for ATTR_SCROLL_BAR_SIZE): ***/
- #define VAL_SMALL_SCROLL_BARS 8L
- #define VAL_LARGE_SCROLL_BARS 16L
-
- /*** print report masks (returned by PrintPanel() and PrintCtrl()): ***/
- #define VAL_TOO_MANY_COPIES (1<<0)
- #define VAL_NO_MULTIPLE_COPIES (1<<1)
- #define VAL_NO_DUPLEX (1<<2)
- #define VAL_NO_LANDSCAPE (1<<3)
- #define VAL_CANT_FORCE_MONO (1<<4)
- #define VAL_NO_SUCH_XRESOLUTION (1<<5)
- #define VAL_NO_MULTIPLE_XRESOLUTIONS (1<<6)
- #define VAL_NO_SUCH_YRESOLUTION (1<<7)
- #define VAL_NO_MULTIPLE_YRESOLUTIONS (1<<8)
- #define VAL_NO_SEPARATE_YRESOLUTION (1<<9)
- #define VAL_USER_CANCEL (1<<10)
-
- /*** ctrl Id's for the generic popup (used in GenericMessagePopup()): ***/
- #define VAL_GENERIC_POPUP_NO_CTRL 0
- #define VAL_GENERIC_POPUP_BTN1 1
- #define VAL_GENERIC_POPUP_BTN2 2
- #define VAL_GENERIC_POPUP_BTN3 3
- #define VAL_GENERIC_POPUP_INPUT_STRING 4
-
- /*** picture fit modes (for ATTR_FIT_MODE): ***/
- #define VAL_SIZE_TO_IMAGE 0L
- #define VAL_SIZE_TO_PICTURE 1L
- #define VAL_PICT_CORNER 2L
- #define VAL_PICT_CENTER 3L
- #define VAL_PICT_TILE 4L
-
- /*** printing scope options (passed to PrintPanel()): ***/
- #define VAL_FULL_PANEL 0L
- #define VAL_VISIBLE_AREA 1L
-
- /*** file dialog button labels: ***/
- #define VAL_OK_BUTTON 0
- #define VAL_SAVE_BUTTON 1
- #define VAL_SELECT_BUTTON 2
- #define VAL_LOAD_BUTTON 3
-
- /*** FileSelectPopup return values: ***/
- #define VAL_NO_FILE_SELECTED 0
- #define VAL_EXISTING_FILE_SELECTED 1
- #define VAL_NEW_FILE_SELECTED 2
-
- /*** DirSelectPopup return values: ***/
- #define VAL_NO_DIRECTORY_SELECTED 0
- #define VAL_DIRECTORY_SELECTED 1
-
- /*** orientation modes (for ATTR_ORIENTATION): ***/
- #define VAL_PORTRAIT 1
- #define VAL_LANDSCAPE 2
-
- /*** color modes (for ATTR_COLOR_MODE): ***/
- #define VAL_BW 0
- #define VAL_GRAYSCALE 1
- #define VAL_COLOR 2
-
- /*** duplex modes (for ATTR_DUPLEX): ***/
- #define VAL_SIMPLEX 1
- #define VAL_HORIZDUPLEX 3
- #define VAL_VERTDUPLEX 2
-
- /*** special value for ATTR_PAPER_HEIGHT, ATTR_PAPER_WIDTH ***/
- #define VAL_INTEGRAL_SCALE 0L
-
- /*** special value for ATTR_[X,Y]OFFSET, ATTR_[X,Y]RESOLUTION, ***/
- /*** ATTR_PAPER_HEIGHT and ATTR_PAPER_WIDTH ***/
- #define VAL_USE_PRINTER_DEFAULT -1L
-
- /*** SetSleepPolicy() parameters ***/
- #define VAL_SLEEP_NONE 1
- #define VAL_SLEEP_SOME 2
- #define VAL_SLEEP_MORE 3
-
-
- /*** graph and chart axes (for Axis functions and ATTR_..._YAXIS): ***/
- #define VAL_XAXIS 0 /* for graphs and strip charts */
- #define VAL_LEFT_YAXIS 1 /* for graphs and strip charts */
- #define VAL_RIGHT_YAXIS 2 /* for graphs only */
-
- /*** pen modes for ATTR_PEN_MODE ***/ /* R = Result, P = Pen, S = Screen */
- #define VAL_COPY_MODE 1 /* R = P */
- #define VAL_OR_MODE 2 /* R = P | S */
- #define VAL_XOR_MODE 3 /* R = P ^ S */
- #define VAL_AND_NOT_MODE 4 /* R = ~P & S */
- #define VAL_NOT_COPY_MODE 5 /* R = ~P */
- #define VAL_OR_NOT_MODE 6 /* R = ~P | S */
- #define VAL_NOT_XOR_MODE 7 /* R = ~(P ^ S) */
- #define VAL_AND_MODE 8 /* R = P & S */
-
- /*** values for the canvas control's ATTR_OVERLAPPED_POLICY ***/
- #define VAL_DRAW_ON_TOP 1
- #define VAL_DEFER_DRAWING 2
-
- /*** values for the canvas control's ATTR_DRAW_POLICY ***/
- #define VAL_UPDATE_IMMEDIATELY 1
- #define VAL_MARK_FOR_UPDATE 2
- #define VAL_DIRECT_TO_SCREEN 3
-
- /*** values for the drawMode parameter for canvas control drawing functions ***/
- #define VAL_DRAW_FRAME 1
- #define VAL_DRAW_INTERIOR 2
- #define VAL_DRAW_FRAME_AND_INTERIOR 3
-
-
- /*** special values for use in rectangle heights and widths ***/
- #define VAL_TO_EDGE -1
- #define VAL_KEEP_SAME_SIZE -2
-
- #define VAL_EMPTY_RECT MakeRect(0,0,0,0)
- #define VAL_ENTIRE_OBJECT MakeRect(0,0,VAL_TO_EDGE, VAL_TO_EDGE)
-
-
- /* */
- /* EVENTS: (for use in callback functions) */
- /* Event numbers 1000 to 10000 are reserved for use by user programs (see QueueUserEvent()) */
- /* Note: for callback functions: return 1 (true) to swallow mouse and key events. */
- /* */
-
- #define EVENT_NONE 0
- #define EVENT_COMMIT 1 /* for menu selection events calling the main callback: */
- /* eventData1 = panel for menu selections, */
- /* eventData2 = (int)(callbackData for menuItem) */
- #define EVENT_VAL_CHANGED 2
- #define EVENT_LEFT_CLICK 3 /* eventData1 = mouse vertical pos., */
- /* eventData2 = mouse horizontal pos. */
- #define EVENT_LEFT_DOUBLE_CLICK 4 /* eventData1 = mouse vertical pos., */
- /* eventData2 = mouse horizontal pos. */
- #define EVENT_RIGHT_CLICK 5 /* eventData1 = mouse vertical pos., */
- /* eventData2 = mouse horizontal pos. */
- #define EVENT_RIGHT_DOUBLE_CLICK 6 /* eventData1 = mouse vertical pos., */
- /* eventData2 = mouse horizontal pos. */
- #define EVENT_KEYPRESS 7 /* eventData1 = keypressed, */
- /* eventData2 = pointer to keypressed */
- #define EVENT_GOT_FOCUS 8 /* eventData1 = old control with focus */
- #define EVENT_LOST_FOCUS 9 /* eventData1 = new control with focus */
- #define EVENT_IDLE 10
- #define EVENT_CLOSE 11
- #define EVENT_PANEL_SIZE 12
- #define EVENT_PANEL_MOVE 13
- #define EVENT_END_TASK 14 /* sent to the MainCallback function when the system wants to quit */
- /* return 0L to quit, 1L to abort the termination */
- #define EVENT_TIMER_TICK 15 /* eventData1 = ptr to current time (*double) */
- /* eventData2 = ptr to time since the control last
- received EVENT_TIMER_TICK (*double) */
- #define EVENT_DISCARD 16 /* sent to panels and controls when they are discarded */
-
- #ifdef WIN32
- #pragma pack(4)
- #endif
-
- /*** color map used by intensity plots ***/
- typedef struct
- {
- union
- {
- char valChar;
- int valInt;
- short valShort;
- float valFloat;
- double valDouble;
- unsigned char valUChar;
- unsigned long valULong;
- unsigned short valUShort;
- } dataValue;
- int color;
- } ColorMapEntry;
-
- /*** Rect and Point types used by Canvas Controls ***/
- typedef struct
- {
- int top;
- int left;
- int height;
- int width;
- } Rect;
-
- typedef struct
- {
- int x;
- int y;
- } Point;
-
- #ifdef WIN32
- #pragma pack()
- #endif
-
- /*** errors returned by User Interface Library functions: ***/
- typedef enum
- {
- UIENoError = 0,
- UIEManagerCouldNotOpen = -1,
- UIESystemFontCouldNotBeLoaded = -2,
- UIEOperationInvalidDuringPopUp = -3,
- UIEHandleInvalid = -4,
- UIEAttemptToMovePanelToInvalidLocation = -5,
- UIEAttemptedToMakeInoperableCtrlActive = -6,
- UIEOperationRequirePanelBeLoaded = -7,
- UIEOperationRequiresPopUpBeActive = -8,
- UIEOperationRequiresMenuBeLoaded = -9,
- UIEControlNotTypeExpectedByFunction = -10,
- UIEInvalidMenuItemId = -11,
- UIEOutOfMemory = -12,
- UIEInvalidControlId = -13,
- UIEValueIsInvalidOrOutOfRange = -14,
- UIEFileIsNotUserInterfaceFileOrIsBad = -15,
- UIEFileFormatIsOutOfDate = -16,
- UIEImageIsBadOrNotSupported = -17,
- UIENoUserEventPossibleWithCurrentSetup = -18,
- UIEUnableToOpenFile = -19,
- UIEErrorReadingFile = -20,
- UIEErrorWritingFile = -21,
- UIEErrorClosingFile = -22,
- UIEPanelStateFileHasInvalidFormat = -23,
- UIEInvalidIDinResourceFile = -24,
- UIEHardCopyError = -25,
- UIEInvalidDefaultDirSelectedInFSPopup = -26,
- UIEOperationIsInvalidForSpecifiedObject = -27,
- UIECantFindMenuString = -28,
- UIEPalleteItemsMustBeAddedAtEnd = -29,
- UIEMaxNumberOfMenusPerBarExceeded = -30,
- UIECantSetSeparatorCheckMark = -31,
- UIESeparatorCantHaveSubMenu = -32,
- UIEItemMustBeASeparator = -33,
- UIEItemCantBeASeparator = -34,
- UIEItemAlreadyHasSubMenu = -35,
- UIEItemDoesNotHaveASubMenu = -36,
- UIECtrlIdIsNotAMenuOrMenuItemIdOrNull = -37,
- UIECtrlIdIsNotAMenuOrMenuItemId = -38,
- UIENotASubMenuId = -39,
- UIEInvalidMenuId = -40,
- UIENotAMenuBarHandle = -41,
- UIENotAPanelHandle = -42,
- UIEOperationInvalidWhileThisPopupIsActive = -43,
- UIEAttributeNotAppropriateForSpecifiedControlOrPanelOrMenu = -44,
- UIEInvalidControlType = -45,
- UIEInvalidAttribute = -46,
- UIESlideMustHaveFillAboveOrBelow = -47,
- UIEScaleMustHaveFillAboveOrBelow = -48,
- UIESlideMustBeLinear = -49,
- UIEScaleMustBeLinear = -50,
- UIESlideDoesntHaveIncDecArrows = -51,
- UIEScaleDoesntHaveIncDecArrows = -52,
- UIEInvalidDataType = -53,
- UIEInvalidAttrForDataType = -54,
- UIEIndexOutOfRange = -55,
- UIENoItemsInList = -56,
- UIEBufTooSmall = -57,
- UIECtrlDoesNotHaveAValue = -58,
- UIEValueNotInListCtrl = -59,
- UIENotListCtrl = -60,
- UIENotListCtrlOrBinary = -61,
- UIENotStringDataType = -62,
- UIEAttributeNotSettable = -63,
- UIEInvalidCtrlMode = -64,
- UIENullPointerPassed = -65,
- UIECantSetGetTextBGColorOfMenuRing = -66,
- UIERingMustBeMenuStyle = -67,
- UIECantColorTextTransparent = -68,
- UIEInvalidValueInListControl = -69,
- UIEInvalidTabbingOrderPosition = -70,
- UIECantSetTabOrderOfAnIndicator = -71,
- UIENotAValidNumber = -72,
- UIEPanelDoesntHaveAMenuBar = -73,
- UIENotTextBox = -74,
- UIEInvalidChartStyle = -75,
- UIEInvalidImageType = -76,
- UIENotATopLevelPanelAttribute = -77,
- UIEListCtrlNotInCheckMode = -78,
- UIEPanelDataDoesNotFitIntoPanel = -79,
- UIEAxisRangeError = -80,
- UIENonExistantCursor = -81,
- UIENotAValidPlot = -82,
- UIEOutsidePlotArea = -83,
- UIEStringTooLarge = -84,
- UIECallbackFuncIsWrongType = -85,
- UIECantFindCallbackFunc = -86,
- UIEZeroCursors = -87,
- UIEInvalidChartScaling = -88,
- UIEFontNotInFontTable = -89,
- UIEBadAttributeValue = -90,
- UIETooManyFilesOpen = -91,
- UIEfEOF = -92,
- UIEIOError = -93,
- UIEFileWasNotFound = -94,
- UIEAccessDenied = -95,
- UIEFileAccessNotEnabled = -96,
- UIEDiskFull = -97,
- UIEFileAlreadyExists = -98,
- UIEFileAlreadyOpen = -99,
- UIEBadPathnameMsg = -100,
- UIEResourceNotFound = -101,
- UIEOldUnsupportedUIResourceFormat = -102,
- UIEFileIsCorrupted = -103,
- UIEOperationFailed = -104,
- UIESlideMustBeRound = -105,
- UIEScaleMustBeRound = -106,
- UIECountOutOfRange = -107,
- UIENotAValidKeycode = -108,
- UIESlideDoesntHaveFrame = -109,
- UIECantColorPanelBGTransparent = -110,
- UIECantColorTitleBGTransparent = -111,
- UIEMemPrintError = -112,
- UIEReservedHotKey = -113,
- UIEFileFormatIsTooNew = -114,
- UIESystemPrintError = -115,
- UIEDriverPrintError = -116,
- UIEDefCallBackQueueFull = -117,
- UIEInvalidMouseCursor = -118,
- UIEPrintReentranceError = -119,
- UIEOutOfGDISpace = -120,
- UIEHiddenPanelError = -121,
- UIEHiddenCtrlError = -122,
- UIEInvalidAttrForPlot = -123,
- UIECantColorPlotTransparent = -124,
- UIEInvalidColor = -125,
- UIECallbackNameIsAmbiguous = -126,
- UIEInvalidBitmap = -127,
- UIENoImagePresent = -128
- } UIError;
-
-
- /* */
- /* User Interface Library Functions */
- /* */
-
- /*** for panels: ***/
- int CVIFUNC LoadPanel(int parentPanel, const char *fileName, int panelResourceId); /* returns a panel */
- int CVIFUNC LoadPanelEx(int parentPanel, const char *fileName, int panelResourceId,
- void *hInstance); /* returns a panel */
- int CVIFUNC NewPanel(int parentPanel, const char *panelTitle, int top, int left,
- int height, int width); /* returns a panel */
- int CVIFUNC DuplicatePanel(int destinationParentPanel, int panel, const char *dupName,
- int top, int left); /* returns a panel */
- int CVIFUNC DiscardPanel(int panel);
- int CVIFUNC DisplayPanel(int panel);
- int CVIFUNC HidePanel(int panel);
- int CVIFUNC GetActivePanel(void); /* returns a panel */
- int CVIFUNC SetActivePanel(int panel);
- int CVIFUNC ValidatePanel(int panel, int *valid);
- int CVIFUNC DefaultPanel(int panel);
- int CVIFUNC SavePanelState(int panel, const char *fileName, int index);
- int CVIFUNC RecallPanelState(int panel, const char *fileName, int index);
- int CVIFUNC SetPanelPos(int panel, int top, int left);
-
- /*** for controls: ***/
- int CVIFUNC NewCtrl(int panel, int style, const char *ctrlLabel, int top, int left); /* returns a ctrl */
- int CVIFUNC DuplicateCtrl(int sourcePanel, int control, int destinationPanel,
- const char *labelOfDuplicate, int top, int left); /* returns ctrl */
- int CVIFUNC DiscardCtrl(int panel, int control);
- int CVIFUNC SetActiveCtrl(int panel, int control);
- int CVIFUNC GetActiveCtrl(int panel); /* returns ctrl */
- int CVIFUNC GetCtrlBoundingRect(int panel, int control, int *top, int *left,
- int *height, int *width);
- int CVIFUNC_C SetCtrlVal(int panel, int control, ...);
- int CVIFUNC GetCtrlVal(int panel, int control, void *value );
- int CVIFUNC DefaultCtrl(int panel, int control);
-
- /*** for list controls: (list controls are rings and list boxes) ***/
- int CVIFUNC_C ReplaceListItem(int panel, int control, int index, const char *itemLabel, ...);
- int CVIFUNC_C InsertListItem(int panel, int control, int index, const char *itemLabel, ...);
- int CVIFUNC DeleteListItem(int panel, int control, int index, int count);
- int CVIFUNC GetValueFromIndex(int panel, int control, int index, void *itemValue);
- int CVIFUNC GetValueLengthFromIndex(int panel, int control, int index, int *length);
- int CVIFUNC_C GetIndexFromValue(int panel, int control, int *index, ...);
- int CVIFUNC GetCtrlIndex(int panel, int control, int *index);
- int CVIFUNC SetCtrlIndex(int panel, int control, int index);
- int CVIFUNC ClearListCtrl(int panel, int control);
- int CVIFUNC GetNumListItems(int panel, int control, int *count);
- int CVIFUNC GetLabelFromIndex(int panel, int control, int index, char *itemLabel);
- int CVIFUNC GetLabelLengthFromIndex(int panel, int control, int index, int *length);
-
- /*** for list boxes: ***/
- int CVIFUNC SetListItemImage(int panel, int control, int index, int image);
- int CVIFUNC GetListItemImage(int panel, int control, int index, int *image);
- int CVIFUNC IsListItemChecked(int panel, int control, int index, int *checked);
- int CVIFUNC CheckListItem(int panel, int control, int index, int check);
- int CVIFUNC GetNumCheckedItems(int panel, int control, int *numItems);
-
- /*** for text boxes: ***/
- int CVIFUNC InsertTextBoxLine(int panel, int control, int index, const char *text);
- int CVIFUNC ReplaceTextBoxLine(int panel, int control, int index, const char *text);
- int CVIFUNC DeleteTextBoxLine(int panel, int control, int index);
- int CVIFUNC GetNumTextBoxLines(int panel, int control, int *count);
- int CVIFUNC ResetTextBox(int panel, int control, const char *text);
- int CVIFUNC GetTextBoxLineLength(int panel, int control, int line, int *length);
- int CVIFUNC GetTextBoxLine(int panel, int control, int line, char *destBuffer);
-
- /*** attribute functions: ***/
- int CVIFUNC_C SetCtrlAttribute(int panel, int control, int attribute, ...);
- int CVIFUNC_C SetMenuBarAttribute(int menuBar, int control, int attribute, ...);
- int CVIFUNC_C SetPanelAttribute(int panel, int attribute, ...);
- int CVIFUNC SetPrintAttribute(int attribute, int value);
- int CVIFUNC_C SetSystemPopupsAttribute(int attribute, ...);
- int CVIFUNC_C SetSystemAttribute(int attribute, ...);
- int CVIFUNC GetCtrlAttribute(int panel, int control, int attribute, void *value);
- int CVIFUNC GetMenuBarAttribute(int menuBar, int control, int attribute, void *value);
- int CVIFUNC GetPanelAttribute(int panel, int attribute, void *value);
- int CVIFUNC GetPrintAttribute(int attribute, int *value);
- int CVIFUNC GetSystemPopupsAttribute(int attribute, void *value);
- int CVIFUNC GetSystemAttribute(int attribute, void *value);
-
- /*** for strip charts: ***/
- int CVIFUNC SetTraceAttribute(int panel, int control, int traceNum,
- int attribute, int value);
- int CVIFUNC GetTraceAttribute(int panel, int control, int traceNum,
- int attribute, int *value);
-
- /*** for graphs: ***/
- int CVIFUNC_C SetPlotAttribute(int panel, int control, int plotNum, int attribute,
- ...);
- int CVIFUNC GetPlotAttribute(int panel, int control, int plotNum, int attribute,
- void *value);
- int CVIFUNC SetCursorAttribute(int panel, int control, int cursorNum,
- int attribute, int value);
- int CVIFUNC GetCursorAttribute(int panel, int control, int cursorNum,
- int attribute, int *value);
-
- /*** printer functions: ***/
- int CVIFUNC PrintPanel(int panel, const char *fileName, int fullSize, int scope,
- int dialog);
- int CVIFUNC PrintCtrl(int panel, int control, const char *fileName, int fullSize,
- int dialog);
- int CVIFUNC PrintTextFile (const char *fileName, const char *fileDest);
- int CVIFUNC PrintTextBuffer (const char *buffer, const char *fileDest);
-
- /*** callback function pointer prototypes: ***/
- typedef int (CVICALLBACK * PanelCallbackPtr)(int panel, int event, void *callbackData,
- int eventData1, int eventData2);
- typedef int (CVICALLBACK * CtrlCallbackPtr)(int panel, int control, int event,
- void *callbackData, int eventData1, int eventData2);
- typedef void (CVICALLBACK * MenuCallbackPtr)(int menubar, int menuItem, void *callbackData,
- int panel);
- typedef void (CVICALLBACK * MenuDimmerCallbackPtr)(int menuBar, int panel);
- typedef int (CVICALLBACK * MainCallbackPtr)(int panelOrMenuBar, int controlOrMenuItem,
- int event, void *callbackData, int eventData1, int eventData2);
- typedef void (CVICALLBACK * DeferredCallbackPtr)(void *callbackData);
-
- #if defined(_NI_mswin16_)
- typedef unsigned short WinMsgWParam;
- typedef unsigned long WinMsgLParam;
- #else
- typedef unsigned WinMsgWParam;
- typedef unsigned long WinMsgLParam;
- #endif
- typedef void (CVICALLBACK * WinMsgCallbackPtr)(WinMsgWParam wParam, WinMsgLParam lParam, void *callbackData);
-
- /*** for installing callback functions: ***/
- int CVIFUNC InstallMainCallback(MainCallbackPtr eventFunction, void *callbackData,
- int getIdleEvents);
- int CVIFUNC InstallCtrlCallback(int panel, int control, CtrlCallbackPtr eventFunction,
- void *callbackData);
- int CVIFUNC InstallPanelCallback(int panel, PanelCallbackPtr eventFunction,
- void *callbackData);
- int CVIFUNC InstallMenuCallback(int menuBar, int menuOrMenuItem,
- MenuCallbackPtr eventFunction, void *callbackData);
- int CVIFUNC InstallMenuDimmerCallback(int menuBar, MenuDimmerCallbackPtr dimmerFunction);
- int CVIFUNC PostDeferredCall(DeferredCallbackPtr funcPtr, void *callbackData); /* may be called asynchronously */
-
-
- #if defined(_NI_mswin16_) || defined(_NI_mswin32_)
- int CVIFUNC RegisterWinMsgCallback(WinMsgCallbackPtr callbackFunc, const char *messageIdentifier,
- void *callbackData, int dataSize, int *callbackId,
- int deleteWhenUserProgramStops);
- int CVIFUNC UnRegisterWinMsgCallback(int callbackId);
- int CVIFUNC GetCVIWindowHandle(void);
- #endif
- #if defined(_NI_mswin16_)
- int CVIFUNC GetCVITaskHandle(void);
- #endif
-
- /*** for user interface management: ***/
- int CVIFUNC RunUserInterface(void);
- int CVIFUNC QuitUserInterface(int returnCode);
- int CVIFUNC ProcessSystemEvents(void);
- int CVIFUNC ProcessDrawEvents(void);
- int CVIFUNC QueueUserEvent(int eventNumber, int panel, int control);
-
- int CVIFUNC GetUserEvent(int wait, int *panel, int *control); /* returns an event */
- int CVIFUNC SetInputMode(int handle, int control, int mode);
- int CVIFUNC SetIdleEventRate(int minIntervalInMillisecs);
- int CVIFUNC SetSleepPolicy(int sleepPolicy);
- int CVIFUNC GetSleepPolicy(void);
-
- /*** for timer controls ***/
- int CVIFUNC ResetTimer(int panel, int control);
- int CVIFUNC ResumeTimerCallbacks(void);
- int CVIFUNC SuspendTimerCallbacks(void);
-
- /*** for menu bars: ***/
- int CVIFUNC LoadMenuBar(int panel, const char *fileName, int menuBarResourceId); /* returns a menu bar */
- int CVIFUNC LoadMenuBarEx(int panel, const char *fileName, int menuBarResourceId,
- void *hInstance); /* returns a menu bar */
- int CVIFUNC SetPanelMenuBar(int panel,int menuBar);
- int CVIFUNC GetPanelMenuBar(int panel);
- int CVIFUNC NewMenuBar(int panel); /* returns a menu bar */
- int CVIFUNC DiscardMenuBar(int menuBar);
- int CVIFUNC EmptyMenuBar(int menuBar);
- int CVIFUNC GetSharedMenuBarEventPanel(void); /* returns a panel */
-
- /*** for menus: ***/
- int CVIFUNC NewMenu(int menuBar, const char *menuTitle, int beforeMenu); /* returns a menu */
- int CVIFUNC DiscardMenu(int menuBar, int menu);
- int CVIFUNC EmptyMenu(int menuBar, int menu);
- int CVIFUNC NewSubMenu(int menuBar, int menuItem); /* returns a menu */
- int CVIFUNC DiscardSubMenu(int menuBar, int subMenu);
- int CVIFUNC RunPopupMenu(int menuBar, int menu, int panel, int top, int left,
- int pinTop, int pinLeft, int pinHeight, int pinWidth);
-
- /*** for menu items: ***/
- int CVIFUNC NewMenuItem(int menuBar, int menu, const char *itemString, int beforeMenuItem,
- int shortCutKey, MenuCallbackPtr eventFunction, void *callbackData); /* returns a menu item */
- int CVIFUNC DiscardMenuItem(int menuBar, int menuItem);
- int CVIFUNC InsertSeparator(int menuBar, int menu, int beforeMenuItem); /* menu item */
-
- /*** for graph plots: ***/
- int CVIFUNC PlotX(int panel, int control, void *xArray, int numPoints,
- int xDType, int plotStyle, int pointStyle, int lineStyle,
- int pointFreq, int color);
- int CVIFUNC PlotY(int panel, int control, void *yArray, int numPoints,
- int yDType, int plotStyle, int pointStyle, int lineStyle,
- int pointFreq, int color);
- int CVIFUNC PlotXY(int panel, int control, void *xArray, void *yArray,
- int numPoints, int xDType, int yDType, int plotStyle,
- int pointStyle, int lineStyle, int pointFreq, int color);
- int CVIFUNC PlotWaveform(int panel, int control, void *wfmArray,
- int numPoints, int wfmDType, double yGain, double yOffset,
- double xInit, double xInc, int plotStyle, int pointStyle,
- int lineStyle, int pointFreq, int color);
- int CVIFUNC PlotPoint(int panel, int control, double x, double y, int pointStyle,
- int color);
- int CVIFUNC PlotText(int panel, int control, double x, double y, const char *theText,
- const char *fontName, int fgColor, int bgColor);
- int CVIFUNC PlotLine(int panel, int control, double x1, double y1, double x2,
- double y2, int color);
- int CVIFUNC PlotRectangle(int panel, int control, double x1, double y1, double x2,
- double y2, int frameColor, int fillColor);
- int CVIFUNC PlotPolygon(int panel, int control, void *xArray, void *yArray,
- int numPoints, int xDType, int yDType, int frameColor,
- int fillColor);
- int CVIFUNC PlotOval(int panel, int control, double x1, double y1, double x2,
- double y2, int frameColor, int fillColor);
- int CVIFUNC PlotArc(int panel, int control, double x1, double y1, double x2,
- double y2, int begAngle, int arcAngle, int frameColor,
- int fillColor);
- int CVIFUNC PlotIntensity(int panel, int control, void *zArray, int numXPoints,
- int numYPoints, int zDType, ColorMapEntry colors[], int hiColor,
- int numColors, int interpColors, int interpPixels);
- int CVIFUNC PlotScaledIntensity(int panel, int control, void *zArray,
- int numXPoints, int numYPoints, int zDType, double yGain,
- double yOffset, double xGain, double xOffset,
- ColorMapEntry colors[], int hiColor, int numColors,
- int interpColors, int interpPixels);
- int CVIFUNC PlotBitmap(int panel, int control, double x, double y,
- double width, double height, const char *fileName);
- int CVIFUNC PlotStripChart(int panel, int control, void *yArray,
- int numPoints, int start, int skip, int yDType);
- int CVIFUNC PlotStripChartPoint(int panel, int control, double y);
- int CVIFUNC DeleteGraphPlot(int panel, int control, int plot, int timing);
- int CVIFUNC ClearStripChart(int panel, int control);
- int CVIFUNC RefreshGraph(int panel, int control);
-
- /*** for graph scales: ***/
- int CVIFUNC SetAxisScalingMode(int panel, int control, int axis,
- int mode, double min, double max);
- int CVIFUNC GetAxisScalingMode(int panel, int control, int axis,
- int *mode, double *min, double *max);
- int CVIFUNC ReplaceAxisItem(int panel, int control, int axis, int index,
- const char *itemLabel, double itemValue);
- int CVIFUNC InsertAxisItem(int panel, int control, int axis, int index,
- const char *itemLabel, double itemValue);
- int CVIFUNC DeleteAxisItem(int panel, int control, int axis, int index,
- int count);
- int CVIFUNC ClearAxisItems(int panel, int control, int axis);
- int CVIFUNC GetNumAxisItems(int panel, int control, int axis, int *count);
- int CVIFUNC GetAxisItem(int panel, int control, int axis, int index,
- char *itemLabel, double *itemValue);
- int CVIFUNC GetAxisItemLabelLength(int panel, int control, int axis,
- int index, int *length);
- int CVIFUNC SetAxisRange(int panel, int control, int x_mode, double x_min,
- double x_max, int y_mode, double y_min, double y_max);
- int CVIFUNC GetAxisRange(int panel, int control, int *x_mode, double *x_min,
- double *x_max, int *y_mode, double *y_min, double *y_max);
-
- /*** for graph cursors: ***/
- int CVIFUNC GetGraphCursor(int panel, int control, int cursorNum, double *x,
- double *y);
- int CVIFUNC SetGraphCursor (int panel, int control, int cursorNum, double x,
- double y);
- int CVIFUNC GetActiveGraphCursor(int panel, int control, int *cursorNum);
- int CVIFUNC SetActiveGraphCursor(int panel, int control, int cursorNum);
- int CVIFUNC GetGraphCursorIndex(int panel, int control, int cursorNum,
- int *plot, int *index);
- int CVIFUNC SetGraphCursorIndex(int panel, int control, int cursorNum,
- int plot, int index);
-
- /*** for pictures: ***/
- int CVIFUNC DisplayImageFile(int panel, int control, const char *fileName);
- int CVIFUNC DeleteImage(int panel, int control);
- int CVIFUNC SetImageBits(int panel, int control, int imageId, int rowBytes,
- int depth, int width, int height, int colors[],
- unsigned char *bits, unsigned char *mask);
- int CVIFUNC GetImageBits(int panel, int control, int imageId, int *rowBytes,
- int *depth, int *width, int *height, int *colors,
- unsigned char *bits, unsigned char *mask);
- int CVIFUNC GetImageInfo(int panel, int control, int imageId, int *colorSize,
- int *bitsSize, int *maskSize);
- int CVIFUNC AllocImageBits(int panel, int control, int imageId, int **colors,
- unsigned char **bits, unsigned char **mask);
-
- /*** popup functions: ***/
- int CVIFUNC FileSelectPopup(const char defaultDir[], const char defaultSpec[], const char fileTypeList[],
- const char title[], int buttonLabel, int restrictDir, int restrictExt,
- int allowCancel, int allowMakeDir, char fileSpec[]);
- int CVIFUNC MultiFileSelectPopup(const char defaultDir[], const char defaultSpec[], const char fileTypeList[],
- const char title[], int restrictDir, int restrictExt,
- int allowCancel, int *numSelected, char ***fileSpecList);
- int CVIFUNC DirSelectPopup (const char defaultDir[], const char title[], int allowCancel,
- int allowMakeDir, char dirChosen[]);
- int CVIFUNC InstallPopup(int popupHandle);
- int CVIFUNC RemovePopup(int removeAll);
- int CVIFUNC MessagePopup(const char *popupTitle, const char *messageString);
- int CVIFUNC ConfirmPopup(const char *popupTitle, const char *messageString);
- int CVIFUNC PromptPopup(const char *popupTitle, const char *messageString, char *responseBuffer, int maxResponseLength);
- int CVIFUNC GenericMessagePopup(const char *popupTitle, const char *messageString, const char *btn1Label, const char *btn2Label,
- const char *btn3Label, char *responseBuffer, int maxResponseLength,
- int putBtnsOnSide, int activeCtrl, int defaultBtn, int cancelBtn);
- int CVIFUNC YGraphPopup(const char *popupTitle, void *yArray, int numPoints, int yDType);
- int CVIFUNC XGraphPopup(const char *popupTitle, void *xArray, int numPoints, int xDType);
- int CVIFUNC XYGraphPopup(const char *popupTitle, void *xArray, void *yArray, int numPoints, int xDType,
- int yDType);
- int CVIFUNC WaveformGraphPopup(const char *popupTitle, void *wFmArray, int numPoints, int wFmDType,
- double yGain, double yOffset, double xInit, double xInc);
- int CVIFUNC FontSelectPopup(const char *popupTitle, const char *sampleString, int monoSpacedOnly, char *typeFace,int *bold,
- int *underline, int *strikeOut, int *italic, int *justification, int *textColor,
- int *fontSize, int minFontSize, int maxFontSize, int allowDefaultBtn, int allowMetaFonts);
- int CVIFUNC SetFontPopupDefaults(const char *typeFace, int bold, int underline, int strikeOut, int italic,
- int justification, int textColor, int fontSize);
-
-
- /*** clipboard functions: ***/
- int CVIFUNC ClipboardPutBitmap(int bitmap);
- int CVIFUNC ClipboardGetBitmap(int *bitmap, int *available);
- int CVIFUNC ClipboardPutText(char *text);
- int CVIFUNC ClipboardGetText(char **text, int *available);
-
- /*** miscellaneous functions: ***/
- int CVIFUNC MakeColor(int red, int green, int blue); /* returns a rgb value */
- int CVIFUNC Get3dBorderColors(int color, int *highlightColor, int *lightColor, int *shadowColor, int *darkShadowColor);
- int CVIFUNC SetWaitCursor(int wait);
- int CVIFUNC GetWaitCursorState(void); /* returns a boolean */
- int CVIFUNC SetMouseCursor(int cursor);
- int CVIFUNC GetMouseCursor(int *cursor);
- int CVIFUNC GetGlobalMouseState(int *panel, int *x, int *y, int *leftButtonDown,
- int *rightButtonDown, int *keyModifiers);
- int CVIFUNC GetRelativeMouseState(int panel, int control, int *x, int *y,
- int *leftButtonDown, int *rightButtonDown, int *keyModifiers);
- int CVIFUNC GetScreenSize(int *height, int *width);
- int CVIFUNC FakeKeystroke(int fakedKey);
- int CVIFUNC CreateMetaFont(const char *name, const char *fontName, int size, int bold,
- int italic, int underline, int strikeout);
- int CVIFUNC GetTextDisplaySize(const char *ptr, const char *fontString, int *height, int *width);
- char * CVIFUNC GetUILErrorString(int errorCode);
-
-
- /*** functions provided for LW DOS compatibility: ***/
- int CVIFUNC DisplayPCXFile(const char *fileName, int x, int y);
- int CVIFUNC ConfigurePrinter(const char *printFile, int orientation, int width,
- int height, int ejectPage);
- int CVIFUNC DOSColorToRGB (int color);
- int CVIFUNC DOSCompatWindow(void);
-
- /*************************************/
- /*** functions for Canvas Controls ***/
- /*************************************/
-
- /** Drawing functions for use with the canvas control **/
- int CVIFUNC CanvasStartBatchDraw(int panel, int control);
- int CVIFUNC CanvasEndBatchDraw(int panel, int control);
-
- int CVIFUNC CanvasDrawPoint(int panel, int control, Point p);
- int CVIFUNC CanvasDrawLine(int panel, int control, Point start, Point end);
- int CVIFUNC CanvasDrawLineTo(int panel, int control, Point end);
- int CVIFUNC CanvasDrawRect(int panel, int control, Rect r, int drawMode);
- int CVIFUNC CanvasDimRect(int panel, int control, Rect r);
- int CVIFUNC CanvasDrawRoundedRect (int panel, int control, Rect r, int ovalHeight, int ovalWidth, int drawMode);
- int CVIFUNC CanvasDrawOval(int panel, int control, Rect r, int drawMode);
- int CVIFUNC CanvasDrawArc(int panel, int control, Rect r, int begAngle, int arcAngle, int drawMode);
- int CVIFUNC CanvasDrawPoly(int panel, int control, int numPts, const Point points[], int wrap, int drawMode);
- int CVIFUNC CanvasDrawText(int panel, int control, const char text[], const char metaFont[], Rect bounds, int alignment);
- int CVIFUNC CanvasDrawTextAtPoint(int panel, int control, const char text[], const char metaFont[], Point anchor, int alignment);
- int CVIFUNC CanvasDrawBitmap(int panel, int control, int bitmap, Rect source, Rect destination);
- int CVIFUNC CanvasScroll(int panel, int control, Rect r, int dx, int dy);
- int CVIFUNC CanvasInvertRect(int panel, int control, Rect r);
- int CVIFUNC CanvasClear(int panel, int canvas, Rect r);
-
- /** Pen functions for use with the canvas control **/
- int CVIFUNC CanvasGetPenPosition(int panel, int control, Point *penPosition);
- int CVIFUNC CanvasSetPenPosition(int panel, int control, Point penPosition);
- int CVIFUNC CanvasDefaultPen(int panel, int control);
-
- /** Update functions for use with the canvas control **/
- int CVIFUNC CanvasUpdate(int panel, int control, Rect updateArea);
-
- /** Clipping functions for use with the canvas control **/
- int CVIFUNC CanvasSetClipRect(int panel, int control, Rect clipRect);
- int CVIFUNC CanvasGetClipRect(int panel, int control, Rect *clipRect);
-
- /** Bitmap functions **/
- int CVIFUNC NewBitmap(int rowBytes, int depth, int width, int height, int colors[],
- unsigned char bits[], unsigned char mask[], int *bitmap);
- int CVIFUNC GetBitmapFromFile(const char fileName[], int *bitmap);
- int CVIFUNC GetCtrlBitmap(int panel, int control, int imageId, int *bitmap);
- int CVIFUNC DiscardBitmap(int bitmap);
- int CVIFUNC GetCtrlDisplayBitmap(int panel, int ctrl, int includeLabel, int *bitmap);
- int CVIFUNC GetPanelDisplayBitmap(int panel, int scope, Rect area, int *bitmap);
- int CVIFUNC SetCtrlBitmap(int panel, int control, int imageId, int bitmap);
- int CVIFUNC GetBitmapData(int bitmap, int *rowBytes, int *depth, int *width,
- int *height, int *colors, unsigned char *bits, unsigned char *mask);
- int CVIFUNC GetBitmapInfo(int bitmap, int *colorSize, int *bitsSize,
- int *maskSize);
- int CVIFUNC AllocBitmapData(int bitmap, int **colors, unsigned char **bits,
- unsigned char **mask);
-
- /** Pixel value functions for use with the canvas control ***/
- int CVIFUNC CanvasGetPixel(int panel, int control, Point p, int *pixel);
- int CVIFUNC CanvasGetPixels(int panel, int control, Rect r, int pixels[]);
-
- /*** Rectangle and Point functions ***/
-
- /*** Creating and modifying Rectangles and Points ***/
- Rect CVIFUNC MakeRect(int top, int left, int height, int width);
- void CVIFUNC RectSet(Rect *r, int top, int left, int height, int width);
- void CVIFUNC RectSetFromPoints(Rect *r, Point p1, Point p2);
- void CVIFUNC RectSetBottom(Rect *r, int bottom);
- void CVIFUNC RectSetRight(Rect *r, int right);
- void CVIFUNC RectSetCenter(Rect *r, Point centerPoint);
- void CVIFUNC RectOffset(Rect *r, int dx, int dy);
- void CVIFUNC RectMove(Rect *r, Point p);
- void CVIFUNC RectGrow(Rect *r, int dx, int dy);
- Point CVIFUNC MakePoint(int x, int y);
- void CVIFUNC PointSet(Point *p, int x, int y);
-
- /*** Retrieving and comparing Rect and Point values ***/
- int CVIFUNC RectBottom(Rect r);
- int CVIFUNC RectRight(Rect r);
- void CVIFUNC RectCenter(Rect r, Point *centerPoint);
- int CVIFUNC RectEqual(Rect r1, Rect r2);
- int CVIFUNC RectEmpty(Rect r);
- int CVIFUNC RectContainsPoint(Rect r, Point p);
- int CVIFUNC RectContainsRect(Rect container, Rect containee);
- int CVIFUNC RectSameSize(Rect r1, Rect r2);
- void CVIFUNC RectUnion(Rect r1, Rect r2, Rect *unionRect);
- int CVIFUNC RectIntersection(Rect r1, Rect r2, Rect *intersectionRect);
- int CVIFUNC PointEqual(Point p1, Point p2);
- void CVIFUNC PointPinnedToRect(Point p, Rect r, Point *pinnedPoint);
-
-
- extern void *__CVIUserHInst;
-
-
- #ifdef __cplusplus
- }
- #endif
-
- #endif /* USERINT_HEADER */
-
- /******************************************************************************/
-