[FIXED][BUG][FLEXI] Navigating sprites dropdown with arrow keys doesn't update display

Started by namida, February 25, 2018, 01:29:11 AM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

namida

Steps to reproduce:
1. Go to the Sprites tab
2. Select something in the dropdown box used to select sprites
3. Use the Up and Down arrows to select a different option

Expected: Graphic shown changes to correspond to the new selection
Actual result: Nothing changes, except the selected item name
My projects
2D Lemmings: NeoLemmix (engine) | Lemmings Plus Series (level packs) | Doomsday Lemmings (level pack)
3D Lemmings: Loap (engine) | L3DEdit (level / graphics editor) | L3DUtils (replay / etc utility) | Lemmings Plus 3D (level pack)
Non-Lemmings: Commander Keen: Galaxy Reimagined (a Commander Keen fangame)

namida

There are also somewhat weird effects when doing this in other dropdown boxes (eg. scroller texts) too.

I don't know exactly how forms work in C#. In Delphi, you get bugs similar to this if you rely on the OnClick / OnChange event handling; the OnSelectionChange event should be used instead to properly handle this case (it even handles cases where the selection is changed by other code, though in this case it passes a boolean value that indicates the change was not performed by the user).
My projects
2D Lemmings: NeoLemmix (engine) | Lemmings Plus Series (level packs) | Doomsday Lemmings (level pack)
3D Lemmings: Loap (engine) | L3DEdit (level / graphics editor) | L3DUtils (replay / etc utility) | Lemmings Plus 3D (level pack)
Non-Lemmings: Commander Keen: Galaxy Reimagined (a Commander Keen fangame)

Nepster

Well, I am already using the OnSelectionChange event. However in C# it only triggers when you do a double click or press return or such. :P
I will see what can be done...

Nepster