Lazarus
Programming => Widgetset => GTK => Topic started by: tomitomy on October 29, 2017, 04:45:31 am
Title:
Drag and Drop text in TMemo will loss data.
Post by:
tomitomy
on
October 29, 2017, 04:45:31 am
Hi, I put some text in the TMemo, and then select some text then drag and drop, repeat this operation, and then the data will be loss.
Test Code:
Code: Pascal
[Select]
[+]
[-]
procedure
TForm1
.
Memo1Change
(
Sender
:
TObject
)
;
begin
Caption
:
=
IntToStr
(
Length
(
Memo1
.
Text
)
)
;
end
;
There is another problem, when I drag and drop the text, I can not get the current
SelStart
in the
OnChange
event.
Test Code:
Code: Pascal
[Select]
[+]
[-]
procedure
TForm1
.
Memo1Change
(
Sender
:
TObject
)
;
begin
writeln
(
Format
(
'%d, %d %s'
,
[
Memo1
.
SelStart
,
Memo1
.
SelLength
,
Memo1
.
SelText
]
)
)
;
end
;
Lazarus 1.8.0RC4 GTK2
OS: Linux Mint MATE 64-bit
Title:
Re: Drag and Drop text in TMemo will loss data.
Post by:
tomitomy
on
October 31, 2017, 02:55:43 am
Are these bugs? Or the GTK2 problem? Do I need to report to the bugtracker forum?
Can someone help me? I hope that the second problem can be fixed, so that my Undo/Redo code can work properly.
Title:
Re: Drag and Drop text in TMemo will loss data.
Post by:
zeljko
on
October 31, 2017, 09:10:49 am
It looks like a bug in gtk2
Title:
Re: Drag and Drop text in TMemo will loss data.
Post by:
tomitomy
on
October 31, 2017, 12:11:40 pm
Quote from: zeljko on October 31, 2017, 09:10:49 am
It looks like a bug in gtk2
Oh, that's too bad. Thank you for your help, Zeljko.
TinyPortal
© 2005-2018