Hi all (again)!
I'm trying to create a menu with icaption control so that it would list my files from my hdd.
Display (displays currently selected item name) and when click'd, you'll see the list below of files
- item 1 (in root folder)
- item 2 (in root folder)
-- submenu1 (subfolder)
- item 3 (in submenu1)
- item 4 (in submenu1)
-- submenu 2 (subfolder)
- item 5 (in submenu2)
Submenu items should be placed under submenu under the main menu
This is what i have:
Display (displays currently selected item name) and when click'd, you'll see the list below of files
- item 1 (in root)
- item 2 (in root)
- item 3 (in subfolder1)
- item 4 (in subfolder1)
- item 5 (in subfolder2)
This is my string:
Code:
GetParam(kDataSelectionListUpper)->InitEnum("Data Selection List 1", 0, (int)dataLibrarian->dataFiles.size());
for(int i=0;i<dataLibrarian->dataFiles.size();i++){
GetParam(kDataSelectionListUpper)->SetDisplayText(i, dataLibrarian->dataFiles[i]->name.c_str());
}
upperDataSelectionControl = (ICaptionControl*)((ControlAction*)GetParam(kDataSelectionListUpper)->getData())->controls[0];
Each of the items has identifiers for folder like the folder name where the file is located but I can't turn that identifier into a submenu/folder/directory for the main popup.
Usually this kind of structure is on apps where you have File -> Open Recent -> list of items pops up on mouse over.
Any help appreciated (I think there might be few others needing a menu like that as well) :-)