[Gambas-user] Filling a text area with a Text file using drag and drop...

BB adamnt42 at gmail.com
Thu Oct 12 07:20:43 CEST 2023


On 12/10/23 3:39 pm, Denis Crowther wrote:
> On 10/12/23 15:54, BB wrote:
>>
>> On 12/10/23 2:18 pm, Denis Crowther wrote:
>>> On 10/12/23 10:00, sbungay wrote:
>>>>    If a text file is dragged from a file manager to a text area, 
>>>> the drop event of the text area is not raised. Why is that and can 
>>>> it be changed?
>>>
>>> Works here.
>>>
>>> Did you set: Drop = True in the IDE or code?
>>>
>> Yes, it appears that the form designer Drop property is not set or 
>> saved (in the IDE) so it has to be set via code.
>>
>> To be more explicit, the IDE default value for the Drop property is 
>> true, so when the form is saved, this is not output to the .form 
>> file. Since the property is just a boolean, when the form is loaded 
>> at runtime that property is not set thus it is false. This is a bug.
>>
>> b
>>
>>
>>
>> ----[ http://gambaswiki.org/wiki/doc/netiquette ]----
>
> My Default value is False and it is saved.
Yes, It will write the value out if it is false, but how is your 
textarea.drop property default set to false in the IDE? (and if it is, 
then why is it output to the .form file?)
>
> Here everything about the "Drop" works as expected.
>
b


More information about the User mailing list