(I am new to GUI programming; experienced programmer otherwise)
(Using wxPython; but generic advice welcome)
I am looking for advice / direction on implementing a widget that can do area selection on a plot. Any pointers from experienced users would be much appreciated.
What needs to be done is:
Implement a two dimensional plot.
Imp...
For wxWidgets, why do you need to say:
MyFrame *frame = new MyFrame
instead of:
MyFrame frame;
What's the difference between the two? The second one is nicer to read and easier to use but all examples use the first so I wondered what the reason is.
Just to clarify, I know the second version doesn't work, but I'm wondering if there's...
My application (Microsoft Windows only) is using a wxToolBar with wxTB_HORIZONTAL|wxTB_TEXT|wxTB_HORZ_LAYOUT flags set. All it's buttons/tools have the same width, which is based on the longest text.
I'd like to have buttons with different widths, depending on the tool label's length, just like the Windows native toolbar buttons (creat...
Is is possible to make a wxFrame object behave like a modal dialog box in that the window creating the wxFrame object stops execution until the wxFrame object exits?
I'm working on a small game and have run into the following problem. I have a main program window that hosts the main application (strategic portion). Occasionally, I nee...
I've run into an issue using a wxDialog object on Linux In the construtor for the object I pass the relevant style flags (wxCAPTION|wxMINIMIZE_BOX|wxMAXIMIZE_BOX|wxCLOSE_BOX|wx_RESIZE_BORDER) but the buttons don't show up. When I was designing the class in wxformbuilder they would appear on the displayed design but don't show up in my ...
Is there an easy way to handle when a user clicks on a wxTextCtrl? After reading the docs wxTextCtrl I see that there isn't a click or double click event. I understand that there is no such thing as "click" events in wxWidgets from the question wxWidgets: Detecting click event on custom controls, so a simple mouse down event will do.
Ex...
Hi. I posted this in the mailing list, but the reply I got wasn't too clear, so maybe I'll have better luck here.
I currently have a grid with data in it.
I would like to know if there is a way to give each generated row an
ID, or at least, associate each row with an object.
It may make it more clear if I clarify what i'm doing. It is ...
Hello. I have this WxWidgets test source code that compiles, and when run, it shows a simple frame:
/*
* hworld.cpp
* Hello world sample by Robert Roebling
*/
#include "wx-2.8/wx/wx.h"
class MyApp: public wxApp
{
virtual bool OnInit();
};
class MyFrame: public wxFrame
{
public:
MyFrame(const wxString& title, const wxPoin...
I use C++/MFC programming for developing some very basic applications.
but I am looking for a C++ framework which can enhance my productivity as well as use the drag and drop feature(so that I can write programs like in .NET just drag controls and drop).
and give me the C++ speed and native .exe + small .exe.
can wxWidgets give me such ...
I'm basicly looking to get a native-like window GUI system into my OpenGL/Game. I need to display a single window to the user.
I'm looking into wxWidgets.
Because it works by "stealing" the WinMain/MainLoop, I'm trying to hack it so I can run its main loop on a separate thread.
Because I couldn't get its wxThread working well, I've do...
I am thinking of using wxMathPlot for plotting/graphing some data that arrives continuously. I want to draw "Real-time" plot/graph using it. Is that possible?
I.E. I don't want just a static graph of a one-time read of a file - I want the streaming data plotted and continued out to the right of the graph - (and let the left side fall...
How one can obtain path to module?
I am writing extension enclosed in a DLL and want to get path to my library in runtime.
Update
Of course first way worked fine
static wxString GetModulePath()
{
static wxString path;
WCHAR buf[512] = {0};
GetModuleFileName(NULL, buf, 511);
path = buf;
return wxPathOnly(path);
}...
I build a list control which derived from wxHtmlListBox. There are 100 items in the list. When I press Key Down in keyboard continuely, all the list will be fully filled by just one item untill I release the key. This will not appear in Win32 but Linux. How can I fix it?
This will appear in the wxWidgets//Samples//htlbox.
...
I have an interface that has two toolbars, one attached to the frame and one embedded in a notebook tab. The one in the frame dutifully shows longHelp strings in the statusbar, the one in the notebook tab
does not. How do I tell the one on the notebook tab where to display its help, or do I have to manage enter and leave bindings myself?...
how to install wxwidgets for windows
...
Hi,
I got a wxWidgets form with a progress bar on it and i update the progress from a thread using my own custom wxWidget event. This works fine except the fact is the form only shows the progress update when i move the mouse. I have tried adding Refresh() and Update() after the new progress value is set but with no luck.
Am i doing so...
I feel like I must be missing something completely obvious, but I don't see how to search for text in a multi line textctrl. Is there an API for searching forwards and backwards through a text control?
I do not want suggestions involving the FindReplaceDialog, that's not an option I wish to explore. I will be creating an entry widget an...
Hi,
I'm trying to create a very simple message board (author, text, and date written) that will auto-update every few moments to see if a new message has arrived, and if it has, auto load the latest message(s).
I'm proficient in PHP, but my knowledge in AJAX is lacking.
The way I see it, I would have to create a PHP file called get_me...
Hello,
I am using wxwidgets together with boost::thread. The Thread is a worker thread which sends some Events to the GUI:
Thread creation:
thrd = boost::thread(boost::bind(workerFunction,this));
Send Message to the GUI:
wxPostEvent(loWindow, event);
wxSafeYield();
Under Windows I don't see any problems, but when starting the app...
Hi, I'm developing a cross-platform app w/ wxWidgets and opengl...
I'm not sure what the best way is to have fonts work in the glcanvas. I've tried using FTGL but I think the version included in Fedora 11 must be broken or something since I can't get the example code on the web site to compile. I could try using GLUT or SDL but I'm not...