[Gambas-user] File Chooser Drag and Drop

Bruce Steers bsteers4 at gmail.com
Sun Jul 17 16:39:44 CEST 2022


On Sun, 17 Jul 2022 at 15:27, Stephen Bungay <
SoftwareDevelopment at smartsonsite.com> wrote:

> I gave up on the file chooser, sorry, it's just not up to the task. Then
> again GAMBAS may no longer be up to the task as even the TextArea is not
> working according to the rules of causality. For example, using the file
> manager a text file can be dropped on the text area. The file name gets
> pasted into the text area, the "change" event fires, but the "drop"
> event does NOT fire?! How does THAT work? Moreover why is it allowed to
> work? When something is dropped on a control and that drop effects a
> change then the "drop" event must fire before the "change" event.
>
> Things appear to have strayed somewhat from first principals.
>

It's clearly just a TextArea bug i would say.
If the TextArea is readonly it does not paste at all.
So the Drop event never gets triggered but it pastes in the filename
causing a Change() event.
And if you use qt5 not gtk the Drop is completely disabled for TextArea !!

Don't give up.
If this is a bug i'll bet Benoit will have a look and soon have it fixed.

Clearly nobody has tried to drop things on a TextArea to discover this bug.

And it's not a FileChooser drag problem, we got around that with the
FileChooser.FileView property :)

If you use as Label or something other than a Textarea it works okay :)

BruceS
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.gambas-basic.org/pipermail/user/attachments/20220717/483b52fa/attachment.htm>


More information about the User mailing list