Search found 85 matches

by ValeV
Thu Feb 11, 2021 10:10 am
Forum: C++ Development
Topic: wxWizard on resize
Replies: 5
Views: 145

Re: wxWizard on resize

I see, I will try that out with resize handler. But then it becomes a wxNotebook, right? Maybe I have different representation, but for me, notebook has different purpose - showing grouped data in different tabs. My goal was to create a wizard like application (the goal is for user to select appropr...
by ValeV
Wed Feb 10, 2021 3:09 pm
Forum: C++ Development
Topic: wxWizard on resize
Replies: 5
Views: 145

Re: wxWizard on resize

Thank you for your help. I have couple of questions 1 - you will need to call "CallAfter()" in the EVT_SIZE() handler You want me to put handler on every wizard page? 2 - and check if the wizard is just creating or being resized Which function checks this? I looked at wxSizeEvent documentation but d...
by ValeV
Wed Feb 10, 2021 12:30 pm
Forum: C++ Development
Topic: wxWizard on resize
Replies: 5
Views: 145

wxWizard on resize

Hello, I am making wxWizard with wxPanels that derive from wxWizardPageSimple. In Wizard constructor I chain 4 panels together and then use GetPageAreaSizer()->Add(panel1); When I run the wizard, only elements on first panel are resized when I resize the wizard window. On all other panels, the eleme...
by ValeV
Fri Feb 05, 2021 9:06 am
Forum: C++ Development
Topic: wxGauge with std::future
Replies: 2
Views: 146

Re: wxGauge with std::future

How does it crash, occasionally and randomly or always at the same time? Can you provide a call stack of the crash? What are you doing inside the async function? It's probably running in a separate thread, and you must not make any GUI calls from there. Sorry, you were right, I was making some GUI ...
by ValeV
Wed Feb 03, 2021 3:28 pm
Forum: C++ Development
Topic: wxGauge with std::future
Replies: 2
Views: 146

wxGauge with std::future

Hi, I have different outcome depending if I use wxGauge or wxProgressBar. I am using wxSmith. Please take a look at the code. BEGIN_EVENT_TABLE(Page4,wxWizardPageSimple) //(*EventTable(Page4) EVT_WIZARD_PAGE_SHOWN(wxID_ANY, Page4::OnPage4Shown) //*) END_EVENT_TABLE() ... void Page4::OnPage4Shown(wxW...
by ValeV
Tue Feb 02, 2021 10:06 am
Forum: C++ Development
Topic: wxWizard application hangs
Replies: 4
Views: 188

Re: wxWizard application hangs

ONEEYEMAN wrote:
Fri Jan 29, 2021 4:49 pm
Hi,
Can you give a link to this "best practice"?

Thank you.
Sorry for late answer, this is the article I was reading: https://isocpp.org/blog/2015/09/quick-q ... -i-use-one

Quote: "Smart pointers should be preferred over ‘raw’ pointers."
by ValeV
Fri Jan 29, 2021 11:21 am
Forum: C++ Development
Topic: wxWizard application hangs
Replies: 4
Views: 188

Re: wxWizard application hangs

I understand. I wanted to use smart pointer because of best practice. I will keep in mind to not use them with wxWidgets.

Thank you!
by ValeV
Fri Jan 29, 2021 10:42 am
Forum: Compiler / Linking / IDE Related
Topic: wxSmith change autogenerated constructor?
Replies: 3
Views: 117

Re: wxSmith change autogenerated constructor?

Hi, You can manually create a descendant class and do whatever you want. Or don't change the project Or create you GUI manually. Thank you. Thank you for your answer. What is the difference between first and third option? Isn't creating GUI manually same as writing wxWidgets code, in my descendant ...
by ValeV
Thu Jan 28, 2021 2:21 pm
Forum: Compiler / Linking / IDE Related
Topic: wxSmith change autogenerated constructor?
Replies: 3
Views: 117

wxSmith change autogenerated constructor?

Hi, is it possible to change wxSmith's autogenerated code? For instance, when I add new wxPanel, wxSmith puts Create(parent, wxID_ANY, wxDefaultPosition, wxDefaultSize, wxTAB_TRAVERSAL, _T("wxID_ANY")); into panel's constructor. Is it possible for me to change what arguments are in Create()? If I ch...
by ValeV
Thu Jan 28, 2021 12:15 pm
Forum: C++ Development
Topic: wxWizard application hangs
Replies: 4
Views: 188

wxWizard application hangs

Hi all, I have troubles using smart pointer with wxWizard as the only wxWindow for my application. bool ASDFApp::OnInit() { //(*AppInitialize bool wxsOK = true; wxInitAllImageHandlers(); if ( wxsOK ) { std::unique_ptr<MyWizard> wizard(new MyWizard()); SetTopWindow(wizard.get()); wizard->RunWizard(wi...
by ValeV
Wed Nov 04, 2020 11:58 am
Forum: Platform Related Issues
Topic: GUI appearance changed
Replies: 4
Views: 466

Re: GUI appearance changed

That was it! The resource.rc wasn't there (like in your screenshot), so I added the file via right clicking on project. It was confusing, because in some other projects, the file is not visible like in your screenshot, but the GUI is still fine. Seems like now I know the answer - manually inserting ...
by ValeV
Wed Nov 04, 2020 11:10 am
Forum: Platform Related Issues
Topic: GUI appearance changed
Replies: 4
Views: 466

Re: GUI appearance changed

My resource file content: aaaa_logo ICON "drive.ico" #include "wx/msw/wx.rc" Actually, looking at the screenshot it seems you somehow do not include your resource.rc file in your project any more: Even the frame icon is missing. Where do you include resource.rc file? I checked project's .cbp file, b...
by ValeV
Wed Nov 04, 2020 10:17 am
Forum: Platform Related Issues
Topic: GUI appearance changed
Replies: 4
Views: 466

GUI appearance changed

Hi, I am having troubles with wxWidgets loading correct GUI appearance. I am working on Windows 10, wxWidgets 3.1.2, CodeBlocks, GCC. I was making app, all was going well, appearance was ok: before.jpg I don't know what I changed in my project files, but the appearance changed to: after.jpg You can ...
by ValeV
Thu Oct 01, 2020 6:15 am
Forum: C++ Development
Topic: SetFont for whole application
Replies: 2
Views: 260

Re: SetFont for whole application

Thank you for the example, I will take a look.
by ValeV
Wed Sep 30, 2020 12:56 pm
Forum: C++ Development
Topic: SetFont for whole application
Replies: 2
Views: 260

SetFont for whole application

Hi, I am trying to change font for all text in the application. I understand I should use SetFont() ( https://forums.wxwidgets.org/viewtopic.php?t=28801 ), which I use on main wxPanel (all widgets are inside it). Since I am using wxSmith, my problem is that the code for widgets is created automatica...