[Gambas-user] File Chooser Drag and Drop

Bruce Steers bsteers4 at gmail.com
Sun Jul 17 23:34:48 CEST 2022


Nice one fella :)

I found after removing the textarea (i tried some other things) then
re-adding it it started working as expected with qt5. :-\

gtk's a no-go though.

Respects
BruceS


On Sun, 17 Jul 2022 at 22:14, T Lee Davidson <t.lee.davidson at gmail.com>
wrote:

> On 7/17/22 10:01, Stephen Bungay 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.
>
> Please don't give up. Take heart. Thanks to the experimenting and
> reporting from BruceS, I was able to get a demo working.
>
> The demo uses the TextArea Drop event. Using its Drag event also works,
> but it behaves a bit differently.
>
> Project attached.
>
>
> --
> Lee
>
> P.S. If you're not familiar with what we've done to get around Gmail's
> stupid and heavy-handed malicious code filters, see:
> http://gambaswiki.org/wiki/howto/opengmailtxt
> ----[ http://gambaswiki.org/wiki/doc/netiquette ]----
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.gambas-basic.org/pipermail/user/attachments/20220717/1ea626a0/attachment.htm>


More information about the User mailing list