wxSpinCtrlDouble keyboard input not possible if value is fallen below minimum value (Issue #23587)

32 views
Skip to first unread message

Lukas Pusch

unread,
Jun 1, 2023, 9:13:15 AM6/1/23
to wx-...@googlegroups.com, Subscribed

Description

I added an wxSpinCtrlDouble to my program. Once I set the minimum value to eg. 500 it is not possible to use the keyboard for new values in all cases. Once the value is fallen below the minium by eg. deleting the last digit, it isn't possible to write anything to this field using the keyboard.

Example implementation:

#include <wx/spinctrl.h>
// [...]
wxSpinCtrlDouble *test = new wxSpinCtrlDouble(sbExpWindow, wxID_ANY, wxEmptyString, wxDefaultPosition, wxDefaultSize, wxSP_ARROW_KEYS, 500, 4095, 1100, 1);

With this example it isn't possible to write a new value using the keyboard if everything was selected and replaced by the value you typing.

Platform and version information

  • wxWidgets version you use: 3.1.5
  • wxWidgets port you use: wxMSW
  • OS and its version: Windows 10,


Reply to this email directly, view it on GitHub, or unsubscribe.
You are receiving this because you are subscribed to this thread.Message ID: <wxWidgets/wxWidgets/issues/23587@github.com>

Lukas Pusch

unread,
Jun 1, 2023, 9:20:16 AM6/1/23
to wx-...@googlegroups.com, Subscribed

relates to #12968


Reply to this email directly, view it on GitHub, or unsubscribe.

You are receiving this because you are subscribed to this thread.Message ID: <wxWidgets/wxWidgets/issues/23587/1572042138@github.com>

VZ

unread,
Jun 1, 2023, 9:29:24 AM6/1/23
to wx-...@googlegroups.com, Subscribed

Closed #23587 as completed.


Reply to this email directly, view it on GitHub, or unsubscribe.

You are receiving this because you are subscribed to this thread.Message ID: <wxWidgets/wxWidgets/issue/23587/issue_event/9403441920@github.com>

VZ

unread,
Jun 1, 2023, 9:35:22 AM6/1/23
to wx-...@googlegroups.com, Subscribed

It's exactly the same as #23561 which was already closed because it's basically the same as #12968, so closing this one too.

FWIW I've outlined a simple solution in my last comment in #12968 but didn't have time to implement and test it yet. If anybody can make a PR doing this, please do.


Reply to this email directly, view it on GitHub, or unsubscribe.

You are receiving this because you are subscribed to this thread.Message ID: <wxWidgets/wxWidgets/issues/23587/1572056372@github.com>

Reply all
Reply to author
Forward
0 new messages