I've been trying everything but something or other always stops me cold. Now, I'm trying 2.8.10 (can't make 2.8.7 work) and I keep getting this linker error. Configure shows --with-opengl = no, yet it wants it but can't find it? Why? 10.5 on Macbook Pro
wxwidgets:
"_glFinish", referenced from:
_grabViaOpenGL in libwx_macd_core-2.8....
I am attempting to write a cross-platform GUI application that would be deployed to Windows, Mac OS X, and Linux. My requirements are:
Single code base for all three deployment platforms, without a large amount of conditional logic for handling differences between platforms.
Looks as close to "native" as possible on all three platform...
Hi! I'm using wxWidgets 2.8.9, built with the default settings under Windows XP, VC9. And I have absolutely standard EXE with IMPLEMENT_APP like this:
#include <wx/wx.h>
#include <wx/image.h>
#include "MainFrame.h"
class MyMainApp: public wxApp {
public:
bool OnInit();
};
IMPLEMENT_APP(MyMainApp)
bool MyMainApp::OnInit()
{
wx...
I'm working with a wxPython grid, but I cannot set the background color of it (the grid part that isn't filled with cells). I tried with grid.SetBackgroundColour, but without luck; the backcolor shown is always the default system color for windows.
wx.version() -> 2.8.10.1 (msw-unicode)
sys.version -> 2.5 (r25:51908, Sep 19 2006, 09:5...
Question
I'm trying to create a basic wxWidgets program with a text entry box, in the constructor there is a variable wxTextCtrlNameStr - in researching I can't seem to find wxTextCtrlNameStr? any help?
Given Code documentation:
wxTextCtrl(wxWindow* parent, wxWindowID id, const wxString& value = "", const wxPoint& pos = wxDefaul...
Hello,
I'm a newbie with a little experience writing in BASIC, Python and, of all things, a smidgeon of assembler (as part of a videogame ROM hack). I wanted to create small tool for modifying the hex values at particular points, in a particular file, that would have a GUI interface.
What I'm looking for is the ability to create small ...
I built wxWidgets on Linux using this command:
../configure --enable-shared --disable-debug
It see results of this build:
/usr/local/lib/wx/config/gtk2-ansi-release-2.8
/usr/local/lib/wx/include/gtk2-ansi-release-2.8/wx/setup.h
wx-config output:
alex@alex-linux:~$ wx-config --list
Default config is gtk2-ansi-release-2.8
Defa...
Hi, I'm trying to figure out how to redirect istream to wxwidgets.
I was able to accomplish redirecting ostream, here's how (so you know what I mean):
wxTextCtrl* stdoutctrl = new wxTextCtrl(...);
wxStreamToTextRedirector redirect(stdoutctrl); //Redirect ostream
std::cout<<"stdout -- does this work?"<<std::endl; //It worked.
I'...
Hi, I'm writing a wxWidgets GUI application, but it also uses some console objects.
I need a way of displaying stdout and accessing stdin; the best way to do this, would be displaying the console as well as the GUI. This can be done if a user runs the program from the command prompt/shell etc, but the command prompt does not automatica...
How could I programmatically install a font on the Mac platform (Snow Leopard)? What steps would I need to follow? I would like for the user to input a font file, then my software installs it.
...
I have the following chunk of C++ code that gets called when } is pressed:
int iCurPos = GetCurrentPos();
InsertText(iCurPos,wxT("}"));
int iPos = BraceMatch(iCurPos);
This works fine (iPos gets the position of the matching brace) except when I call SetLexer(...) beforehand. Then it returns -1? How can I get it to work?
Edit: I sho...
Hi All,
I mainly program plugins using wxWidgets within a Carbon bundle which is
loaded at runtime. The host-applications where my plugins are running in
provide a native window handle (WindowRef), which I can use to add my custom,
wxWidgets-based GUI-classes.
To use the native window handle with wxWidgets
classes I had to write a wxTo...
I'm writing a GUI app with wxwidgets in C++ for one of my programming classes. We have to validate input and throw custom exceptions if it doesn't meet certain conditions. My question is, what is best practice when it comes to this? Should I write a seperate function that checks for errors, and have my event handler's call that function?...
Is it possible ho put an AuiManager inside an AuiNotebook page?
Have tested with a small sample code, but I only get a 'Segmentation fault'.
Is this possible to begin with? The reason why I want this is to split a notebook page in two parts and get the caption field and the maximize field in the top of each part of the two parts. A sim...
Hi I am am trying to catch mouse movements for a MouseOver function in an app created with Code::Blocks using the wxSmith plugin. I have stumbled upon a puzzling problem. EVT_MOUSEWHEEL calling the function in the EventTable works well, but all other macros have no result at all. And the mousewheel is not really want I want (I just ...
Hello all,
I'm working on a program for my C++ programming class, using wxWidgets. I'm having a huge problem in that my event handlers (I assume) are not getting called, because when I click on the button to trigger the event, nothing happens. My question is: Can you help me find the problem and explain why they would not be getting cal...
hi. I am rather new to wx/python so please excuse if this is stupid or ill described.
I am substituting a nested sizer with a new one as shown in the snippet below. after some tinkering everything seems to work out but the re-drawing of the parent-sizer.
the content of the old nested sizer remains and gets "painted" over with the new si...
What good IDE would you recommend for C++ (GNU) programming, with support for the wxWidget library and a GUI builder/designer all in one? Can be either for windows or linux.
...
I have a wxWidgets application that has a wxStyledTextCtrl. But for the life of me, I cannot figure out how to get notified of modification events.
I have the following code:
void CMainWindow::OnDocumentModified(wxStyledTextEvent & event)
{
wxString msg;
msg << event.GetModificationType();
wxMessageBox(msg);
}
This gets c...
Is it easy to create an IPC setup with wxWidgets? I have an application that needs to detect if a previous instance is running and send a message to the running instance with a string value. Is there an easier way to do this than setting up a wxServer and wxClient-derived class?
...