Search found 202 matches

by rocrail
Fri May 29, 2020 7:49 pm
Forum: Platform Related Issues
Topic: MacBook Pro TouchBar wxWidgets support
Replies: 3
Views: 84

Re: MacBook Pro TouchBar wxWidgets support

its kind of like a small touch display, 1cm in height, and 20cm in width. Depending on the activated program, it is filled with toolbar icons, and is interactive. Clicking on the Speaker symbol, will popup a slider to adjust the volume. Pressing the Fn key on the keyboard will popup all function key...
by rocrail
Fri May 29, 2020 12:31 pm
Forum: Platform Related Issues
Topic: MacBook Pro TouchBar wxWidgets support
Replies: 3
Views: 84

MacBook Pro TouchBar wxWidgets support

Hi,

is there an API to control the MacBook Pro TouchBar? Would be very helpful.
by rocrail
Sun May 17, 2020 6:48 am
Forum: Platform Related Issues
Topic: SpinCtrl default width Windows/Mac/GTK2/GTK3
Replies: 17
Views: 245

Re: SpinCtrl default width Windows/Mac/GTK2/GTK3

OK, the issue is solved using wx 3.1.4.
by rocrail
Sun May 17, 2020 5:59 am
Forum: Platform Related Issues
Topic: SpinCtrl default width Windows/Mac/GTK2/GTK3
Replies: 17
Views: 245

Re: SpinCtrl default width Windows/Mac/GTK2/GTK3

There are already some patches for this 'same' problem:

https://github.com/wxWidgets/wxWidgets/ ... aa99a5131c

I will try a local build on Ubuntu 20.04 of the wx libraries from git master.
by rocrail
Sat May 16, 2020 12:29 pm
Forum: Platform Related Issues
Topic: SpinCtrl default width Windows/Mac/GTK2/GTK3
Replies: 17
Views: 245

Re: SpinCtrl default width Windows/Mac/GTK2/GTK3

Sorry, but I'm not familiar with GTK.
Someone with some GTK knowledge should take a look at it.
by rocrail
Sat May 16, 2020 8:53 am
Forum: Platform Related Issues
Topic: SpinCtrl default width Windows/Mac/GTK2/GTK3
Replies: 17
Views: 245

Re: SpinCtrl default width Windows/Mac/GTK2/GTK3

In file "common/spinctrlcmn.cpp" the function GetBestSize already calculate this automatically: int wxSpinCtrlImpl::GetMaxValueLength(int minVal, int maxVal, int base) { const int lenMin = (base == 16 ? FormatAsHex(minVal, maxVal) : wxString::Format("%d", minVal)).length(); const int lenMax = (base ...
by rocrail
Sat May 16, 2020 8:07 am
Forum: Platform Related Issues
Topic: SpinCtrl default width Windows/Mac/GTK2/GTK3
Replies: 17
Views: 245

Re: SpinCtrl default width Windows/Mac/GTK2/GTK3

The calculation used in the widgets example is not OK:
macos-widgets-range.png
macos-widgets-range.png (23.83 KiB) Viewed 139 times
And some Linux distros come with wx3.0, so this method is not available.
by rocrail
Sat May 16, 2020 7:48 am
Forum: Platform Related Issues
Topic: SpinCtrl default width Windows/Mac/GTK2/GTK3
Replies: 17
Views: 245

Re: SpinCtrl default width Windows/Mac/GTK2/GTK3

My initial issue still remains, because under Windows this is done automatically, and under GTK it must be set manually.
by rocrail
Sat May 16, 2020 7:02 am
Forum: Platform Related Issues
Topic: SpinCtrl default width Windows/Mac/GTK2/GTK3
Replies: 17
Views: 245

Re: SpinCtrl default width Windows/Mac/GTK2/GTK3

Just saw that in the widgets sample the resizing is calculated and set programmatically: wxString smax('9', m_textMax->GetValue().length()); wxSize size = m_spinctrl->GetSizeFromTextSize(m_spinctrl->GetTextExtent(smax)); m_spinctrl->SetMinSize(size); m_spinctrl->SetSize(size); In case of my Project,...
by rocrail
Sat May 16, 2020 6:54 am
Forum: Platform Related Issues
Topic: SpinCtrl default width Windows/Mac/GTK2/GTK3
Replies: 17
Views: 245

Re: SpinCtrl default width Windows/Mac/GTK2/GTK3

OK,

using the wxWidgets sample widgets unchanged.
Attached are macOS Catalina, Windows 10-64, Ubuntu 20.04.

The wxWidgets I build from source, and the sample looks good...
I must investigate this.
macos-widgets.png
win10-widgets.png
win10-widgets.png (51.24 KiB) Viewed 150 times
ubuntu2004-widgets.png
ubuntu2004-widgets.png (69.23 KiB) Viewed 150 times
by rocrail
Fri May 15, 2020 4:11 pm
Forum: Platform Related Issues
Topic: SpinCtrl default width Windows/Mac/GTK2/GTK3
Replies: 17
Views: 245

Re: SpinCtrl default width Windows/Mac/GTK2/GTK3

Hi ONEEYEMAN, why should I? Its not a defect, but a rendering issue, which I cannot, and do not want to, control by the wxWidgets API. This thread is only meant to show diffs for the SpinCtrl on all Platforms. As I already wrote before: The GTK3 implementation is not OK. I will not add a simple wx e...
by rocrail
Fri May 15, 2020 3:35 pm
Forum: Platform Related Issues
Topic: SpinCtrl default width Windows/Mac/GTK2/GTK3
Replies: 17
Views: 245

Re: SpinCtrl default width Windows/Mac/GTK2/GTK3

wxWidgets version: 3.1.4
Windows 10 -> Locoal wxWidgets library compiled with latest git, statically linked.
macOS Catalina -> Locoal wxWidgets library compiled with latest git
Ubuntu 20.04 GTK3 -> Distribution wxWidgets library
by rocrail
Fri May 15, 2020 1:41 pm
Forum: Platform Related Issues
Topic: SpinCtrl default width Windows/Mac/GTK2/GTK3
Replies: 17
Views: 245

SpinCtrl default width Windows/Mac/GTK2/GTK3

Hi, if using SpinCtrl default width, -1, it sizes different under all supported Operating Systems: - Windows resize it as needed for its range. =D> - Mac shows an acceptable default width. :| - Ubuntu 20.04, GTK3, resize it so to make it possible to changed values on a touch device with your feet. :...