Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[macOS] Slider value and value label do not match #24539

Closed
hwiesmann opened this issue May 17, 2024 · 0 comments
Closed

[macOS] Slider value and value label do not match #24539

hwiesmann opened this issue May 17, 2024 · 0 comments

Comments

@hwiesmann
Copy link
Contributor

Description

The slider value and the corresponding value label do not match if

  • the value set by using SetValue(int) is outside the slider's range
  • the range is modified so that the actual value is afterwards outside the range

The bug can be seen when using the widgets sample code and selecting the slider control page.Entering a minimum value of 10 for the slider's range while the actual value is 0 leads to the situation that the slider is positioned at 10 while the label still shows the old value 0.

PS: Calling GetValue() will return 10.
PPS: The value itself is always adjusted so that it is within the slider's range.

Platform and version information

  • wxWidgets version you use: latest master built
  • wxWidgets port you use: macOS 14.4.1
hwiesmann pushed a commit to hwiesmann/wxWidgets that referenced this issue May 17, 2024
@vadz vadz closed this as completed in ca2a336 May 19, 2024
vadz pushed a commit to vadz/wxWidgets that referenced this issue May 19, 2024
The label and value could become different when an attempt to set a
value out of slider range was made.

Make sure that the label always corresponds to the actual value.

See wxWidgets#24539, wxWidgets#24540.

(cherry picked from commit ca2a336)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant