C++ Development • Get physical size of display
wxWidgets Forum » C++ Development
by giulio_seb
36m ago
Hello, How can I get the physical size of the display (in centimerters or inches or any unit) from wxWidgets? Thank you Best, Statistics: Posted by giulio_seb — Thu May 02, 2024 5:54 pm ..read more
Visit website
C++ Development • Re: wxEVT_DROP_FILES does not seem to work
wxWidgets Forum » C++ Development
by ONEEYEMAN
36m ago
Hi, Are you trying to run this from inside the IDE? What happen if you try to run it from the Windows Explorer by double clicking the icon? Thank you. Statistics: Posted by ONEEYEMAN — Thu May 02, 2024 5:43 pm ..read more
Visit website
C++ Development • Re: wxDirDialog Crash Exception
wxWidgets Forum » C++ Development
by ONEEYEMAN
36m ago
Glad you found it. Thank you. Statistics: Posted by ONEEYEMAN — Thu May 02, 2024 5:41 pm ..read more
Visit website
C++ Development • Re: Print 'hello world' when user clicks on overflow menu caret
wxWidgets Forum » C++ Development
by doublemax
9h ago
Code: EVT_AUITOOLBAR_OVERFLOW_CLICK(ID_AUITOOLBAR_PANE, ChildFrame::OnOverflowMenuClick) Don't set the id here, use wxID_ANY instead. (Hint: Whenever you have problems with events not arriving, this should always be the first test, as a non-matching id is one of the most common causes). The AUI code sets the id to wxID_ANY for an wxEVT_AUITOOLBAR_OVERFLOW_CLICK event, probably because this usually contains the toolitem id. You can still identify the toolbar in the event handler through the event object: Code: void MyFrame::OnItemOverflow(wxAuiToolBarEvent& evt){ wxAuiToolBar *tb ..read more
Visit website
C++ Development • Re: Cannot Destroy() wxProgressDialog
wxWidgets Forum » C++ Development
by giulio_seb
9h ago
Do not keep an instance of any modal dialog alive for the lifetime of the app. Always create it on the stack when you need it. Following your suggestion, I changed the declaration of the dialog in the method which calls it: I replaced Code: wxProgressDialog* dialog;dialog = new wxProgressDialog(...); with Code: wxProgressDialog(...) dialog; and it works like a charm. Thank you! Statistics: Posted by giulio_seb — Thu May 02, 2024 8:20 am ..read more
Visit website
C++ Development • Print 'hello world' when user clicks on overflow menu caret
wxWidgets Forum » C++ Development
by chris1979
9h ago
I want to 'do something' when user clicks on my overflow menu caret. At this stage I simple want to display a wxMessageBox but alas, it is not working. I don't get an error, nothing happens though. The overarching goal is to add and remove wxAuiToolBarItems prepend and append items from my custom overflow menu based on screen width. This is necessary as wxAuiToolBarItems with a kind of wxITEM_CHECK are not added to an overflow menu (see my previous post) this is my control identifier: Code: #define ID_AUITOOLBAR_PANE 10090 this is my event table entry: Code: EVT_AUITOOLBAR_OVERFLOW_CLIC ..read more
Visit website
C++ Development • Re: Cannot Destroy() wxProgressDialog
wxWidgets Forum » C++ Development
by ONEEYEMAN
19h ago
Hi, I meant the "dialogs" sample. Also - see the doublemax reply... Thank you. Statistics: Posted by ONEEYEMAN — Wed May 01, 2024 9:47 pm ..read more
Visit website
C++ Development • Re: Cannot Destroy() wxProgressDialog
wxWidgets Forum » C++ Development
by doublemax
19h ago
Do not keep an instance of any modal dialog alive for the lifetime of the app. Always create it on the stack when you need it. Statistics: Posted by doublemax — Wed May 01, 2024 9:27 pm ..read more
Visit website
C++ Development • Re: Cannot Destroy() wxProgressDialog
wxWidgets Forum » C++ Development
by giulio_seb
19h ago
It is unclear what you mean by `sample` Statistics: Posted by giulio_seb — Wed May 01, 2024 9:17 pm ..read more
Visit website
C++ Development • Re: Cannot Destroy() wxProgressDialog
wxWidgets Forum » C++ Development
by ONEEYEMAN
19h ago
Hi, In one of the methods which is called as the app starts, I then allocate progress_dialog and update it while reading a file Code: (wxGetApp().progress_dialog) = new wxProgressDialog(wxT("Welcome!"), wxString("Hello"), 100, NULL, wxPD_CAN_ABORT | wxPD_AUTO_HIDE | wxPD_SMOOTH | wxPD_ELAPSED_TIME | wxPD_REMAINING_TIME | wxPD_APP_MODAL); Is this how its done in the sample? Thank you. Statistics: Posted by ONEEYEMAN — Wed May 01, 2024 9:06 pm ..read more
Visit website

Follow wxWidgets Forum » C++ Development on FeedSpot

Continue with Google
Continue with Apple
OR