Search found 169 matches

by fantaz
Thu Sep 25, 2014 11:10 am
Forum: C++ Development
Topic: wxMutexGuiEnter() and wxMutexGuiLeave()
Replies: 10
Views: 2996

Re: wxMutexGuiEnter() and wxMutexGuiLeave()

Yey, first hit on google! :-)
This is possible with wx_Ver >= 3. IMO, your post should be at the top of this thread, just to show how it's easy to send custom events.

Thanx for sharing.
best regards,
fantaz
by fantaz
Sat Dec 27, 2008 5:50 pm
Forum: Compiler / Linking / IDE Related
Topic: help to compiling wxArt2D
Replies: 1
Views: 598

ugh, too many questions, and sorry to say, but I can give you only some guidelines. Experienced users, please jump in! I've managed to build the wxart2d on linux, and yeah, it was a painful process for me. Ok, here we go. First, if you want dlls, did you build the wxwidgets in dll "mode"? If not, yo...
by fantaz
Fri Dec 05, 2008 2:16 pm
Forum: C++ Development
Topic: Implementing zoom for a custom control
Replies: 5
Views: 861

not an expert, but it seems to me that it depends what you want to do. e.g. what about axis? Do you want them to be visible in all times, or you want to implement zoom like zooming in a picture (figure)? Maybe you should look at the wxplotctrl source for reference (available at wxcode.com) and see h...
by fantaz
Wed Nov 12, 2008 8:03 am
Forum: C++ Development
Topic: use the wxPostEvent send a user-defined data
Replies: 5
Views: 876

glad it helped :D
best regards,
fantaz
by fantaz
Mon Nov 10, 2008 8:36 am
Forum: C++ Development
Topic: use the wxPostEvent send a user-defined data
Replies: 5
Views: 876

In addition to the docs, maybe this could help also
best regards,
fantaz
by fantaz
Wed Oct 01, 2008 7:55 am
Forum: Component Writing
Topic: html generator
Replies: 2
Views: 1028

Just feed the html output of any generator to your html control. Or maybe i didn't get the question? Sorry, I wasn't specific enough :oops:. I don't want to write tags around headings, body, tags for bold etc. All I want to do is to write something like this: generator.InsertHeading(wxT("Heading1")...
by fantaz
Tue Sep 30, 2008 10:59 am
Forum: Component Writing
Topic: html generator
Replies: 2
Views: 1028

html generator

Hi, is there a nice and simple html generator ready for use in wxwidgets, so that the output can be viewed directly in wxHTMLWindow?
btw, i've seen wxxml2, but i'd like to use something lighter...

best regards,
fantaz
by fantaz
Fri Sep 12, 2008 10:56 am
Forum: C++ Development
Topic: creating a graph control
Replies: 6
Views: 1378

Take a look at the wxPlotCtrl. Maybe it will help...
best regards,
fantaz
by fantaz
Wed Aug 27, 2008 8:45 am
Forum: wxCode
Topic: wxPlotCtrl drawing questions
Replies: 7
Views: 2520

Glad that you've found the solution
best regards,
fantaz
by fantaz
Tue Aug 26, 2008 9:44 am
Forum: C++ Development
Topic: How to put XRC file to binary file
Replies: 2
Views: 1747

here you go: execute in the command line wxrc.exe input.xrc -v -c -o output.cpp where wxrc.exe is an exe which can be built (if not already) and its source code is in utils dir. insert output.cpp in your project and then do this: declare in your app.cpp #include <wx/xrc/xmlres.h> ... extern void Ini...
by fantaz
Tue Aug 26, 2008 9:14 am
Forum: wxCode
Topic: wxPlotCtrl drawing questions
Replies: 7
Views: 2520

Hm, did you look at the wxPlotCtrl::CalcBoundingPlotRect fn which gets executed in AddCurve fn? ... // add some padding so the edge points can be seen double w = (!zeroWidth) ? rect.m_width/50.0 : 0.0; double h = (!zeroHeight) ? rect.m_height/50.0 : 0.0; m_curveBoundingRect.Inset(-w, -h, -w, -h); .....
by fantaz
Mon Aug 25, 2008 9:44 am
Forum: wxCode
Topic: wxPlotCtrl drawing questions
Replies: 7
Views: 2520

Hi, the wxPlotCtrl::AddCurve(...) contains if (m_fit_on_new_curve) SetZoom( -1, -1, 0, 0, true ); else Redraw(wxPLOTCTRL_REDRAW_PLOT); piece of code. Maybe the m_fit_on_new_curve is set to false? Sorry, it's the only thing I can see right now. btw, do you really need to do SetViewRect(...) fn? Maybe...
by fantaz
Fri Jun 27, 2008 10:03 am
Forum: wxCode
Topic: wxPlotCtrl - graph with dates as xAxis - Is it possible ?
Replies: 2
Views: 952

take a look at this article
best regards,
fantaz
by fantaz
Sat May 31, 2008 3:26 pm
Forum: wxCode
Topic: setting the symbol for wxPlotData
Replies: 8
Views: 1603

thanx, great job!
best regards,
fantaz
by fantaz
Thu May 29, 2008 7:51 pm
Forum: wxCode
Topic: setting the symbol for wxPlotData
Replies: 8
Views: 1603

I've looked at the sources, and I guess that the problem lies here: void wxPlotData::SetSymbol( wxPlotSymbol_Type type, wxPlotPen_Type colour_type, int width , int height, const wxPen *pen, const wxBrush *brush) { wxCHECK_RET( Ok(), wxT("Invalid wxPlotData") ); switch (colour_type) { case wxPLOTPEN_...