[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Need information about changed filter selection in the FileChooser control


Hi Bruce

Am 01.11.25 um 19:26 schrieb Bruce Steers:
It's the problem with compound controls.
They will usually Inherit UserControl.class so all the UserControl events are automatically listed by the wiki. I added some info about events not happening in the UserControl wiki page https://gambaswiki.org/wiki/comp/gb.qt4/usercontrol

Here's the problem,
if you look at the FileChooser control source https://gitlab.com/gambas/gambas/-/tree/master/comp/src/gb.form/.src/File/Chooser/ you will see it is a class inheriting UserControl that adds the FDirChooser object. The FDirChooser consists of a DirView, a FileView , a textbox, a combobox and a panel of buttons. The internal controls mouse events are used in the internal operation of the parent Usercontrol so are not detected and sent by the FileChooser itself

Yes, I tried to reassemble FileChooser from source and was surprised about its complexity. The FilterCombo seemed to have a purely internal event handling.

hope that makes sense

My hack will be moot if Benoit adds a filter change event though, but you gotta love a good workaround right? :)

Absolutely :-) 👍!

Best regards

Claus