Search found 33 matches

by thoray
Wed Apr 08, 2020 3:43 pm
Forum: C++ Development
Topic: wxDataViewCtrl auto size column when collapsing?
Replies: 1
Views: 41

Re: wxDataViewCtrl auto size column when collapsing?

It looks like this is only issue in at least GTK2. In OSX and MSW this works as expected.

So it is likely a bug or a feature so I'm better off asking wx-users or making an issue.
by thoray
Wed Apr 08, 2020 7:55 am
Forum: C++ Development
Topic: wxDataViewCtrl auto size column when collapsing?
Replies: 1
Views: 41

wxDataViewCtrl auto size column when collapsing?

Using wxCOL_WIDTH_AUTOSIZE as width in wxDataViewColumn constructor makes such column to grow in width when expanding items but it doesn't shrink back when collapsing. Can it be made to do that? I was thinking of doing it manually in OnItemCollapsed(wxDataViewEvent& event) but there are issues with ...
by thoray
Sat Mar 14, 2020 3:50 pm
Forum: C++ Development
Topic: User sizable panel?
Replies: 10
Views: 925

Re: User sizable panel?

Now that I have some idea how layout management works in wxWidgets, I managed to fix my minimal sample from 2018: void MyFrame::OnSashDragged(wxSashEvent& event) { wxRect rect = event.GetDragRect(); - std::cout << "new size: " << rect.GetX() << " " << rect.GetY() << std::endl; - // FIXME: This does ...
by thoray
Thu Mar 12, 2020 2:48 pm
Forum: Platform Related Issues
Topic: wxListBox too short vertically for all its elements in OSX and GTK2
Replies: 6
Views: 174

Re: wxListBox too short vertically for all its elements in OSX and GTK2

Ok I'l make a ticket. I tried 3.1.3, for OS X wx was 3.1.3 (I updated my answer above).
by thoray
Thu Mar 12, 2020 2:35 pm
Forum: Platform Related Issues
Topic: wxListBox too short vertically for all its elements in OSX and GTK2
Replies: 6
Views: 174

Re: wxListBox too short vertically for all its elements in OSX and GTK2

The same issue in GTK+3 with unmodified git master. Native OS X Mojave 10.14, wx 3.1.3, Xcode 10.1 / SDK 10.14 minimum version 10.9. Not cross compiling.
by thoray
Thu Mar 12, 2020 12:38 pm
Forum: Platform Related Issues
Topic: wxListBox too short vertically for all its elements in OSX and GTK2
Replies: 6
Views: 174

Re: wxListBox too short vertically for all its elements in OSX and GTK2

Yes, I can reproduce it in the minimal sample: --- minimal.cpp 2020-03-12 14:20:28.886756494 +0200 +++ minimal2.cpp 2020-03-12 14:19:45.362540669 +0200 @@ -178,6 +178,13 @@ CreateStatusBar(2); SetStatusText("Welcome to wxWidgets!"); #endif // wxUSE_STATUSBAR + +wxString strings[9] = {"a", "b", "c", ...
by thoray
Tue Mar 10, 2020 4:27 pm
Forum: Open Discussion
Topic: Developing for the Big 3
Replies: 4
Views: 838

Re: Developing for the Big 3

Now only need to do:
7) testing all program features are working and polished in OS X.
If that was included in those 6 hours I'm very impressed.
by thoray
Tue Mar 10, 2020 2:53 pm
Forum: Platform Related Issues
Topic: Windows 10 Dark Mode
Replies: 12
Views: 1883

Re: Windows 10 Dark Mode

Is there any solution to make Win32 application build with wx to have dark theme?

What really should happen though is that Windows would add such feature.
by thoray
Tue Mar 10, 2020 2:45 pm
Forum: Platform Related Issues
Topic: MenuBar in macOS Catalina
Replies: 24
Views: 1135

Re: MenuBar in macOS Catalina

Dark mode was introduced in 10.14 and recently became supported in wx.

The first dev to comment related ticket said he doesn't even have 10.15 yet.

http://trac.wxwidgets.org/ticket/18641
by thoray
Tue Mar 10, 2020 2:40 pm
Forum: Platform Related Issues
Topic: Enable frame's accelerator keys when a ctrl has captured mouse in Windows
Replies: 1
Views: 87

Re: Enable frame's accelerator keys when a ctrl has captured mouse in Windows

While not a solution to the problem stated in the topic - I just realized that since I'm already hiding the mouse cursor and warping mouse cursor at the ctrl's edges, I only need to disable mouse capturing in Windows to make it work similar to Linux and OS X.
by thoray
Tue Mar 10, 2020 12:50 pm
Forum: Platform Related Issues
Topic: wxListBox too short vertically for all its elements in OSX and GTK2
Replies: 6
Views: 174

wxListBox too short vertically for all its elements in OSX and GTK2

I add this code in a wxPanel: wxString strings[9] = {"a", "b", "c", "d", "e", "f", "g", "h", "i" }; m_listbox = new wxListBox(this, wxID_ANY, wxDefaultPosition, wxDefaultSize, 9, strings, wxLB_NEEDED_SB, wxDefaultValidator, wxListBoxNameStr); wxBoxSizer* sizer = new wxBoxSizer(wxVERTICAL); sizer->Ad...
by thoray
Tue Mar 10, 2020 12:18 pm
Forum: Platform Related Issues
Topic: OSX build failed
Replies: 1
Views: 112

Re: OSX build failed

wxWidgets with xcode version 10.1 (sdk version 10.14) build fine for me in os x Mojave with "../configure --disable-shared". You could also try to disable .dylib output. Also building wx in linux for mac with osxcross tools using sdk versions prior to 10.15 worked but I also always disabled shared l...
by thoray
Tue Mar 10, 2020 12:02 pm
Forum: Platform Related Issues
Topic: MenuBar in macOS Catalina
Replies: 24
Views: 1135

Re: MenuBar in macOS Catalina

I don't think sdk 10.15 is supported yet with wxWidgets. I wonder if this issue persist even when built against 10.14 and run on Catalina?
by thoray
Mon Mar 09, 2020 11:59 pm
Forum: Platform Related Issues
Topic: Enable frame's accelerator keys when a ctrl has captured mouse in Windows
Replies: 1
Views: 87

Enable frame's accelerator keys when a ctrl has captured mouse in Windows

I set up accelerator keys when creating top menu items like this: menu->Append(item_id,wxT("&Description\tCtrl-C",wxT("Long desciption",wxITEM_NORMAL); Then later I call CaptureMouse() inside wxGLCanvas. Now, in Linux and OS X, menu accelerator keys continue to work as normal. In Windows, however, t...
by thoray
Mon Dec 10, 2018 4:12 pm
Forum: C++ Development
Topic: wxDropTarget GetData() inside OnDragOver() ?
Replies: 2
Views: 458

Re: wxDropTarget GetData() inside OnDragOver() ?

Yes that should work. Thanks.