The International Simutrans Forum

Development => Patches & Projects => Incorporated Patches and Solved Bug Reports => Topic started by: Isaac Eiland-Hall on August 08, 2010, 04:49:14 pm

Title: Double-click to select text
Post by: Isaac Eiland-Hall on August 08, 2010, 04:49:14 pm
If it's easy... I just realized it was "missing" today. :D

I'm not sure if Simutrans *has* double-click detection though, so this may be quickly denied - but I thought I'd ask. :)
Title: Re: Double-click to select text
Post by: caspercom on August 08, 2010, 05:37:18 pm
I've never seen any double-click actions in simutrans, wich would be pretty odd if the system would have double-click detection. But I like the idea and I hope it's possible.
Title: Re: Double-click to select text
Post by: prissi on August 08, 2010, 06:38:35 pm
Double click detection clross platform is no easy. It may work with SDL 1.3, but not with allegro.
Title: Re: Double-click to select text
Post by: Isaac Eiland-Hall on August 08, 2010, 08:43:27 pm
was good to check, thanks for answer :)
Title: Re: Double-click to select text
Post by: Fabio on August 08, 2010, 10:03:03 pm
Like clipboard, it could work only on some systems for useful but not vital commands.
Title: Re: Double-click to select text
Post by: IgorEliezer on August 08, 2010, 11:18:20 pm
If simutrans can't detect double-click easily, what if we try something like Ctrl+click?
Title: Re: Double-click to select text
Post by: caspercom on August 09, 2010, 04:23:04 pm
what if we try something like Ctrl+click?

I believe that, before you could select overhead tracks, ctrl+click was used to place signals on the upper track like when placing signals on bridges.

EDIT: Just remembered, Ctrl+click when using a tunnel tool is also used to only create a tunnel entrance, not the whole thing.
Title: Re: Double-click to select text
Post by: Dwachs on August 09, 2010, 07:03:59 pm
Isaac's suggestion is implemented in rev 3638, thanks to Knightly.
Title: Re: Double-click to select text
Post by: skreyola on August 09, 2010, 08:05:32 pm
I believe that, before you could select overhead tracks, ctrl+click was used to place signals on the upper track like when placing signals on bridges.

EDIT: Just remembered, Ctrl+click when using a tunnel tool is also used to only create a tunnel entrance, not the whole thing.
Seems it's too late for (discussion of) this particular issue, but if the two functions are mutually exclusive (e.g., tunnel start and text field select), I can't think of a reason it couldn't be made context-specific and do both functions.
Title: Re: Double-click to select text
Post by: IgorEliezer on August 10, 2010, 03:00:17 am
Isaac's suggestion is implemented in rev 3638, thanks to Knightly.

Excellent. I just tried it. :D