diff options
| author | Carl Hetherington <cth@carlh.net> | 2021-03-29 22:27:35 +0200 |
|---|---|---|
| committer | Carl Hetherington <cth@carlh.net> | 2021-03-29 22:38:28 +0200 |
| commit | 5baecb091f5f3f956be002668ce74291c7826b95 (patch) | |
| tree | b9583297ce05ddf133ed441dac946b439b8d0fb2 /src/wx/text_panel.h | |
| parent | 25142b529304096d22baf885c45ba41bce480b72 (diff) | |
Fix strange problems with spin entries on macOS (#1944).
SetRange() with minimum > 0 seems to stop entry of numbers by selecting
the existing one and typing new. Also we can make Enter work properly
by adding a handler.
Diffstat (limited to 'src/wx/text_panel.h')
| -rw-r--r-- | src/wx/text_panel.h | 17 |
1 files changed, 10 insertions, 7 deletions
diff --git a/src/wx/text_panel.h b/src/wx/text_panel.h index f35f39cbe..7f38ff42b 100644 --- a/src/wx/text_panel.h +++ b/src/wx/text_panel.h @@ -1,5 +1,5 @@ /* - Copyright (C) 2012-2020 Carl Hetherington <cth@carlh.net> + Copyright (C) 2012-2021 Carl Hetherington <cth@carlh.net> This file is part of DCP-o-matic. @@ -18,14 +18,17 @@ */ + #include "content_sub_panel.h" + class wxCheckBox; -class wxSpinCtrl; class TextView; class FontsDialog; +class SpinCtrl; class SubtitleAnalysis; + class TextPanel : public ContentSubPanel { public: @@ -75,18 +78,18 @@ private: wxStaticText* _x_offset_pc_label; wxStaticText* _y_offset_label; wxStaticText* _y_offset_pc_label; - wxSpinCtrl* _x_offset; - wxSpinCtrl* _y_offset; + SpinCtrl* _x_offset; + SpinCtrl* _y_offset; wxStaticText* _scale_label; wxStaticText* _x_scale_label; wxStaticText* _x_scale_pc_label; wxStaticText* _y_scale_label; wxStaticText* _y_scale_pc_label; - wxSpinCtrl* _x_scale; - wxSpinCtrl* _y_scale; + SpinCtrl* _x_scale; + SpinCtrl* _y_scale; wxStaticText* _line_spacing_label; wxStaticText* _line_spacing_pc_label; - wxSpinCtrl* _line_spacing; + SpinCtrl* _line_spacing; wxStaticText* _dcp_track_label; wxChoice* _dcp_track; wxStaticText* _stream_label; |
