Icon View Thread

The following is the text of the current message along with any replies.
Messages 1 to 10 of 10 total
Thread Strange behaviour TMultiLineEdit
Fri, Nov 6 2015 7:57 AMPermanent Link

Ronald

Hi,

I have a form with controls attached to a dataset. In this form I have a TMultiLineEdit that gets filled with text from the dataset. If I run the application and click the mousecursor somewhere in the control (for inserting text), and if I start to type then the cursor jumps to the end of the text. I see this in IE and in Firefox.
What could cause this behaviour?

Greetings,
Ronald
Fri, Nov 6 2015 3:06 PMPermanent Link

Tim Young [Elevate Software]

Elevate Software, Inc.

Avatar

Email timyoung@elevatesoft.com

Ronald,

<<I have a form with controls attached to a dataset. In this form I have a TMultiLineEdit that gets filled with text from the dataset. If I run the application and click the mousecursor somewhere in the control (for inserting text), and if I start to type then the cursor jumps to the end of the text. I see this in IE and in Firefox. >>

Unfortunately, this is "normal" for now, but doesn't affect single-line edit controls because the entire set of text is normally selected in such cases.  I'll have to see what I can come up with to make this stop occurring.

Tim Young
Elevate Software
www.elevatesoft.com
Fri, Nov 6 2015 4:07 PMPermanent Link

Tim Young [Elevate Software]

Elevate Software, Inc.

Avatar

Email timyoung@elevatesoft.com

Ronald,

Actually, scratch that.  It *should* be working as-is, but for some reason the edit control contents are different and that is causing an issue.  I've got to look into this further, and I'll let you know what I find out.

Tim Young
Elevate Software
www.elevatesoft.com
Mon, Nov 9 2015 5:37 AMPermanent Link

Tim Young [Elevate Software]

Elevate Software, Inc.

Avatar

Email timyoung@elevatesoft.com

Ronald,

I was wrong.  My first replies were from looking at the EWB source code, and it looked like there was a potential issue present.  However, I tried to reproduce this over the weekend, but was unable to do so.  A simple form with a single-line and multi-line edit bound to a dataset do not have any issues with selective editing within the text on IE, FF, or Chrome.

What happens if you run something like the attached ? (it uses the example Albums dataset)

Tim Young
Elevate Software
www.elevatesoft.com



Attachments: dataedittest.zip
Mon, Nov 9 2015 9:01 AMPermanent Link

Ronald

Tim Young [Elevate Software] wrote:

Ronald,

I was wrong.  My first replies were from looking at the EWB source code, and it looked like there was a potential issue present.  However, I tried to reproduce this over the weekend, but was unable to do so.  A simple form with a single-line and multi-line edit bound to a dataset do not have any issues with selective editing within the text on IE, FF, or Chrome.

What happens if you run something like the attached ? (it uses the example Albums dataset)

Tim Young
Elevate Software
www.elevatesoft.com

Hi Tim,

I tested your project and it works fine... until I place my cursor in the middle of a sentence and press return. Then I save the record, browse to another record and return to the record that I just changed. Then it behaves wrong like I described. It seems to be having trouble with this return.

Greetings,
Ronald
Mon, Nov 9 2015 12:14 PMPermanent Link

Tim Young [Elevate Software]

Elevate Software, Inc.

Avatar

Email timyoung@elevatesoft.com

Ronald,

<< I tested your project and it works fine... until I place my cursor in the middle of a sentence and press return. Then I save the record, browse to another record and return to the record that I just changed. Then it behaves wrong like I described. It seems to be having trouble with this return. >>

Got it, it's now fixed, thanks.

Tim Young
Elevate Software
www.elevatesoft.com
Tue, Nov 17 2015 2:44 AMPermanent Link

Ronald

Tim Young [Elevate Software] wrote:

Ronald,

<< I tested your project and it works fine... until I place my cursor in the middle of a sentence and press return. Then I save the record, browse to another record and return to the record that I just changed. Then it behaves wrong like I described. It seems to be having trouble with this return. >>

Got it, it's now fixed, thanks.

Tim Young
Elevate Software
www.elevatesoft.com

Unfortunately, I still have the same problem in EWB 2.03. Did something go wrong with the update?
Tue, Nov 17 2015 1:04 PMPermanent Link

Tim Young [Elevate Software]

Elevate Software, Inc.

Avatar

Email timyoung@elevatesoft.com

Ronald,

<< Unfortunately, I still have the same problem in EWB 2.03. Did something go wrong with the update? >>

No, it's fixed here with the tests I'm running (using the project that I posted).  I just tried it again with IE and FF, and they both work fine.

Are you sure you're using 2.03 and that your project has been recompiled and then reloaded properly in the browser ?

Tim Young
Elevate Software
www.elevatesoft.com
Wed, Nov 18 2015 5:19 AMPermanent Link

Ronald

Tim Young [Elevate Software] wrote:

Ronald,

<< Unfortunately, I still have the same problem in EWB 2.03. Did something go wrong with the update? >>

No, it's fixed here with the tests I'm running (using the project that I posted).  I just tried it again with IE and FF, and they both work fine.

Are you sure you're using 2.03 and that your project has been recompiled and then reloaded properly in the browser ?

Tim Young
Elevate Software
www.elevatesoft.com


I am sure I am using 2.03 and have recompiled it. It behaves a little bit better the problem now only occurs the first time I edit the TMultiLineEdit. After that the problem is gone (even after I scroll to another record), until I refresh the data from te server again. The JSON for that particular datafield looks likes this:

,"omschrijving": "this
is
a
test"

Something wrong here?

Greetings,
Ronald
Wed, Nov 18 2015 8:24 AMPermanent Link

Tim Young [Elevate Software]

Elevate Software, Inc.

Avatar

Email timyoung@elevatesoft.com

Ronald,

<< I am sure I am using 2.03 and have recompiled it. It behaves a little bit better the problem now only occurs the first time I edit the TMultiLineEdit. After that the problem is gone (even after I scroll to another record), until I refresh the data from te server again. >>

I can't reproduce this at all here.  Please send me an example that demonstrates what you're seeing.

Tim Young
Elevate Software
www.elevatesoft.com
Image