Search found 32 matches

by nona
Tue Sep 11, 2018 3:46 pm
Forum: General Development
Topic: Closing wxFrame
Replies: 1
Views: 1130

Re: Closing wxFrame

I got my problem fixed by creating the dashboard frame not as a login child then closed the login.

Code: Select all

 Dashboard* main = new Dashboard(0); //Just do not create a frame as a child that works fine
            main->Show();
            Close();
by nona
Tue Sep 11, 2018 2:02 pm
Forum: General Development
Topic: Closing wxFrame
Replies: 1
Views: 1130

Closing wxFrame

Hello All, I have a program that has login frame and another dashboard frame. My program logic is after loginned the dashboard frame will appear and the login page should be closed. I am using the code below to do it but when I close the dashboard frame it is not closing the proper way I guess becau...
by nona
Tue Aug 14, 2018 4:44 pm
Forum: General Development
Topic: Using Catch2 testing tools with wxWidgets
Replies: 3
Views: 306

Re: Using Catch2 testing tools with wxWidgets

AFAIK wxWidgets use it also for GUI testing, see "Writing GUI-specific tests" in WXWIN/docs/contributing/how-to-write-unit-tests.md and the tests themselves in the WXWIN/tests folder. Thanks for your reply but I do not know where I should find this file WXWIN/docs/contributing/how-to-write-unit-tes...
by nona
Tue Aug 14, 2018 3:24 pm
Forum: General Development
Topic: Using Catch2 testing tools with wxWidgets
Replies: 3
Views: 306

Using Catch2 testing tools with wxWidgets

Hi all,

I found catch2 as a useful automation testing tool I could only test c++ console application with it. my question is Can I use it with GUI application or not :-k ?
by nona
Fri Aug 10, 2018 3:57 pm
Forum: wxCode
Topic: Using wxFreeChart in wxWidgets
Replies: 12
Views: 2533

Re: Using wxFreeChart in wxWidgets

First of all: A sizer that only contains one element usually doesn't make any sense. I assume you will add more elements later. FlexGridSizer1 = new wxFlexGridSizer(0, 3, 0, 0); A wxFlexGridSizer should not have "0" rows (first parameter) For grid based sizers, the wxEXPAND flag is not enough, you ...
by nona
Fri Aug 10, 2018 2:40 pm
Forum: wxCode
Topic: Using wxFreeChart in wxWidgets
Replies: 12
Views: 2533

Re: Using wxFreeChart in wxWidgets

#include "test.h" #include <wx/pie/pieplot.h> #include <wx/category/categorysimpledataset.h> #include <wx/chart.h> #include <wx/xy/XYPlot.h> #include <wx/xy/xysimpledataset.h> #include <wx/xy/xylinerenderer.h> #include <wx/chartpanel.h> #include <wx/aui/aui.h> #include "wx/chartpanel.h" #include <w...
by nona
Fri Aug 10, 2018 2:35 pm
Forum: wxCode
Topic: Using wxFreeChart in wxWidgets
Replies: 12
Views: 2533

Re: Using wxFreeChart in wxWidgets

doublemax wrote:
I tried to use the chart with FlexGridSizer but it did not work
"did not work" is not a useful error description. In any case, most likely it has nothing to do with wxFreeChart, only with your sizer code.
In this case I used: Frame-->Panel-->StaticBoxSizer
by nona
Fri Aug 10, 2018 2:34 pm
Forum: wxCode
Topic: Using wxFreeChart in wxWidgets
Replies: 12
Views: 2533

Re: Using wxFreeChart in wxWidgets

doublemax wrote:
I tried to use the chart with FlexGridSizer but it did not work
"did not work" is not a useful error description. In any case, most likely it has nothing to do with wxFreeChart, only with your sizer code.
I used Frame-->wxFlexSizer-->wxPanel-->wxStaticBoxSizer
by nona
Thu Aug 09, 2018 3:22 pm
Forum: wxCode
Topic: Using wxFreeChart in wxWidgets
Replies: 12
Views: 2533

Re: Using wxFreeChart in wxWidgets

I think your problem is how you declare your charts and add them to the frame. Your code works for the most part, try changing some things, like; wxBoxSizer* bSizer1; bSizer1 = new wxBoxSizer( wxVERTICAL ); wxChartPanel* GraphChartPanel = new wxChartPanel(this,-1); bSizer1->Add(GraphChartPanel, 1,w...
by nona
Tue Aug 07, 2018 1:51 pm
Forum: wxCode
Topic: Using wxFreeChart in wxWidgets
Replies: 12
Views: 2533

Re: Using wxFreeChart in wxWidgets

Thanks I got it worked now =D> :) Many thanks.
by nona
Tue Aug 07, 2018 1:41 pm
Forum: wxCode
Topic: Using wxFreeChart in wxWidgets
Replies: 12
Views: 2533

Re: Using wxFreeChart in wxWidgets

Thanks for your reply I will test your code.
by nona
Wed Aug 01, 2018 6:46 pm
Forum: wxCode
Topic: Using wxFreeChart in wxWidgets
Replies: 12
Views: 2533

Using wxFreeChart in wxWidgets

Hello Everyone, I am trying to draw a Pie Chart using wxFreeChart Lib here is the code I wrote, The problem is the charts is blank not showing anything. Anyone knows what is wrong with my code. Thanks! // serie pieplot data double data[] = {1.0, 2.0, 3.0} ; wxString categories[] = {_("cat 1"), _("ca...
by nona
Thu May 31, 2018 6:09 pm
Forum: Compiler / Linking / IDE Related
Topic: Add wxFreeChart tools to Code::blocks
Replies: 1
Views: 317

Add wxFreeChart tools to Code::blocks

Hi All,
Please I need your help to finish my task. I did build and complied wxFreeChart, added the lib and .h files to my project then build it with 0 errors. but the code::blocks did not change and I can not see wxfreechart tools to drag and drop to my gui area.
Thank you
by nona
Thu May 31, 2018 4:58 pm
Forum: Compiler / Linking / IDE Related
Topic: Build wxFreeChart and using it in Code::Blocks
Replies: 23
Views: 1283

Re: Build wxFreeChart and using it in Code::Blocks

ONEEYEMAN wrote:Hi,
Sorry, I don't use neither of those packages.

Thank you.
Ok np. Thanks for your help.
by nona
Thu May 31, 2018 1:56 pm
Forum: Compiler / Linking / IDE Related
Topic: Build wxFreeChart and using it in Code::Blocks
Replies: 23
Views: 1283

Re: Build wxFreeChart and using it in Code::Blocks

ONEEYEMAN wrote:Hi,
Are you able to run the program?

Thank you.
Yes, I can. Would u please send me a screen shoot to how the wxfreechart looks like in code::blocks. I already have mathplot and I have a list of graph to choose and drag and drop to my wsx files.
Thanks!