Search found 74 matches

by mbeardsley
Wed Dec 22, 2021 5:01 pm
Forum: C++ Development
Topic: Opening a new frame with full screen size
Replies: 8
Views: 762

Re: Opening a new frame with full screen size

Are you using GTK3 ? We have recently found that GTK3 has problems with computing the correct size for various wx elements. When we reverted back to GTK2 our problems all went away. We are using Rocky Linux 8.4, I don't know if the same problems exist with ubuntu, but there is a good chance that the...
by mbeardsley
Wed Dec 22, 2021 3:37 pm
Forum: C++ Development
Topic: How to manually trigger a wxGrid event
Replies: 2
Views: 262

Re: How to manually trigger a wxGrid event

So what I did was this... wxGridEvent event( wxID_ANY, wxEVT_GRID_CELL_CHANGED, pGrid, nRow, nCol ); wxPostEvent( pGrid, event ); and this seems to work, though I am not certain that this is correct. Also, what is the real difference between wxPostEvent() and wxQueueEvent()? When should I use one ov...
by mbeardsley
Wed Dec 22, 2021 2:36 pm
Forum: C++ Development
Topic: How to manually trigger a wxGrid event
Replies: 2
Views: 262

How to manually trigger a wxGrid event

I need to manually trigger a wxEVT_GRID_CELL_CHANGED on a particular grid and row/col. The various discussions I have seen say to do something like this : wxGridEvent evt( wxGRID_CELL_CHANGED, grid, row, col ); grid->PostEvent(evt); But this seems to be an "old" way of doing it, that no lo...
by mbeardsley
Thu Dec 16, 2021 9:58 pm
Forum: Platform Related Issues
Topic: Problem with Notebook on Linux
Replies: 11
Views: 1393

Re: Problem with Notebook on Linux

Yes, I DO have a problem (as described in my top post). Under GTK3 the scroll bars for wxScrolledWindows (which are pages of a wxNotebook) do not appear even when the contents of those pages do not fit on screen - leaving no way to view/edit the bottom part of the page. Under both Windows and GTK2, ...
by mbeardsley
Thu Dec 16, 2021 7:49 pm
Forum: Platform Related Issues
Topic: Problem with Notebook on Linux
Replies: 11
Views: 1393

Re: Problem with Notebook on Linux

After more research, we have found that GTK2 works fine (just like Windows), but GTK3 has the scrolling issues. We are running the default GNOME window manager (it's actually a very "plain" out-of-the-box install of Rocky Linux 8.4). We also tried building the current master from GIT and i...
by mbeardsley
Thu Dec 16, 2021 7:40 pm
Forum: C++ Development
Topic: Problem with Get/Set client data on a GridCellEditor
Replies: 4
Views: 241

Re: Problem with Get/Set client data on a GridCellEditor

Thanks, doublemax. It's working fine now.
by mbeardsley
Thu Dec 16, 2021 6:32 pm
Forum: C++ Development
Topic: Problem with Get/Set client data on a GridCellEditor
Replies: 4
Views: 241

Re: Problem with Get/Set client data on a GridCellEditor

So I should do something like: wxGridCellEditor* pCellEditor = pGrid->GetCellEditor( nRow, nColumn ); GridCellEditorData* pEditorData = ( GridCellEditorData* ) pCellEditor->GetClientData( ); pCellEditor->DecRef(); instead of: GridCellEditorData* pEditorData = ( GridCellEditorData* ) pGrid->GetCellEd...
by mbeardsley
Thu Dec 16, 2021 5:14 pm
Forum: C++ Development
Topic: Problem with Get/Set client data on a GridCellEditor
Replies: 4
Views: 241

Problem with Get/Set client data on a GridCellEditor

When I close my app I am getting the following assert failure in wxWindowBase... // Any additional event handlers should be popped before the window is // deleted as otherwise the last handler will be left with a dangling // pointer to this window result in a difficult to diagnose crash later on. wx...
by mbeardsley
Tue Dec 14, 2021 4:32 pm
Forum: Platform Related Issues
Topic: Problem with Notebook on Linux
Replies: 11
Views: 1393

Re: Problem with Notebook on Linux

We are using GTK3 (I may try to switch to GTK2 just to see if it works any better). We upgraded to wxWidgets 3.1.5 because we needed the OpenGL support for Wayland (OpenGL in older versions of wxWidgets would not work with Wayland). The biggest issue (and it might be that the other issues derive fro...
by mbeardsley
Mon Dec 13, 2021 7:09 pm
Forum: C++ Development
Topic: wxNotebook has tiny BestSize
Replies: 6
Views: 335

Re: wxNotebook has tiny BestSize

I appreciate the offer doublemax, but at this point, since I have a "not unreasonable" workaround, I need to move on to some of my other issues.

If I get a chance, I will come back to this and try to produce a sample - I just don't know when I will have the time.
by mbeardsley
Mon Dec 13, 2021 5:40 pm
Forum: Platform Related Issues
Topic: Problem with Notebook on Linux
Replies: 11
Views: 1393

Re: Problem with Notebook on Linux

Do you know which patch it was? I've never accessed the git repository. We have only ever used one of the released versions. It seems to me that the 3.1.5 version for GTK has a bunch of issues that the Windows version does not have. Until recently, we had been running with 3.0.5 and never had a prob...
by mbeardsley
Mon Dec 13, 2021 4:08 pm
Forum: C++ Development
Topic: wxNotebook has tiny BestSize
Replies: 6
Views: 335

Re: wxNotebook has tiny BestSize

I can't do DoGetBestSize() as that is private. I did try InvalidateBestSize() and then GetBestSize(), but that didn't change anything. What I am doing now is simply setting the MinClientSize() of my frame to 75% of the actual screen size by doing this : // get the size of the display screen wxDispla...
by mbeardsley
Mon Dec 13, 2021 2:05 pm
Forum: Platform Related Issues
Topic: Problem with Notebook on Linux
Replies: 11
Views: 1393

Re: Problem with Notebook on Linux

Did the patch fix the actual problem with the missing scroll bars?
Or did it just suppress the warning message?
by mbeardsley
Fri Dec 10, 2021 9:00 pm
Forum: C++ Development
Topic: wxNotebook has tiny BestSize
Replies: 6
Views: 335

Re: wxNotebook has tiny BestSize

Well, I wondered about that, but why then does the panel's sizer have a much more reasonable value? If I do this... wxSize sizerMinSize = m_Panel->GetSizer( )->CalcMin( ); wxSize windowMinSize = m_Panel->GetMinSize( ); wxSize windowBestSize = m_Panel->GetBestSize( ); The results are: sizerMinSize = ...
by mbeardsley
Fri Dec 10, 2021 8:00 pm
Forum: C++ Development
Topic: wxNotebook has tiny BestSize
Replies: 6
Views: 335

wxNotebook has tiny BestSize

I have an app that runs on both Windows and Linux and I use wxFormBuilder to create the UI. The UI consists mainly of a wxNotebook with several wxScrolledWindows as its pages. The problem (well, ONE of my problems) is that GetBestSize() for the wxNotebook does not seem to work very well. It seems to...