Search found 14 matches

by PaulUK
Thu Dec 24, 2020 9:30 am
Forum: C++ Development
Topic: How to clear client area or replace sizers and controls on a panel
Replies: 1
Views: 117

How to clear client area or replace sizers and controls on a panel

I've been making some progress with my wxWidgets project and decided to go with a ribbon menu to choose from a number of independent calculator and simulation programs that would be shown in the main window frame. I have successfully been able to connect ribbon icons to event functions. It could equ...
by PaulUK
Tue Dec 08, 2020 8:23 am
Forum: C++ Development
Topic: Question about Ribbon UI Elements
Replies: 19
Views: 7176

Re: Question about Ribbon UI Elements

Has there been much development with the Ribbon since this thread was last active, in 2012? I'm considering to use a ribbon for my app but don't want to waste time learning it if it isn't much good. I think a ribbon with tabs would make it easier to navigate my app which will be a collection of smal...
by PaulUK
Sat Dec 05, 2020 6:03 pm
Forum: General Development
Topic: Projects for beginners
Replies: 5
Views: 469

Re: Projects for beginners

I'm just starting out and writing a simple GUI for an app to calculate the area of a circle using a function and including a skeleton menubar and toolbar with just one item. I'm planning on using this a template for more complex programs that I have planned. It's very simple but includes a number of...
by PaulUK
Sat Dec 05, 2020 5:53 pm
Forum: C++ Development
Topic: Program stops running/crash when using wxTextCtrl
Replies: 7
Views: 254

Re: Program stops running/crash when using wxTextCtrl

Thank you very much for explaining that. :D
by PaulUK
Sat Dec 05, 2020 4:34 pm
Forum: C++ Development
Topic: Program stops running/crash when using wxTextCtrl
Replies: 7
Views: 254

Re: Program stops running/crash when using wxTextCtrl

That worked but onlu when I declared wxTextCtrl *RadiusEntered at the top of the cpp file. Please can you tell me why this is so and why your recommended version worked when my first attempt didn't? I saw the method I used in a number of tutorials. Im just using the static event table for now but wi...
by PaulUK
Sat Dec 05, 2020 1:42 pm
Forum: C++ Development
Topic: Program stops running/crash when using wxTextCtrl
Replies: 7
Views: 254

Re: Program stops running/crash when using wxTextCtrl

It's essentially the same code as I originally posted here for my sizer issue that you helped with. https://forums.wxwidgets.org/viewtopic.php?f=1&t=47768 Only the OnRadiusEntered function is different, and the correction to the panel sizer has been implemented. I used an event table. When I made th...
by PaulUK
Sat Dec 05, 2020 11:59 am
Forum: C++ Development
Topic: Program stops running/crash when using wxTextCtrl
Replies: 7
Views: 254

Program stops running/crash when using wxTextCtrl

I have a wxTextCtrl called RadiusEntered and the control is set to trigger an event when Enter is pressed. The function triggers and does run the code in it when testing with a message box. When I have the following code the program stops working. I'm trying to read the text into a wxString called r...
by PaulUK
Fri Dec 04, 2020 7:42 am
Forum: C++ Development
Topic: Problem with panel and sizing it.
Replies: 4
Views: 194

Re: Problem with panel and sizing it.

I tried the recommendation:

Code: Select all

panel->SetSizer(vbox);
This worked, now the panel is sizing according to the main frame. Thank you for your help.
by PaulUK
Thu Dec 03, 2020 12:49 pm
Forum: C++ Development
Topic: Problem with panel and sizing it.
Replies: 4
Views: 194

Re: Problem with panel and sizing it.

Thank you, I will try that next. I'm still finding my way.

Next time I'll post just the code that I think is the problem area, I posted the whole file thinking that it may be easier to spot the problem, but point noted, thank you.
by PaulUK
Thu Dec 03, 2020 10:53 am
Forum: C++ Development
Topic: Problem with panel and sizing it.
Replies: 4
Views: 194

Problem with panel and sizing it.

Hello all, I'm working on my first program with wxWidgets and trying to lay out controls onto a panel with two tool bars for this skeleton program, and the frame should be resizable. This is the cpp file shown below and I'm sure that the problem is a newbie issue but when I try to change the window ...
by PaulUK
Wed Nov 25, 2020 11:12 am
Forum: C++ Development
Topic: Is it possible to have a gnuplot plot in wxFrame window.
Replies: 23
Views: 912

Re: Is it possible to have a gnuplot plot in wxFrame window.

Thank you, this seems like a nice solution, or at least a possible way to do it. I'm very new to wxWidgets so still learning the basics before I start to build my app. I'll first try to recreate your example. Is it possible to print and save plot images doing it this way?
by PaulUK
Mon Nov 23, 2020 3:22 pm
Forum: C++ Development
Topic: Is it possible to have a gnuplot plot in wxFrame window.
Replies: 23
Views: 912

Re: Is it possible to have a gnuplot plot in wxFrame window.

As a compromise, am I right in assuming I can open gnuplot from within my app, and send commands to plot and read the data to plot from a file? This might be a possibility. In a way, controlling gnuplot from within my wxWidgets app.
by PaulUK
Fri Nov 20, 2020 1:54 pm
Forum: C++ Development
Topic: Is it possible to have a gnuplot plot in wxFrame window.
Replies: 23
Views: 912

Re: Is it possible to have a gnuplot plot in wxFrame window.

Thanks for explaining that. It's a shame if it doesn't work in Windows because that's what I use the most. I will study what you did here anyway. Ideally I'd like to write a program that would work in Windows with the option to compile for Linux if requested.
by PaulUK
Thu Nov 19, 2020 8:54 am
Forum: C++ Development
Topic: Is it possible to have a gnuplot plot in wxFrame window.
Replies: 23
Views: 912

Is it possible to have a gnuplot plot in wxFrame window.

Hello All, I'm currently learning how to use wxWidgets and GUI programming in general with Code:Blocks and have some programs in mind that would need to display 2D and 3D plots in a window. Does anyone know how to embed a gnuplot plot/graph within a frame window in a similar way to how I've seen ope...