[Gambas-user] Still no drag and drop

Mayost Sharon sharon at 455.co.il
Fri Mar 17 09:15:05 CET 2023


---------- Original Message -----------
From: "Mayost Sharon" <sharon at 455.co.il>
To: Gambas Mailing List <user at lists.gambas-basic.org>
Sent: Fri, 17 Mar 2023 09:58:39 +0200
Subject: Re: [Gambas-user] Still no drag and drop

> ---------- Original Message -----------
> From: T Lee Davidson <t.lee.davidson at gmail.com>
> To: user at lists.gambas-basic.org
> Sent: Thu, 16 Mar 2023 16:32:34 -0400
> Subject: Re: [Gambas-user] Still no drag and drop
> 
> > On 3/16/23 14:52, Steve via User wrote:
> > > I am running on fedora. The 3.18.1 update finally came through. It corrected my major problems. However the drag and drop is 
> > > still non-functional for me. It does not even trigger the event. I am using it on a list box and the dragon drop still does not 
> > > trigger at all.
> > 
> > It works fine here. With just a ListBox, a TextBox, and the following code, I 
> > can drag the textbox text to the listbox and add it to the list:
> > 
> > [code]
> > ' Gambas class file
> > 
> > Public Sub ListBox1_Drop()
> > 
> >    ListBox1.Add(Drag.Data)
> > 
> > End
> > 
> > Public Sub TextBox1_MouseDrag()
> > 
> >    TextBox1.Drag(TextBox1.Text)
> > 
> > End
> > [/code]
> > 
> > Be sure you have set ListBox.Drop = True.
> > 
> > -- 
> > Lee
> > 
> > ----[ http://gambaswiki.org/wiki/doc/netiquette ]----
> ------- End of Original Message -------
> 
> Hello
> 
> I'm on Fedora 36 and Gamba 3.18.1
> In ListBox when ListBox1.Drop=True it works fine
> but
> In TextBox even if TextBox1.Drop=False it also works
> 
> Is this how it should be?
> 
> Thank you
> 
> ----[ http://gambaswiki.org/wiki/doc/netiquette ]----
------- End of Original Message -------

Hello

Sorry

I notice that if I write in the code TextBox1.Drop=False it really cancels the drop event
But if I take a new textbox the default property TextBox1.Drop is false
This allows an drop event

Thanks


More information about the User mailing list