函数名 |
PX_Object * PX_Object_ExplorerCreate(px_memorypool *mp, PX_Object *Parent,px_int x,px_int y,px_int Width,px_int Height,PX_FontModule *fm, PX_ExplorerGetPathFolderCount _func_gpfdc, PX_ExplorerGetPathFileCount _func_gpfec, PX_ExplorerGetPathFolderName _func_gpfdn, PX_ExplorerGetPathFileName _func_gpfcn, const px_char path[260] ); |
功能 |
创建文件浏览器 |
mp |
内存池 |
Parent |
父对象 |
x,y |
平面坐标 |
width,height |
宽度,高度 |
fm |
字模 |
_func_gpfdc |
读路径文件夹个数的回调函数 |
_func_gpfec |
读路径文件夹文件个数的回调函数 |
_func_gpfdn |
读路径文件夹名称的回调函数 |
_func_gpfcn |
读路径文件夹文件名的回调函数 |
|
如果创建成功返回对象指针,否者返回PX_NULL |
函数名 |
px_void PX_Object_ExplorerSetBorderColor(PX_Object *Object,px_color clr); |
功能 |
设置文件浏览器边框颜色 |
Object |
对象指针 |
clr |
颜色 |
|
|
函数名 |
px_void PX_Object_ExplorerSetPushColor(PX_Object *Object,px_color clr); |
功能 |
设置文件浏览器按下颜色 |
Object |
对象指针 |
clr |
颜色 |
|
|
函数名 |
px_void PX_Object_ExplorerSetCursorColor(PX_Object *Object,px_color clr); |
功能 |
设置文件浏览器指针颜色 |
Object |
对象指针 |
clr |
颜色 |
|
|
函数名 |
px_void PX_Object_ExplorerSetTextColor(PX_Object *Object,px_color clr); |
功能 |
设置文件浏览器指针颜色 |
Object |
对象指针 |
clr |
颜色 |
|
|
函数名 |
px_void PX_Object_ExplorerRefresh(PX_Object *Object); |
功能 |
刷新文件浏览器 |
Object |
对象指针 |
|
|
函数名 |
px_int PX_Object_ExplorerGetSelectedCount(PX_Object *Object); |
功能 |
取得文件浏览器选中个数 |
Object |
对象指针 |
返回值 |
选中个数 |
函数名 |
px_void PX_Object_ExplorerGetPath(PX_Object *Object,px_char path[PX_EXPLORER_MAX_PATH_LEN],px_int index); |
功能 |
取得文件浏览器选中路径 |
Object |
对象指针 |
index |
如果文件浏览器选中多个文件,则编码为0-N-1 |
path |
输出路径 |
返回值 |
|
函数名 |
px_void PX_Object_ExplorerOpen(PX_Object *Object); |
功能 |
打开文件浏览器 |
Object |
对象指针 |
返回值 |
|
函数名 |
px_void PX_Object_ExplorerClose(PX_Object *Object); |
功能 |
关闭文件浏览器 |
Object |
对象指针 |
返回值 |
|
函数名 |
px_void PX_Object_ExplorerSetFilter(PX_Object *Object,const px_char *filter); |
功能 |
设置文件浏览器的过滤参数 |
Object |
对象指针 |
filter |
过滤参数,例如”*.png\0*.jpg\0”以\0隔开 |
返回值 |
|
函数名 |
px_void PX_Object_ExplorerSetMaxSelectCount(PX_Object *Object,int selectCount); |
功能 |
设置文件浏览器的最大选中大小 |
Object |
对象指针 |
selectCount |
最大选中大小,默认为1,多选则为多值 |
返回值 |
|