A file selector
This module implements a file selector object. (../include/depui/filesel.h)
Pressing enter/return in the filename area causes the directory and file lists to be refreshed with the new pattern. (../include/depui/filesel.c)
Clicking on the directory list causes the directory and file lists to be refreshed. (../include/depui/filesel.c)
Clicking on the file list selects a file. (../include/depui/filesel.c)
Pressing OK causes a MX_FILESEL_OK event to be sent to the parent window. WHen halding this event the parent window can call mx_filesel_info() to get the selected filename. The file selector widnow is destroyed afetr the MX_FILESEL_OK event. (../include/depui/filesel.c)
Part of the depui library.
MX_FILESEL
File selector window
This type is a standard DEPUI file selector. (../include/depui/filesel.h)
# define mx_filesel(id)
Create a file selector window
This macro creates a file selector with the given id number. (../include/depui/filesel.h)
void mx_filesel_refresh(MX_FILESEL* sel)
Refresh file selector contents
This function refreshes the directory and file lists of the file selector. (../include/depui/filesel.c)
Can we add a list of drive letters to the directory list for DOS? (../include/depui/filesel.c)
void mx_filesel_handler(MX_WIN* win)
Pressing enter/return in the filename area causes the directory and file lists to be refreshed with the new pattern. (../include/depui/filesel.c)
Clicking on the directory list causes the directory and file lists to be refreshed. (../include/depui/filesel.c)
Clicking on the file list selects a file. (../include/depui/filesel.c)
Pressing OK causes a MX_FILESEL_OK event to be sent to the parent window. WHen halding this event the parent window can call mx_filesel_info() to get the selected filename. The file selector widnow is destroyed afetr the MX_FILESEL_OK event. (../include/depui/filesel.c)
MX_FILESEL* mx_fileselwin(MX_FILESEL* sel, size_t size, MX_HANDLER handler, int theid)
Create file selector
This function creates a file selector object with a given handler and id number. (../include/depui/filesel.c)
mx_text_set(&sel->_dirs, "dir", -1, 0); (../include/depui/filesel.c)
mx_text_set(&sel->_files, "file", -1, 0); (../include/depui/filesel.c)
If the len parameter is less than 0 then the path is assumed to be zero terminated. (../include/depui/filesel.c)
!Allow a file selector to accept an existing (the default) or non-existing file (../include/depui/filesel.c)
!File selector information When a file has been selected with a file selector a MX_FILESEL_OK event is sent to the parent window. Then this function can be called to determine the filename selected. (../include/depui/filesel.c)
This function should only be called while handling a MX_FILESEL_OK event. (../include/depui/filesel.c)
The specified id number must match the one of the file selector. (../include/depui/filesel.c)
The returned filename is zero terminated. (../include/depui/filesel.c)
Generated by MXDOC 2.2 on Sun Feb 4 15:16:27 2007