I was guessing why my file dialog was not opening files certain times (using the irrlicht's filedialog) in my little editor (really simple GUI).Then I tried opening lots of files with the mesh viewer. At first try it opened files, but then it randomly didn't open files. why? I figured that when I select a file too fast it count as "double click". When clicking on "OK" button in the file dialog is done within a certain time from the last click (for example when we have selected a file), it is recognyzed as double click. I think the bug is double sided here.
1) double click (and maybe also triple click) should work only if the mouse cursor is almost in the same position of the first click (says 5x5 pixel area).
2) file dialog should not be closed by the second click of a double click by cliking on "OK" or other buttons. I don't know why but when this happens the dialog is closed without generating a FILE_SELECTED event.
this little bug may affect more other GUI element. didn't tested yet for other elements.
filedialog and double click
filedialog and double click
Junior Irrlicht Developer.
Real value in social networks is not about "increasing" number of followers, but about getting in touch with Amazing people.
- by Me
Real value in social networks is not about "increasing" number of followers, but about getting in touch with Amazing people.
- by Me
Re: filedialog and double click
My first guess is that this has to do with the custom listbox implementation for EGET_LISTBOX_CHANGED and EGET_LISTBOX_SELECTED_AGAIN which are not using double-click (double-click didn't exist back when this was written and it seems it was deliberately written to do something else). But not sure without debugging why it affects the OK button. Will have to debug - thanks for reporting.
IRC: #irrlicht on irc.libera.chat
Code snippet repository: https://github.com/mzeilfelder/irr-playground-micha
Free racer made with Irrlicht: http://www.irrgheist.com/hcraftsource.htm
Code snippet repository: https://github.com/mzeilfelder/irr-playground-micha
Free racer made with Irrlicht: http://www.irrgheist.com/hcraftsource.htm