Search found 207 matches

by rocrail
Sat Jul 25, 2020 11:09 am
Forum: Platform Related Issues
Topic: Restore Window/Dialog size 3.1.4 GTK3
Replies: 5
Views: 330

Re: Restore Window/Dialog size 3.1.4 GTK3

In the dialogs sample you can reproduce it adding a SetSize call: void MyFrame::OnStandardButtonsSizerDialog(wxCommandEvent& WXUNUSED(event)) { StdButtonSizerDialog dialog(this); dialog.SetSize(10,200,1800,800); // Added for testing setting the Size. dialog.ShowModal(); } The x,y position is set, bu...
by rocrail
Sat Jul 25, 2020 10:51 am
Forum: Platform Related Issues
Topic: Restore Window/Dialog size 3.1.4 GTK3
Replies: 5
Views: 330

Re: Restore Window/Dialog size 3.1.4 GTK3

It still works with the Ubuntu libwx 3.0 libraries.
Getting the dialog size on close is no problem, but the restore does not work.
I will try it with the minimal sample, and report.
by rocrail
Sat Jul 25, 2020 10:17 am
Forum: Platform Related Issues
Topic: Restore Window/Dialog size 3.1.4 GTK3
Replies: 5
Views: 330

Restore Window/Dialog size 3.1.4 GTK3

With the Ubuntu libwxgtk3.0 libraries, I could resize Windows/Dialogs with

Code: Select all

dialog->SetSize(x, y, width, height);
with the wx 3.1.4 and GTK3 this does no longer works.

Under macOS and Windows its still OK.

How to resize a Window/Dialog under Linux GTK3???
by rocrail
Sat Jun 13, 2020 5:16 pm
Forum: Platform Related Issues
Topic: macOS on ARM CPU
Replies: 3
Views: 372

macOS on ARM CPU

Hi,

it seems Apple want to schwitch from Intel to its own ARM processors for macOS based hardware.

How to compile wxWidgets under macOS ARM?

The Raspbian, PiOS, is also based on an ARM CPU, and its no problem to compile/build wxWidgets.
by rocrail
Fri May 29, 2020 7:49 pm
Forum: Platform Related Issues
Topic: MacBook Pro TouchBar wxWidgets support
Replies: 3
Views: 333

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: 333

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: 1131

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: 1131

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: 1131

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: 1131

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: 1131

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 797 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: 1131

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: 1131

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,...