The International Simutrans Forum

Development => Bug Reports => Topic started by: ronnie89b on December 20, 2015, 05:35:42 PM

Title: Text selection bug
Post by: ronnie89b on December 20, 2015, 05:35:42 PM
Hi!
In stable 120.0.1, I can select a word with double click, or a whole line with triple click. From 120.1.1 it doesn't work. So this function lost somewhere between this two version.
Title: Re: Text selection bug
Post by: Spacethingy on December 20, 2015, 08:41:37 PM
With r7697 (Win), I can confirm this. (Click and drag to select works fine.)
Title: Re: Text selection bug
Post by: prissi on December 20, 2015, 09:59:01 PM
Which build? If this is an SDL build, then you need SDL2 for this.
Title: Re: Text selection bug
Post by: TurfIt on December 20, 2015, 10:39:01 PM
Works fine for me. MinGW SDL1 r7640. The clicks need to be rather slow and deliberate. Rapid clicks do strange things...
Which text field are you trying?
Title: Re: Text selection bug
Post by: ronnie89b on December 20, 2015, 11:20:46 PM
I tried  with 120.1.1 and nightly r7702 (downloaded full package), didn't working. Click and drag is ok for me, too.
Slow and long clicks don't help in stops, vehicles or in the line management window.

Update: I downloaded simuwin-sdl-120-1-1.zip, and everything works fine with this version.
Title: Re: Text selection bug
Post by: TurfIt on December 31, 2015, 12:52:13 AM
r7543:(Ters): No hidden mouse pointer anymore   -  Cursor disappears when playing Simutrans (http://forum.simutrans.com/index.php?topic=14624.0)
broke this for GDI.
Title: Re: Text selection bug
Post by: Ters on December 31, 2015, 09:45:46 AM
That was unexpected. It's hard to see how that change affects double-clicking, since Simutrans detects double-clicks itself apparently, and nothing suggests that anything is wrong with mouse button events otherwise.
Title: Re: Text selection bug
Post by: TurfIt on January 01, 2016, 02:26:50 AM
It's most definitely r7543 that does it. Double/Triple clicking in r7542 GDI works fine.
Title: Re: Text selection bug
Post by: Ters on January 01, 2016, 11:26:37 AM
I have too many local changes to be able to build r7542. Are you able to figure out which inputs event that are lost or come extra between r7542 and r7543? The changes should only cause Simutrans to get mouse events even after the mouse leaves the window (while a mouse button is held down, such as when dragging). While double-clicking on text, the cursor should not leave the window. Or is there some interference with the ability to pan with the primary mouse button as well, and the mouse repositioning done to keep the cursor for moving?