On Mon, 23 Aug 2021 10:15:51 +0530 Jason Liam wrote:
JL> @VZ There are two distinct effects when the text gets too long:
JL> 1) *Effect 1 *The one which you described above. Typing at the end does
JL> scroll it so that the current caret position remains always visible. This
JL> works in my case also as expected.
JL> 2) *Effect 2 *When the text gets too long then we can use the *TRACKPAD *of
JL> the laptop to scroll horizontally(left and right). This is shown in the
JL> first video that I uploaded(of TOR Browser textctrl). Note that this 2nd
JL> effect
JL> *does not happen using a mouse and only happens using a trackpad. *
JL> My question is that why doesn't this 2nd effect happen in wxWidgets'
JL> wxTextCtrl using a *TRACKPAD ? *I have tried the text sample provided in
JL> samples directory and there also in single line textctrl there is no
JL> horizontal scrolling using trackpad.
JL> Can you confirm that this 2nd effect is intentionally not there in
JL> wxWidgets' wxTextCtrl(probably because wxWidgets use native behavior)?
Yes. I can't scroll using trackpad in native GtkEntries in other GTK
applications neither.
JL> PS: I think that this 2nd effect is not natively supported and therefore it
JL> is also not there in wxWidgets. For example, whenever I try to do this in
JL> any of the web browsers or any other web based technology using trackpad
JL> then this effect is supported but when I try to do this in the search bar
JL> of the OS that i am running(Ubuntu for example) using trackpad then this
JL> effect is not supported. Can this feature be added to wxWidgets' wxTextCtrl
JL> in future versions or to maintain native behavior there is no plan for
JL> this?
No, there are no plans to do it. Personally this doesn't seem like a very
useful feature to me: usually single line text controls not fitting their
contents should be avoided, so it should be quite rare to have them in the
first place and I don't really know who will even think to use trackpad
scrolling to scroll in them. I admit I had never even though to do it until
now myself.