News:

Simutrans Sites
Know our official sites. Find tools and resources for Simutrans.

Unclickable drop down menus

Started by An_dz, December 14, 2013, 04:05:53 AM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

An_dz

Drop down menus that flow outside their windows can't be used. This is easily spotted in the player list frame.

Dwachs

This is a known bug. And an old one, too.
Parsley, sage, rosemary, and maggikraut.

prissi

#2
Maybe those should just open upwards. I will try what I can do about it.

EDIT: That does not work. The proper way is aparently to create a new window, which covers the whole screen (but is transparent) and closes when the droplist is not hit or untopped (other window opens). That woudl also remove a lot of the code checking if in dropbox or not.

Ters

How is that easier than just giving the window the size and position of the droplist? I would imagine a full screen window would block access to other windows.

prissi

#4
The droplist should also catch clicks outside the window to close it. It will close when the focus is lost, but this does not always happen. A third option is to register the droplist as a special UI element and close it be the window manager. However, this is almost identical to just special dialoge without frame and its only element the droplist, which could reuse the existing infrastructure.

EDIT:
see attached patch

Ters

I just thought that if you had a global windows, you'd have to click once to close the global window with the drop list, and a second time to actually activate the wanted window, since the global window ate the first event.

prissi

If you return false for infowin, it should hand it through (and it seems to work indeed liek this).