1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 259 260 261 262 263 264 265 266 267 268 269 270 271 272 273 274 275 276 277 278 279 280 281 282 283 284 285 286 287 288 289 290 291 292 293 294 295 296 297 298 299 300 301 302 303 304 305 306 307 308 309 310 311 312 313 314 315 316 317 318 319 320 321 322 323 324 325 326 327 328 329 330 331 332 333 334 335 336 337 338 339 340 341 342 343 344 345 346 347 348 349 350 351 352 353 354 355 356 357 358 359 360 361 362 363 364 365 366 367 368 369 370 371 372 373 374 375 376 377 378 379 380 381 382 383 384 385 386 387 388 389 390 391 392 393 394 395 396 397 398 399 400 401 402 403 404 405 406 407 408 409 410 411 412 413 414 415 416 417 418 419 420 421 422 423 424 425 426 427 428 429 430 431 432 433 434 435 436 437 438 439 440 441 442 443 444 445 446 447 448 449 450 451 452 453 454 455 456 457 458 459 460 461 462 463 464 465 466 467 468 469 470 471 472 473 474 475 476 477 478 479 480 481 482 483 484 485 486 487 488 489 490 491 492 493 494 495 496 497 498 499 500 501 502 503 504 505 506 507 508 509 510 511 512 513 514 515 516 517 518 519 520 521 522 523 524 525 526 527 528 529 530 531 532 533 534 535 536 537 538 539 540 541 542 543 544 545 546 547 548 549 550 551 552 553 554 555 556 557 558 559 560 561 562 563 564 565 566 567 568 569 570 571 572 573 574 575 576 577 578 579 580 581 582 583 584 585 586 587 588 589 590 591 592 593 594 595 596 597 598 599 600 601 602 603 604 605 606 607 608 609 610 611 612 613 614 615 616 617 618 619 620 621 622 623 624 625 626 627 628 629 630 631 632 633 634 635 636 637 638 639 640 641 642 643 644 645 646 647 648 649 650 651 652 653 654 655 656 657 658 659 660 661 662 663 664 665 666 667 668 669 670 671 672 673 674 675 676 677 678 679 680 681 682 683 684 685 686 687 688 689 690 691 692 693 694 695 696 697 698 699 700 701 702 703 704 705 706 707 708 709 710 711 712 713 714 715 716 717 718 719 720 721 722 723 724 725 726 727 728 729 730 731 732 733 734 735 736 737 738 739 740 741 742 743 744 745 746 747 748 749 750 751 752 753 754 755 756 757 758 759 760 761 762 763 764 765 766 767 768 769 770 771 772 773 774 775 776 777 778 779 780 781 782 783 784 785 786 787 788 789 790 791 792 793 794 795 796 797 798 799 800 801 802 803 804 805 806 807 808 809 810 811 812 813 814 815 816 817 818 819 820 821 822 823 824 825 826 827 828 829 830 831 832 833 834 835 836 837 838 839 840 841 842 843 844 845 846 847 848 849 850 851 852 853 854 855 856 857 858 859 860 861 862 863 864 865 866 867 868 869 870 871 872 873 874 875 876 877 878 879 880 881 882 883 884 885 886 887 888 889 890 891 892 893 894 895 896 897 898 899 900 901 902 903 904 905 906 907 908 909 910 911 912 913 914 915 916 917 918 919 920 921 922 923 924 925 926 927 928 929 930 931 932 933 934 935 936 937 938 939 940 941 942 943 944 945 946 947 948 949 950 951 952 953 954 955 956 957 958 959 960 961 962 963 964 965 966 967 968 969 970 971 972 973 974 975 976 977 978 979 980 981 982 983 984 985 986 987 988 989 990 991 992 993 994 995 996 997 998 999 1000 1001 1002 1003 1004 1005 1006 1007 1008 1009 1010 1011 1012 1013 1014 1015 1016 1017 1018 1019 1020 1021 1022 1023 1024 1025 1026 1027 1028 1029 1030 1031 1032 1033 1034 1035 1036 1037 1038 1039 1040 1041 1042 1043 1044 1045 1046 1047 1048 1049 1050 1051 1052 1053 1054 1055 1056 1057 1058 1059 1060 1061 1062 1063 1064 1065 1066 1067 1068 1069 1070 1071 1072 1073 1074 1075 1076 1077 1078 1079 1080 1081 1082 1083 1084 1085 1086 1087 1088 1089 1090 1091 1092 1093 1094 1095 1096 1097 1098 1099 1100 1101 1102 1103 1104 1105 1106 1107 1108 1109 1110 1111 1112 1113 1114 1115 1116 1117 1118 1119 1120 1121 1122 1123 1124 1125 1126 1127 1128 1129 1130 1131 1132 1133
|
'\" t
...\" FileSelA.sgm /main/12 1996/09/26 14:54:48 cdedoc $
.de P!
.fl
\!!1 setgray
.fl
\\&.\"
.fl
\!!0 setgray
.fl \" force out current output buffer
\!!save /psv exch def currentpoint translate 0 0 moveto
\!!/showpage{}def
.fl \" prolog
.sy sed -e 's/^/!/' \\$1\" bring in postscript file
\!!psv restore
.
.de pF
.ie \\*(f1 .ds f1 \\n(.f
.el .ie \\*(f2 .ds f2 \\n(.f
.el .ie \\*(f3 .ds f3 \\n(.f
.el .ie \\*(f4 .ds f4 \\n(.f
.el .tm ? font overflow
.ft \\$1
..
.de fP
.ie !\\*(f4 \{\
. ft \\*(f4
. ds f4\"
' br \}
.el .ie !\\*(f3 \{\
. ft \\*(f3
. ds f3\"
' br \}
.el .ie !\\*(f2 \{\
. ft \\*(f2
. ds f2\"
' br \}
.el .ie !\\*(f1 \{\
. ft \\*(f1
. ds f1\"
' br \}
.el .tm ? font underflow
..
.ds f1\"
.ds f2\"
.ds f3\"
.ds f4\"
.ta 8n 16n 24n 32n 40n 48n 56n 64n 72n
.TH "XmFileSelectionBox" "library call"
.SH "NAME"
\fBXmFileSelectionBox\fP \(em The FileSelectionBox widget class
.iX "XmFileSelectionBox"
.iX "widget class" "FileSelectionBox"
.SH "SYNOPSIS"
.PP
.nf
#include <Xm/FileSB\&.h>
.fi
.SH "DESCRIPTION"
.PP
FileSelectionBox traverses
through directories, views the files and subdirectories in them,
and then selects files\&.
.PP
A FileSelectionBox has five main areas:
.IP " \(bu" 6
A text input field for displaying and editing a directory mask used to
select the files to be displayed
.IP " \(bu" 6
An optional text input field for displaying and editing a filter mask
used to select the files to be displayed\&.
.IP " \(bu" 6
A scrollable list of filenames
.IP " \(bu" 6
A scrollable list of subdirectories
.IP " \(bu" 6
A text input field for displaying and editing a filename
.IP " \(bu" 6
A group of PushButtons,
labeled \fBOK\fP, \fBFilter\fP, \fBCancel\fP, and \fBHelp\fP\&.
The layout direction of the buttons depends on the
\fBXmNlayoutDirection\fP resource\&.
.PP
####Additional children may be added to the FileSelectionBox after
creation\&.
FileSelectionBox inherits the layout functionality provided
by SelectionBox for any additional children\&.
To remove the list of filenames, the list of subdirectories, or both
from the FileSelectionBox after creation, unmanage the
appropriate widgets and their labels\&.
The list and label widgets are obtained through a call to the
\fBXmFileSelectionBoxGetChild\fP function\&.
To remove either the directory list or the file list, unmanage the
parent of the appropriate list widget and unmanage the corresponding
label\&.
.PP
The user can specify resources in a resource file for the automatically
created widgets and gadgets of FileSelectionBox\&. The following list
identifies the names of these widgets (or gadgets) and the associated
FileSelectionBox areas:
.IP "FilterLabel" 10
\fBFilterText\fP
.IP "Filter Text" 10
\fBTextField\fP
.IP "Directory List" 10
\fBDirList\fP
.IP "Directory List Label" 10
\fBDir\fP
.IP "DirL" 10
\fBLabel\fP
.IP "DirText" 10
\fBTextField\fP
.PP
The directory mask is a string specifying the base directory to be
examined and a search pattern\&.
Ordinarily, the directory list displays the subdirectories of the base
directory, as well as the base directory itself and its parent
directory\&.
The file list ordinarily displays all files and/or subdirectories in the
base directory that match the search pattern\&.
.PP
Optionally, the search pattern mask and the base directory can be
displayed in two separate text fields\&. This option is controlled by
the \fBXmNpathMode\fP resource\&. Using this alternate
display does not change the meaning of resources that control the
content of these fields: \fBXmNdirectory\fP, \fBXmNdirMask\fP,
\fBXmNpattern\fP\&.
.PP
A procedure specified by the \fBXmNqualifySearchDataProc\fP resource
extracts the base directory and search pattern from the directory mask\&.
If the directory specification is empty, the current working directory
is used\&.
If the search pattern is empty, a pattern that matches all files is
used\&.
.PP
An application can supply its own \fBXmNqualifySearchDataProc\fP as well
as its own procedures to search for subdirectories and files\&.
The default \fBXmNqualifySearchDataProc\fP works as follows:
The directory mask is a pathname that can contain zero or more
\fIwildcard\fP characters in its directory portion, its file portion, or
both\&.
The directory components of the directory mask \(em up to, but not
including, the first component with a wildcard character \(em specify the
directory to be searched, relative to the current working directory\&.
The remaining components specify the search pattern\&.
If the directory mask is empty or if its first component contains a
wildcard character, the current working directory is searched\&.
If no component of the directory mask contains a wildcard character, the
entire directory mask is the directory specification, and all files in
that directory are matched\&.
.PP
The user can select a new directory to examine by scrolling through the
list of directories and selecting the desired directory or by editing
the directory mask\&.
Selecting a new directory from the directory list does not change the
search pattern\&.
A user can select a new search pattern by editing the directory mask
or, when the FileSelectionBox has the optional \fBXmNpathMode
XmPATH_MODE_RELATIVE\fP display, the filter text field\&.
Double clicking or pressing \fBKActivate\fP on a directory in the
directory list initiates a search for files and subdirectories in the
new directory, using the current search pattern\&.
.PP
The user can select a file by scrolling through the list of filenames
and selecting the desired file or by entering the filename directly into
the text edit area\&.
Selecting a file from the list causes that filename to appear in the
file selection text edit area\&.
.PP
The user may select a new file as many times as desired\&.
The application is not notified until the user takes one of the
following actions:
.IP " \(bu" 6
Selects the \fBOK\fP PushButton
.IP " \(bu" 6
Presses \fBKActivate\fP while the selection text edit area has the
keyboard focus
.IP " \(bu" 6
Double clicks or presses \fBKActivate\fP on an item in the file list
.PP
FileSelectionBox initiates a directory and file search when any of the
following occurs:
.IP " \(bu" 6
The FileSelectionBox is initialized
.IP " \(bu" 6
The function \fBXtSetValues\fP is used to change \fBXmNdirMask\fP,
\fBXmNdirectory\fP, \fBXmNpattern\fP, or \fBXmNfileTypeMask\fP
.IP " \(bu" 6
The user activates the \fBFilter\fP PushButton
.IP " \(bu" 6
The user double clicks or presses \fBKActivate\fP on an item in the
directory list
.IP " \(bu" 6
The application calls \fBXmFileSelectionDoSearch\fP
.IP " \(bu" 6
The user presses \fBKActivate\fP while the directory mask text edit area
has the keyboard focus
.PP
When a file search is initiated, the FileSelectionBox takes the
following actions:
.IP " \(bu" 6
Constructs an \fBXmFileSelectionBoxCallbackStruct\fR structure with
values appropriate for the action that initiated the search
.IP " \(bu" 6
Calls the \fBXmNqualifySearchDataProc\fP with the callback structure as
the data input argument
.IP " \(bu" 6
Sets \fBXmNdirectoryValid\fP and \fBXmNlistUpdated\fP to False
.IP " \(bu" 6
Calls the \fBXmNdirSearchProc\fP with the qualified data returned by the
\fBXmNqualifySearchDataProc\fP
.PP
If \fBXmNdirectoryValid\fP is True, the FileSelectionBox takes the
following additional actions:
.IP " \(bu" 6
Sets \fBXmNlistUpdated\fP to False
.IP " \(bu" 6
Calls the \fBXmNfileSearchProc\fP with the qualified data returned by
the \fBXmNqualifySearchDataProc\fP (and possibly modified by the
\fBXmNdirSearchProc\fP)
.IP " \(bu" 6
If \fBXmNlistUpdated\fP is True and the file list is empty, displays the
\fBXmNnoMatchString\fP in the file list and clears the selection text
and \fBXmNdirSpec\fP
.IP " \(bu" 6
If \fBXmNlistUpdated\fP is True and the file list is not empty, sets the
selection text and \fBXmNdirSpec\fP to the qualified \fIdir\fP returned
by the \fBXmNqualifySearchDataProc\fP (and possibly modified by the
\fBXmNdirSearchProc\fP)
.IP " \(bu" 6
Sets the directory mask text and \fBXmNdirMask\fP to the qualified
\fImask\fP returned by the \fBXmNqualifySearchDataProc\fP (and possibly
modified by the \fBXmNdirSearchProc\fP)
.IP " \(bu" 6
Sets \fBXmNdirectory\fP to the qualified \fIdir\fP returned by the
\fBXmNqualifySearchDataProc\fP (and possibly modified by the
\fBXmNdirSearchProc\fP)
.IP " \(bu" 6
Sets \fBXmNpattern\fP to the qualified \fIpattern\fP returned by the
\fBXmNqualifySearchDataProc\fP (and possibly modified by the
\fBXmNdirSearchProc\fP)
.PP
FileSelectionBox uses the \fBXmQTactivatable\fP trait\&.
.SS "Data Transfer Behavior"
.PP
Child widgets of a FileSelectionBox support the data transfer operations
and targets associated with their widget classes\&.
.PP
In addition, if the source of a data transfer is the directory list and
if \fBXmNdirSearchProc\fP has its default value, the directory list
supports the \fBFILE\fP and \fBFILE_NAME\fP targets\&.
.PP
If the source of a data transfer is the file list and if
\fBXmNfileSearchProc\fP has its default value, the file list supports
the \fBFILE\fP and \fBFILE_NAME\fP targets\&.
.PP
In either case, FileSelectionBox adds an \fBXmNconvertCallback\fP
procedure to the appropriate list\&.
This procedure adds \fBFILE\fP and \fBFILE_NAME\fP to the \fBTARGETS\fP
returned by the list\&.
It treats requests for conversion of a selection to \fBFILE\fP and
\fBFILE_NAME\fP exactly like requests for conversion to \fBTEXT\fP\&.
.PP
If an application changes \fBXmNdirSearchProc\fP or
\fBXmNfileSearchProc\fP and wants to support the \fBFILE\fP and
\fBFILE_NAME\fP targets on the corresponding list, it must provide
support itself by adding a procedure to the list\&'s
\fBXmNconvertCallback\fP list\&.
.SS "Descendants"
.PP
FileSelectionBox automatically creates the descendants shown in the
following table\&.
An application can use \fBXtNameToWidget\fP to gain access
to the named descendant\&. In addition, a user or an application
can use the named descendant when specifying resource values\&.
.TS
tab() box;
l| l| l.
\fBNamed Descendant\fP\fBClass\fP\fBIdentity\fP
___
=
___
\fBApply\fP\fBXmPushButtonGadget\fPApply button
___
\fBCancel\fP\fBXmPushButtonGadget\fPCancel button
___
\fBDir\fP\fBXmLabelGadget\fPtitle above list of directories
___
\fBDirList\fP\fBXmList\fPlist of directories
___
\fBDirListSW\fP\fBXmScrolledWindow\fPScrolledWindow parent of \fBDirList\fP
___
\fBFilterLabel\fP\fBXmLabelGadget\fPtitle above filter box
___
\fBFilterText\fP\fBXmText\fP or \fBXmTextField\fPtext within filter box
___
\fBHelp\fP\fBXmPushButtonGadget\fPHelp button
___
\fBItems\fP\fBXmLabelGadget\fPtitle above list of filenames
___
\fBItemsList\fP\fBXmList\fPlist of filenames
___
\fBItemsListSW\fP\fBXmScrolledWindow\fPScrolledWindow parent of \fBItemsList\fP
___
\fBOK\fP\fBXmPushButtonGadget\fPOK button
___
\fBSelection\fP\fBXmLabelGadget\fPtitle above selection box
___
\fBSeparator\fP\fBXmSeparatorGadget\fPoptional dividing line
___
\fBText\fP\fBXmText\fP or \fBXmTextField\fPtext within selection box
___
.TE
.SS "Classes"
.PP
FileSelectionBox inherits behavior,
resources, and traits from \fBCore\fP, \fBComposite\fP,
\fBConstraint\fP, \fBXmManager\fP,
\fBXmBulletinBoard\fP, and \fBXmSelectionBox\fP\&.
.PP
The class pointer is \fBxmFileSelectionBoxWidgetClass\fP\&.
.PP
The class name is \fBXmFileSelectionBox\fP\&.
.SS "New Resources"
.PP
The following table defines a set of widget resources used by the programmer
to specify data\&. The programmer can also set the resource values for the
inherited classes to set attributes for this widget\&. To reference a
resource by name or by class in a \fB\&.Xdefaults\fP file, remove the \fBXmN\fP or
\fBXmC\fP prefix and use the remaining letters\&. To specify one of the defined
values for a resource in a \fB\&.Xdefaults\fP file,
remove the \fBXm\fP prefix and use
the remaining letters (in either lowercase or uppercase, but include any
underscores between words)\&.
The codes in the access column indicate if the given resource can be
set at creation time (C),
set by using \fBXtSetValues\fP (S),
retrieved by using \fBXtGetValues\fP (G), or is not applicable (N/A)\&.
.PP
.TS
tab() box;
c s s s s
l| l| l| l| l.
\fBXmFileSelectionBox Resource Set\fP
\fBName\fP\fBClass\fP\fBType\fP\fBDefault\fP\fBAccess\fP
_____
XmNdirectoryXmCDirectoryXmStringdynamicCSG
_____
XmNdirectoryValidXmCDirectoryValidBooleandynamicSG
_____
XmNdirListItemsXmCDirListItemsXmStringTabledynamicSG
_____
XmNdirListItemCountXmCDirListItemCountintdynamicSG
_____
XmNdirListLabelStringXmCDirListLabelStringXmStringdynamicCSG
_____
XmNdirMaskXmCDirMaskXmStringdynamicCSG
_____
XmNdirSearchProcXmCDirSearchProcXmSearchProcdefault procedureCSG
_____
XmNdirSpecXmCDirSpecXmStringdynamicCSG
_____
XmNdirTextLabelStringXmCDirTextLabelStringXmStringNULLC
_____
XmNfileFilterStyleXmCFileFilterStyleXtEnumXmFILTER_NONEC
_____
XmNfileListItemsXmCItemsXmStringTabledynamicSG
_____
XmNfileListItemCountXmCItemCountintdynamicSG
_____
XmNfileListLabelStringXmCFileListLabelStringXmStringdynamicCSG
_____
XmNfileSearchProcXmCFileSearchProcXmSearchProcdefault procedureCSG
_____
XmNfileTypeMaskXmCFileTypeMaskunsigned charXmFILE_REGULARCSG
_____
XmNfilterLabelStringXmCFilterLabelStringXmStringdynamicCSG
_____
XmNlistUpdatedXmCListUpdatedBooleandynamicSG
_____
XmNnoMatchStringXmCNoMatchStringXmStringT{
"\0[\0\0\0\0]\0"
T}CSG
_____
XmNpathModeXmCPathModeXtEnumXmPATH_MODE_FULLC
_____
XmNpatternXmCPatternXmStringdynamicCSG
_____
XmNqualifySearchDataProcXmCQualifySearchDataProcXmQualifyProcdefault procedureCSG
_____
.TE
.IP "\fBXmNdirectory\fP" 10
Specifies the base directory used in combination with \fBXmNpattern\fP
in determining the files and directories to be displayed\&.
The default value is determined by the \fBXmNqualifySearchDataProc\fP
and depends on the initial values of \fBXmNdirMask\fP,
\fBXmNdirectory\fP, and \fBXmNpattern\fP\&.
If the default is NULL or empty, the current working directory is used\&.
.IP "\fBXmNdirectoryValid\fP" 10
Specifies an attribute that is set only by the directory search
procedure\&.
The value is set to True if the directory passed to the directory search
procedure can actually be searched\&.
If this value is False the file search procedure is not called, and
\fBXmNdirMask\fP, \fBXmNdirectory\fP, and \fBXmNpattern\fP are not
changed\&.
.IP "\fBXmNdirListItems\fP" 10
Specifies the items in the directory list\&.
\fBXtGetValues\fP for this resource returns the list items themselves,
not a copy of the list items\&.
The application must not free the returned items\&.
.IP "\fBXmNdirListItemCount\fP" 10
Specifies the number of items in the directory list\&.
The value must not be negative\&.
.IP "\fBXmNdirListLabelString\fP" 10
Specifies the label string of the directory list\&.
The default for this resource depends on the locale\&.
In the C locale the default is \fBDirectories\fP\&.
.IP "" 10
Now that some default localized label strings are provided through
message catalogs for the children of composite widgets, the
\fBlabelString\fP resources
cannot be set on the child through default resource files\&.
Instead, the resource provided at the parent level must be used\&.
.IP "\fBXmNdirMask\fP" 10
Specifies the directory mask used
in determining the files and directories to be displayed\&.
The default value is determined by the
\fBXmNqualifySearchDataProc\fP
and depends on the initial values of \fBXmNdirMask\fP,
\fBXmNdirectory\fP, and \fBXmNpattern\fP\&.
.IP "\fBXmNdirSearchProc\fP" 10
Specifies a directory search procedure to replace the default
directory search procedure\&.
FileSelectionBox\&'s default directory search procedure fulfills the needs
of most applications\&.
Because it is impossible to cover the requirements of all applications,
you can replace the default search procedure\&.
.IP "" 10
The directory search procedure is called with two arguments:
the FileSelectionBox widget and a pointer to an
\fBXmFileSelectionBoxCallbackStruct\fR structure\&.
The callback structure is generated by the
\fBXmNqualifySearchDataProc\fP and contains all information required to
conduct a directory search, including the directory mask and a qualified
base directory and search pattern\&.
Once called, it is up to the search routine to generate a new list of
directories and update the FileSelectionBox widget by using
\fBXtSetValues\fP\&.
.IP "" 10
The search procedure must set \fBXmNdirectoryValid\fP and
\fBXmNlistUpdated\fP\&.
If it generates a new list of directories, it must also set
\fBXmNdirListItems\fP and \fBXmNdirListItemCount\fP\&.
.IP "" 10
If the search procedure cannot search the specified directory, it must
warn the user and set \fBXmNdirectoryValid\fP and \fBXmNlistUpdated\fP
to False, unless it prompts and subsequently obtains a valid directory\&.
If the directory is valid but is the same as the current
\fBXmNdirectory\fP, the search procedure must set
\fBXmNdirectoryValid\fP to True, but it may elect not to generate a new
list of directories\&.
In this case, it must set \fBXmNlistUpdated\fP to False\&.
.IP "" 10
If the search procedure generates a new list of directories, it must set
\fBXmNdirListItems\fP to the new list of directories and
\fBXmNdirListItemCount\fP to the number of items in the list\&.
If there are no directories, it sets \fBXmNdirListItems\fP to NULL and
\fBXmNdirListItemCount\fP to 0 (zero)\&.
In either case, it must set \fBXmNdirectoryValid\fP and
\fBXmNlistUpdated\fP to True\&.
.IP "" 10
The search procedure ordinarily should not change the callback structure\&.
But if the original directory is not valid, the search procedure may
obtain a new directory from the user\&.
In this case, it should set the \fIdir\fP member of the callback structure
to the new directory,
call the \fBXmNqualifySearchDataProc\fP with the
callback struct as the input argument, and copy the qualified data
returned by the \fBXmNqualifySearchDataProc\fP into the callback struct\&.
.IP "\fBXmNdirSpec\fP" 10
Specifies the full file path specification\&.
This is the \fBXmNtextString\fP resource in SelectionBox, renamed for
FileSelectionBox\&.
The default value is determined by the FileSelectionBox after conducting
the initial directory and file search\&.
.IP "\fBXmNdirTextLabelString\fP" 10
Uses the specified \fBXmString\fR as the label above the TextField
directory\&. The resource takes effect when the \fBXmNpathMode\fP
resource has a value of \fBXmPATH_MODE_RELATIVE\fP\&. It is ignored
when the \fBXmNpathMode\fP resource has a value of \fBXmPATH_MODE_FULL\fP\&.
.IP "" 10
Now that some default localized label strings are provided through
message catalogs for the children of composite widgets, the
\fBlabelString\fP resources
cannot be set on the child through default resource files\&.
Instead, the resource provided at the parent level must be used\&.
.IP "\fBXmNfileFilterStyle\fP" 10
Specifies whether or not the "hidden" files (those whose names begin
with . (period) in POSIX systems) will be listed in the file and
directory
scrolling lists (where the default directory search procedure is used)\&.
The possible values are:
.RS
.IP "\fBXmFILTER_NONE\fP" 10
Does not filter hidden files\&.
.IP "\fBXmFILTER_HIDDEN_FILES\fP" 10
Restricts the list of possible file names, such as those beginning
with . (period)\&.
.RE
.IP "\fBXmNfileListItems\fP" 10
Specifies the items in the file list\&.
This is the \fBXmNlistItems\fP resource in SelectionBox, renamed for
FileSelectionBox\&.
\fBXtGetValues\fP for this resource returns the list items themselves,
not a copy of the list items\&.
The application must not free the returned items\&.
.IP "\fBXmNfileListItemCount\fP" 10
Specifies the number of items in the file list\&.
This is the \fBXmNlistItemCount\fP resource in SelectionBox, renamed for
FileSelectionBox\&.
The value must not be negative\&.
.IP "\fBXmNfileListLabelString\fP" 10
Specifies the label string of the file list\&.
This is the \fBXmNlistLabelString\fP resource in SelectionBox, renamed
for FileSelectionBox\&.
The default for this resource depends on the locale\&.
In the C locale the default is \fBFiles\fP\&.
.IP "" 10
Now that some default localized label strings are provided through
message catalogs for the children of composite widgets, the
\fBlabelString\fP resources
cannot be set on the child through default resource files\&.
Instead, the resource provided at the parent level must be used\&.
.IP "\fBXmNfileSearchProc\fP" 10
Specifies a file search procedure to replace the default file search
procedure\&.
FileSelectionBox\&'s default file search procedure fulfills the needs of
most applications\&.
Because it is impossible to cover the requirements of all applications,
you can replace the default search procedure\&.
.IP "" 10
The file search procedure is called with two arguments:
the FileSelectionBox widget and a pointer to an
\fBXmFileSelectionBoxCallbackStruct\fR structure\&.
The callback structure is generated by the
\fBXmNqualifySearchDataProc\fP (and possibly modified by the
\fBXmNdirSearchProc\fP)\&.
It contains all information required to conduct a file search, including
the directory mask and a qualified base directory and search pattern\&.
Once this procedure is called,
it is up to the search routine to generate a new list of
files and update the FileSelectionBox widget by using \fBXtSetValues\fP\&.
.IP "" 10
The search procedure must set \fBXmNlistUpdated\fP\&.
If it generates a new list of files, it must also set
\fBXmNfileListItems\fP and \fBXmNfileListItemCount\fP\&.
.IP "" 10
It is recommended that the search procedure always generate a new list of
files\&.
If the \fImask\fP member of the callback structure is the same as the
\fImask\fP member of the callback struct in the preceding call to the
search procedure, the procedure may elect not to generate a new list of
files\&.
In this case it must set \fBXmNlistUpdated\fP to False\&.
.IP "" 10
If the search procedure generates a new list of files, it must set
\fBXmNfileListItems\fP to the new list of files and
\fBXmNfileListItemCount\fP to the number of items in the list\&.
If there are no files, it sets \fBXmNfileListItems\fP to NULL and
\fBXmNfileListItemCount\fP to 0 (zero)\&.
In either case it must set \fBXmNlistUpdated\fP to True\&.
.IP "" 10
In constructing the list of files, the search procedure should include
only files of the types specified by the widget\&'s \fBXmNfileTypeMask\fP\&.
.IP "" 10
Setting \fBXmNdirSpec\fP is optional, but recommended\&.
Set this attribute to the full file specification of the directory
searched\&.
The directory specification is displayed below the directory and file
lists\&.
.IP "\fBXmNfileTypeMask\fP" 10
Specifies the type of files listed in the file list\&.
The possible values are
.RS
.IP "\fBXmFILE_REGULAR\fP" 10
Restricts the file list to contain only regular
files\&.
.IP "\fBXmFILE_DIRECTORY\fP" 10
Restricts the file list to contain only
directories\&.
.IP "\fBXmFILE_ANY_TYPE\fP" 10
Allows the list to contain all file types
including directories\&.
.RE
.IP "\fBXmNfilterLabelString\fP" 10
Specifies the label string for the text entry field for the directory
mask\&.
The default for this resource depends on the locale\&.
In the C locale the default is \fBFilter\fP\&.
.IP "" 10
Now that some default localized label strings are provided through
message catalogs for the children of composite widgets, the
\fBlabelString\fP resources
cannot be set on the child through default resource files\&.
Instead, the resource provided at the parent level must be used\&.
.IP "\fBXmNlistUpdated\fP" 10
Specifies an attribute that is set only by the directory and file search
procedures\&.
This resource is set to True if the
search procedure updated the directory or file list\&.
.IP "\fBXmNnoMatchString\fP" 10
Specifies a string to be displayed in the file list if the list of files
is empty\&.
.IP "\fBXmNpattern\fP" 10
Specifies the search pattern used in combination with \fBXmNdirectory\fP
in determining the files and directories to be displayed\&.
The default value is determined by \fBXmNqualifySearchDataProc\fP
and depends on the initial values of \fBXmNdirMask\fP,
\fBXmNdirectory\fP, and \fBXmNpattern\fP\&.
If the default is NULL or empty, a pattern that matches all files is
used\&.
.IP "\fBXmNpathMode\fP" 10
Specifies whether or not an additional text field will be used to
display and edit the filter\&. The possible values are
.RS
.IP "\fBXmPATH_MODE_FULL\fP" 10
Specifies that no additional text field will be used to display
the filter\&. There will just be a single text field to display
\fBXmNdirMask\fP\&.
.IP "\fBXmPATH_MODE_RELATIVE\fP" 10
Specifies that there will be two text field displays, one to display
the \fBXmNdirectory\fP and one to display the \fBXmNpattern\fP\&. In
this instance, the \fBXmNfilterLabelString\fP resource applies to the
text field for
\fBXmNpattern\fP and \fBXmNdirTextLabelString\fP applies to the text
field for \fBXmNdirectory\fP\&.
.RE
.IP "\fBXmNqualifySearchDataProc\fP" 10
Specifies a search data qualification procedure to replace the default
data qualification procedure\&.
FileSelectionBox\&'s default data qualification procedure fulfills the
needs of most applications\&.
Because it is impossible to cover the requirements of all applications,
you can replace the default procedure\&.
.IP "" 10
The data qualification procedure is called to generate a qualified
directory mask, base directory, and search pattern for use by the
directory and file search procedures\&.
It is called with three arguments:
the FileSelectionBox widget and pointers to two
\fBXmFileSelectionBoxCallbackStruct\fR structures\&.
The first callback structure contains the input data\&.
The second callback structure contains the output data, to be filled in by
the data qualification procedure\&.
.IP "" 10
If the input \fIdir\fP and \fIpattern\fP members are not NULL, the
procedure must copy them to the corresponding members of the output
callback structure\&.
.IP "" 10
If the input \fIdir\fP is NULL, the procedure constructs the
output \fIdir\fP as follows:
If the input \fImask\fP member is NULL, the procedure uses the
widget\&'s \fBXmNdirectory\fP as the output \fIdir\fP; otherwise, it
extracts the output \fIdir\fP from the input \fImask\fP\&.
If the resulting output \fIdir\fP is empty, the procedure uses
the current working directory instead\&.
.IP "" 10
If the input \fIpattern\fP is NULL, the procedure constructs
the output \fIpattern\fP as follows:
If the input \fImask\fP member is NULL, the procedure uses the
widget\&'s \fBXmNpattern\fP as the output \fIpattern\fP; otherwise, it
extracts the output \fIpattern\fP from the input \fImask\fP\&.
If the resulting output \fIpattern\fP is empty, the procedure
uses a pattern that matches all files instead\&.
.IP "" 10
The data qualification procedure constructs the output \fImask\fP from
the output \fIdir\fP and \fIpattern\fP\&.
The procedure must ensure that the output \fIdir\fP, \fIpattern\fP, and
\fImask\fP are fully qualified\&.
.IP "" 10
If the input \fIvalue\fP member is not NULL, the procedure must copy it
to the output \fIvalue\fP member; otherwise, the procedure must copy the
widget\&'s \fBXmNdirSpec\fP to the output \fIvalue\fP\&.
.IP "" 10
The data qualification procedure must calculate the lengths of the
output \fIvalue\fP, \fImask\fP, \fIdir\fP, and \fIpattern\fP members and
must fill in the corresponding length members of the output callback
struct\&.
.IP "" 10
The data qualification procedure must copy the input \fIreason\fP and
\fIevent\fP members to the corresponding output members\&.
.PP
The values of the \fBXmNdirSearchProc\fP and \fBXmNfileSearchProc\fP
are procedure pointers of type \fBXmSearchProc\fR, defined as
follows:
.PP
.nf
void (* XmSearchProc) (\fIw, search_data\fP)
Widget \fIw\fP;
XtPointer \fIsearch_data\fP;
.fi
.IP "\fIw\fP" 10
The FileSelectionBox widget
.IP "\fIsearch_data\fP" 10
Pointer to an \fBXmFileSelectionBoxCallbackStruct\fR containing
information for conducting a search
.PP
The value of the \fBXmNqualifySearchDataProc\fP resource
is a procedure pointer of type \fBXmQualifyProc\fR, defined
as follows:
.PP
.nf
void (* XmQualifyProc) (\fIw, input_data, output_data\fP)
Widget \fIw\fP;
XtPointer \fIinput_data\fP;
XtPointer \fIoutput_data\fP;
.fi
.IP "\fIw\fP" 10
The FileSelectionBox widget
.IP "\fIinput_data\fP" 10
Pointer to an \fBXmFileSelectionBoxCallbackStruct\fR containing
input data to be qualified
.IP "\fIoutput_data\fP" 10
Pointer to an \fBXmFileSelectionBoxCallbackStruct\fR containing
output data to be filled in by the qualification procedure
.SS "Inherited Resources"
.PP
FileSelectionBox inherits behavior and resources from the
superclasses described in the following tables\&.
For a complete description of each resource, refer to the
reference page for that superclass\&.
.PP
.TS
tab() box;
c s s s s
l| l| l| l| l.
\fBXmSelectionBox Resource Set\fP
\fBName\fP\fBClass\fP\fBType\fP\fBDefault\fP\fBAccess\fP
_____
XmNapplyCallbackXmCCallbackXtCallbackListNULLC
_____
XmNapplyLabelStringXmCApplyLabelStringXmStringdynamicCSG
_____
XmNcancelCallbackXmCCallbackXtCallbackListNULLC
_____
XmNcancelLabelStringXmCCancelLabelStringXmStringdynamicCSG
_____
XmNchildPlacementXmCChildPlacementunsigned charXmPLACE_ABOVE_SELECTIONCSG
_____
XmNdialogTypeXmCDialogTypeunsigned charXmDIALOG_FILE_SELECTIONG
_____
XmNhelpLabelStringXmCHelpLabelStringXmStringdynamicCSG
_____
XmNlistItemCountXmCItemCountintdynamicCSG
_____
XmNlistItemsXmCItemsXmStringTabledynamicCSG
_____
XmNlistLabelStringXmCListLabelStringXmStringdynamicCSG
_____
XmNlistVisibleItemCountXmCVisibleItemCountintdynamicCSG
_____
XmNminimizeButtonsXmCMinimizeButtonsBooleanFalseCSG
_____
XmNmustMatchXmCMustMatchBooleanFalseCSG
_____
XmNnoMatchCallbackXmCCallbackXtCallbackListNULLC
_____
XmNokCallbackXmCCallbackXtCallbackListNULLC
_____
XmNokLabelStringXmCOkLabelStringXmStringdynamicCSG
_____
XmNselectionLabelStringXmCSelectionLabelStringXmStringdynamicCSG
_____
XmNtextAcceleratorsXmCTextAcceleratorsXtAcceleratorsdefaultC
_____
XmNtextColumnsXmCColumnsshortdynamicCSG
_____
XmNtextStringXmCTextStringXmStringdynamicCSG
_____
.TE
.PP
.TS
tab() box;
c s s s s
l| l| l| l| l.
\fBXmBulletinBoard Resource Set\fP
\fBName\fP\fBClass\fP\fBType\fP\fBDefault\fP\fBAccess\fP
_____
XmNallowOverlapXmCAllowOverlapBooleanTrueCSG
_____
XmNautoUnmanageXmCAutoUnmanageBooleanFalseCG
_____
XmNbuttonFontListXmCButtonFontListXmFontListdynamicCSG
_____
XmNbuttonRenderTableXmCButtonRenderTableXmRenderTabledynamicCSG
_____
XmNcancelButtonXmCWidgetWidgetCancel buttonSG
_____
XmNdefaultButtonXmCWidgetWidgetOK buttonSG
_____
XmNdefaultPositionXmCDefaultPositionBooleanTrueCSG
_____
XmNdialogStyleXmCDialogStyleunsigned chardynamicCSG
_____
XmNdialogTitleXmCDialogTitleXmStringNULLCSG
_____
XmNfocusCallbackXmCCallbackXtCallbackListNULLC
_____
XmNlabelFontListXmCLabelFontListXmFontListdynamicCSG
_____
XmNlabelRenderTableXmCLabelRenderTableXmRenderTabledynamicCSG
_____
XmNmapCallbackXmCCallbackXtCallbackListNULLC
_____
XmNmarginHeightXmCMarginHeightDimension10CSG
_____
XmNmarginWidthXmCMarginWidthDimension10CSG
_____
XmNnoResizeXmCNoResizeBooleanFalseCSG
_____
XmNresizePolicyXmCResizePolicyunsigned charXmRESIZE_ANYCSG
_____
XmNshadowTypeXmCShadowTypeunsigned charXmSHADOW_OUTCSG
_____
XmNtextFontListXmCTextFontListXmFontListdynamicCSG
_____
XmNtextRenderTableXmCTextRenderTableXmRenderTabledynamicCSG
_____
XmNtextTranslationsXmCTranslationsXtTranslationsNULLC
_____
XmNunmapCallbackXmCCallbackXtCallbackListNULLC
_____
.TE
.PP
.TS
tab() box;
c s s s s
l| l| l| l| l.
\fBXmManager Resource Set\fP
\fBName\fP\fBClass\fP\fBType\fP\fBDefault\fP\fBAccess\fP
_____
XmNbottomShadowColorXmCBottomShadowColorPixeldynamicCSG
_____
XmNbottomShadowPixmapXmCBottomShadowPixmapPixmapXmUNSPECIFIED_PIXMAPCSG
_____
XmNforegroundXmCForegroundPixeldynamicCSG
_____
XmNhelpCallbackXmCCallbackXtCallbackListNULLC
_____
XmNhighlightColorXmCHighlightColorPixeldynamicCSG
_____
XmNhighlightPixmapXmCHighlightPixmapPixmapdynamicCSG
_____
XmNinitialFocusXmCInitialFocusWidgetdynamicCSG
_____
XmNlayoutDirectionXmCLayoutDirectionXmDirectiondynamicCG
_____
XmNnavigationTypeXmCNavigationTypeXmNavigationTypeXmTAB_GROUPCSG
_____
XmNpopupHandlerCallbackXmCCallbackXtCallbackListNULLC
_____
XmNshadowThicknessXmCShadowThicknessDimensiondynamicCSG
_____
XmNstringDirectionXmCStringDirectionXmStringDirectiondynamicCG
_____
XmNtopShadowColorXmCTopShadowColorPixeldynamicCSG
_____
XmNtopShadowPixmapXmCTopShadowPixmapPixmapdynamicCSG
_____
XmNtraversalOnXmCTraversalOnBooleanTrueCSG
_____
XmNunitTypeXmCUnitTypeunsigned chardynamicCSG
_____
XmNuserDataXmCUserDataXtPointerNULLCSG
_____
.TE
.PP
.TS
tab() box;
c s s s s
l| l| l| l| l.
\fBComposite Resource Set\fP
\fBName\fP\fBClass\fP\fBType\fP\fBDefault\fP\fBAccess\fP
_____
XmNchildrenXmCReadOnlyWidgetListNULLG
_____
XmNinsertPositionXmCInsertPositionXtOrderProcNULLCSG
_____
XmNnumChildrenXmCReadOnlyCardinal0G
_____
.TE
.PP
.TS
tab() box;
c s s s s
l| l| l| l| l.
\fBCore Resource Set\fP
\fBName\fP\fBClass\fP\fBType\fP\fBDefault\fP\fBAccess\fP
_____
XmNacceleratorsXmCAcceleratorsXtAcceleratorsdynamicN/A
_____
XmNancestorSensitiveXmCSensitiveBooleandynamicG
_____
XmNbackgroundXmCBackgroundPixeldynamicCSG
_____
XmNbackgroundPixmapXmCPixmapPixmapXmUNSPECIFIED_PIXMAPCSG
_____
XmNborderColorXmCBorderColorPixelXtDefaultForegroundCSG
_____
XmNborderPixmapXmCPixmapPixmapXmUNSPECIFIED_PIXMAPCSG
_____
XmNborderWidthXmCBorderWidthDimension0CSG
_____
XmNcolormapXmCColormapColormapdynamicCG
_____
XmNdepthXmCDepthintdynamicCG
_____
XmNdestroyCallbackXmCCallbackXtCallbackListNULLC
_____
XmNheightXmCHeightDimensiondynamicCSG
_____
XmNinitialResourcesPersistentXmCInitialResourcesPersistentBooleanTrueC
_____
XmNmappedWhenManagedXmCMappedWhenManagedBooleanTrueCSG
_____
XmNscreenXmCScreenScreen *dynamicCG
_____
XmNsensitiveXmCSensitiveBooleanTrueCSG
_____
XmNtranslationsXmCTranslationsXtTranslationsdynamicCSG
_____
XmNwidthXmCWidthDimensiondynamicCSG
_____
XmNxXmCPositionPosition0CSG
_____
XmNyXmCPositionPosition0CSG
_____
.TE
.SS "Callback Information"
.PP
A pointer to the following structure is passed to each callback:
.PP
.nf
typedef struct
{
int \fIreason\fP;
XEvent \fI* event\fP;
XmString \fIvalue\fP;
int \fIlength\fP;
XmString \fImask\fP;
int \fImask_length\fP;
XmString \fIdir\fP;
int \fIdir_length\fP;
XmString \fIpattern\fP;
int \fIpattern_length\fP;
} XmFileSelectionBoxCallbackStruct;
.fi
.IP "\fIreason\fP" 10
Indicates why the callback was invoked
.IP "\fIevent\fP" 10
Points to the \fBXEvent\fP that triggered the callback
.IP "\fIvalue\fP" 10
Specifies the current value of \fBXmNdirSpec\fP
.IP "\fIlength\fP" 10
Specifies the number of bytes in \fIvalue\fP
This member is obsolete and exists for compatibility with
earlier releases\&.
.IP "\fImask\fP" 10
Specifies the current value of \fBXmNdirMask\fP
.IP "\fImask_length\fP" 10
Specifies the number of bytes in \fImask\fP
This member is obsolete and exists for compatibility with
earlier releases\&.
.IP "\fIdir\fP" 10
Specifies the current base directory
.IP "\fIdir_length\fP" 10
Specifies the number of bytes in \fIdir\fP
This member is obsolete and exists for compatibility with
earlier releases\&.
.IP "\fIpattern\fP" 10
Specifies the current search pattern
.IP "\fIpattern_length\fP" 10
Specifies the number of bytes in \fIpattern\fP
This member is obsolete and exists for compatibility with
earlier releases\&.
.SS "Translations"
.PP
XmFileSelectionBox inherits translations from XmSelectionBox\&.
.SS "Accelerators"
.PP
The \fBXmNtextAccelerators\fP from XmSelectionBox are added to the
selection and directory mask (filter) Text descendants of
XmFileSelectionBox\&.
.SS "Action Routines"
.PP
The XmFileSelectionBox action routines are
.IP "SelectionBoxUpOrDown(\fBPrevious|Next|First|Last\fP):" 10
If neither the selection text nor the directory mask (filter) text has
the focus, this action does nothing\&.
.IP "" 10
If the selection text has the focus, the term \fIlist\fP in the
following description refers to the file list, and the term \fItext\fP
refers to the selection text\&.
If the directory mask text has the focus, \fIlist\fP refers to the
directory list, and \fItext\fP refers to the directory mask text\&.
.IP "" 10
When called with an argument of \fBPrevious\fP, or 0 (zero) for
compatibility, this action
selects the previous item in the
list and replaces the text with that item\&.
.IP "" 10
When called with an argument of \fBNext\fP, or 1 for
compatibility, this action
selects the next item in the
list and replaces the text with that item\&.
.IP "" 10
When called with an argument of \fBFirst\fP, or 2 for
compatibility, this action
selects the first item in the
list and replaces the text with that item\&.
.IP "" 10
When called with an argument of \fBLast\fP, or 3 for
compatibility, this action
selects the last item in the
list and replaces the text with that item\&.
.IP "SelectionBoxRestore():" 10
If neither the selection text nor the directory mask (filter) text has
the focus, this action does nothing\&.
.IP "" 10
If the selection text has the focus, this action
replaces the selection text with
the selected item in the file list\&.
If no item in the file list is selected, it clears the selection text\&.
.IP "" 10
If the directory mask text has the focus, this action
replaces the directory mask
text with a new directory mask constructed from the \fBXmNdirectory\fP
and \fBXmNpattern\fP resources\&.
.SS "Additional Behavior"
.PP
The FileSelectionBox widget has the following additional behavior:
.IP "\fB<Key>\fP\fB<osfCancel>\fP:" 10
Calls the activate callbacks for the cancel button if it is sensitive\&.
If no cancel button exists and the parent of the FileSelectionBox is a manager,
it passes the event to the parent\&.
.IP "\fB<Key>\fP\fB<osfActivate>\fP\ in\ Selection\ Text:" 10
Calls the selection text widget\&'s \fBXmNactivateCallback\fP callbacks\&.
If \fBXmNmustMatch\fP is True and the selection text does not match an
item in the file list, it calls the \fBXmNnoMatchCallback\fP
callbacks with
reason \fBXmCR_NO_MATCH\fP\&.
Otherwise, it calls the \fBXmNokCallback\fP callbacks with reason
\fBXmCR_OK\fP\&.
.IP "\fB<Key>\fP\fB<osfActivate>\fP\ in\ Directory\ Mask\ Text:" 10
Calls the directory mask text widget\&'s \fBXmNactivateCallback\fP
callbacks,
initiates a directory and file search, and
calls the \fBXmNapplyCallback\fP callbacks with reason \fBXmCR_APPLY\fP\&.
.IP "\fB<Btn1Down>\fP\fB(2+)\fP\ or\ \fB<Key>\fP\fB<osfActivate>\fP\ in\ Directory\ List:" 10
Calls the directory list widget\&'s \fBXmNdefaultActionCallback\fP
callbacks,
initiates a directory and file search,
and calls the \fBXmNapplyCallback\fP callbacks with reason \fBXmCR_APPLY\fP\&.
.IP "\fB<Btn1Down>\fP\fB(2+)\fP\ or\ \fB<Key>\fP\fB<osfActivate>\fP\ in\ File\ List:" 10
Calls the file list widget\&'s \fBXmNdefaultActionCallback\fP
callbacks and
calls the \fBXmNokCallback\fP callbacks with reason \fBXmCR_OK\fP\&.
.IP "\fB<Key>\fP\fB<osfSelect>\fP\ in\ Directory\ List:" 10
Generates a new directory mask, using the selected list item as the
directory and the pattern extracted from the current directory mask text
as the search pattern\&.
If the search pattern is empty, it uses a pattern that matches all files in
the directory\&.
Replaces the directory mask text with the new directory mask\&.
.IP "\fB<Key>\fP\fB<osfSelect>\fP\ in\ File\ List:" 10
Replaces the selection text with the selected list item\&.
.IP "\fB<Btn2Down>\fP in File List:" 10
Drags the content of one or more selected list items using the drag
and drop facility\&. If \fB<Btn2Down\fP is pressed on an unselected item,
drags only that item, excluding any other selected items\&.
.IP "" 10
This action sets the \fBXmNconvertProc\fP of the DragContext to a
function that calls the \fBXmNconvertCallback\fP procedures of the file
list, possibly multiple times, for the \fB_MOTIF_DROP\fP selection\&.
.IP "\fB<Btn2Down>\fP in Directory List:" 10
Drags the content of one or more selected list items using the drag
and drop facility\&. If \fB<Btn2Down\fP is pressed on an unselected item,
it drags only that item, excluding any other selected items\&.
.IP "" 10
This action sets the \fBXmNconvertProc\fP of the DragContext to a
function that calls the \fBXmNconvertCallback\fP procedures of the
directory list, possibly multiple times, for the \fB_MOTIF_DROP\fP
selection\&.
.IP "\fB<Apply\ Button\ Activated>\fP:" 10
Initiates a directory and file search\&.
Calls the \fBXmNapplyCallback\fP callbacks with reason \fBXmCR_APPLY\fP\&.
.IP "\fB<OK\ Button\ Activated>\fP:" 10
If \fBXmNmustMatch\fP is True and the selection text does not match an
item in the file list, calls the \fBXmNnoMatchCallback\fP callbacks with
reason \fBXmCR_NO_MATCH\fP\&.
Otherwise, calls the \fBXmNokCallback\fP callbacks with reason
\fBXmCR_OK\fP\&.
.IP "\fB<Cancel\ Button\ Activated>\fP:" 10
Calls the \fBXmNcancelCallback\fP callbacks with reason
\fBXmCR_CANCEL\fP\&.
.IP "\fB<Help\ Button\ Activated>\fP:" 10
Calls the \fBXmNhelpCallback\fP callbacks with reason \fBXmCR_HELP\fP\&.
.IP "\fB<Key>\fP\fB<osfActivate>\fP:" 10
If no button, list widget, or text widget has the keyboard focus,
if \fBXmNmustMatch\fP is True and the selection text does not match an
item in the file list, it calls the \fBXmNnoMatchCallback\fP callbacks with
reason \fBXmCR_NO_MATCH\fP\&.
Otherwise, it calls the \fBXmNokCallback\fP callbacks with reason
\fBXmCR_OK\fP\&.
.SS "Virtual Bindings"
.PP
The bindings for virtual keys are vendor specific\&.
For information about bindings for virtual buttons and keys, see \fBVirtualBindings\fP(3)\&.
.SH "RELATED"
.PP
\fBComposite\fP(3),
\fBConstraint\fP(3),
\fBCore\fP(3),
\fBXmBulletinBoard\fP(3),
\fBXmCreateFileSelectionBox\fP(3),
\fBXmCreateFileSelectionDialog\fP(3),
\fBXmFileSelectionBoxGetChild\fP(3),
\fBXmFileSelectionDoSearch\fP(3),
\fBXmManager\fP(3),
\fBXmSelectionBox\fP(3)
\fBXmVaCreateFileSelectionBox\fP(3), and
\fBXmVaCreateManagedFileSelectionBox\fP(3),\&.
|