You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Multiple issues with ModalDialog from "extensions/olcPGEX_QuickGUI.h"
I tried using ModalDialog in my application but I keep getting runtime errors.
Issues:
Directories that are user protected (no read access) if entered, throw an std::filesystem::filesystem_error for illegal access.
Backspace doesn't update the list boxes for directories or files.
UI doesn't update to screen size.
Input are not easy to know unless you see the code.
List will clamp value when updated possibly putting multiple paths ahead of the intended path.
Example:
root -> 7 dirs
dir 1 -> 5 dirs
dir 2 -> 1 dir
dir 3 -> 0 dirs
It will go to dir 3 right away because the nSelectedItem is clamped to vector size which decreases in each directory causing the bSelectionChanged be true even though the user didn't select anything.
Possible Fixes:
Instead of putting all directories into the vector, only allow ones with read permission using
Input a few buttons as well a keybinds so we don't need to tell them to Backspace to go to parent or Esc to escape
ListBox should be given a new variable
public:
bool bHasInteracted = false;
Thanks for the great videos as well!
The text was updated successfully, but these errors were encountered:
Multiple issues with ModalDialog from "extensions/olcPGEX_QuickGUI.h"
I tried using ModalDialog in my application but I keep getting runtime errors.
Issues:
Directories that are user protected (no read access) if entered, throw an std::filesystem::filesystem_error for illegal access.
Backspace doesn't update the list boxes for directories or files.
UI doesn't update to screen size.
Input are not easy to know unless you see the code.
List will clamp value when updated possibly putting multiple paths ahead of the intended path.
Example:
root -> 7 dirs
dir 1 -> 5 dirs
dir 2 -> 1 dir
dir 3 -> 0 dirs
It will go to dir 3 right away because the nSelectedItem is clamped to vector size which decreases in each directory causing the bSelectionChanged be true even though the user didn't select anything.
Possible Fixes:
Instead of putting all directories into the vector, only allow ones with read permission using
Make a new function for updating list
UI: Good luck
Input a few buttons as well a keybinds so we don't need to tell them to Backspace to go to parent or Esc to escape
ListBox should be given a new variable
Thanks for the great videos as well!
The text was updated successfully, but these errors were encountered: