The International Simutrans Forum

Development => Patches & Projects => Incorporated Patches and Solved Bug Reports => Topic started by: ALFA-X on August 04, 2024, 03:49:28 PM

Title: since 124.0: Clicking any item in "Serves line"-list not working
Post by: ALFA-X on August 04, 2024, 03:49:28 PM
Hi Simutrans community :)

Steps to reproduce:


Workaround for me: using arrow keys to select item

I'm on Simutrans nightly r11372 using pak192.Comic V0.71

edit: oops: post should be in "Bug Reports"
Title: Re: since 124.0: Clicking any item in "Serves line"-list not working
Post by: prissi on August 17, 2024, 07:56:08 PM
Seems to work in r11383 for me
Title: Re: since 124.0: Clicking any item in "Serves line"-list not working
Post by: ALFA-X on August 18, 2024, 09:05:38 AM
It works in a new game, but not in my big old savegame.

https://simutrans-germany.com/files/upload/game.sve

Attached some screenshots for better bug reproduction.

Noticed now, that not all items are dead to the mouse.

What doesn't work:
- Mouse wheel to scroll through the list
- Select item with left mouse button when above the tabs of underlying window

What works:
- Select items with left mouse button when on or below tabs of underlying window
Title: Re: since 124.0: Clicking any item in "Serves line"-list not working
Post by: prissi on August 18, 2024, 07:18:30 PM
Still cannot reproduce. It works fine for me.

The only error is that the depot in the background should not update the vehicle text.
Title: Re: since 124.0: Clicking any item in "Serves line"-list not working
Post by: ALFA-X on August 18, 2024, 08:26:29 PM
Tried savegame on older pc, and no problems.  :o

On default pc:
* list drops UP. (as seen in fourth screenshot of post #2)
* enlarging the underlying window, the list drops down, as it should, and everything works!

On old pc:
* list drops down on click, just as it should
* Shrinking window to smallest height -> list still drops down
* Switching to different font ') -> list drops UP!  8)

Conclusion:
* Font height matters!
* Maybe mouse events are not propagated, if cursor is outside tab area which is parent of list widget?

') e.g.: Font=Source Han Sans CN Bold, Size=13
Title: Re: since 124.0: Clicking any item in "Serves line"-list not working
Post by: prissi on August 19, 2024, 09:16:33 AM
Ok, maybe r11387 fixes this.
Title: Re: since 124.0: Clicking any item in "Serves line"-list not working
Post by: ALFA-X on August 19, 2024, 11:39:32 AM
Yes, problem fixed. :thumbsup:

Thx, prissi!