Appendix A: System Routines — Symbol Table Utilities
1043
TI
-
89 / TI
-
92 Plus Developer Guide
Not for Distribution
Beta Version January 26, 2001
VarCreateFolderPopup
Declaration:
HANDLE
VarCreateFolderPopup
(WORD *
DefIndex
, WORD
Flags
)
Category(ies):
Symbol Table Utilities, Menus
Description:
Create a dynamic pop-up with a list of all of the current folders in the
system and return a handle to it.
Inputs:
Flags
— VCFP_ALL
Include “All” as the first option in the list. See VAR-LINK
F2 (View) for an example which is included below.
VCFP_SKIP_CURDIR
Do not include the current directory.
Outputs:
HANDLE of dynamic pop-up of all folders in the system, H_NULL if not
enough memory.
DefIndex
— Index of current default folder.
Assumptions:
Caller must eventually free the handle returned.
Side Effects:
May cause heap compression.
Availability:
All versions of the TI
-
89 / TI
-
92 Plus.
TI
-
89 / TI
-
92 Plus
Differences:
None
See Also:
See
SymFindFirst
for the basic source to this routine (not including
Flags
).
Example:
This example is basically the code from the VAR-LINK VIEW (
„
) key. It
creates a dialog with two dynamic pop-ups (DYNPOPUPs in the resource
file). One (hFolderPopup) of which uses
VarCreateFolderPopup
to list all
of the folders in the system including “All” so that the user can view all of
the folders in the system at one time.
(continued)