wxwidgets

SplashScreen covers any MessageBoxes in wxPython?

I have a SplashScreen shown while my application loads in the background. Unfortunately, if any errors occur during the application's initialisation a MessageBox is shown - but is behind the splash. This prevents the user from seeing the message, and from dismissing it (the only way to quit is through task manager). Q: Is there any way...

wxWidgets wfFreeChart drawing polygons on XY Plot

Hello. Maybe someone know how to solve this problem: I Have XY Plot with points on it (multi series). Now I would like to add to this plot a couple of reactangles to mark groups of points. Is it possible ? thanks for help ...

maximize frame on startup in wxHaskell

Hello, How can I make window maximized on start with wxHaskell ? Thanks for help ...

threads in wxWidgets

Hello, Im using wxWidgets and I call function which takes a long time to proceed. I would like to do it in background. How can I do that? Thanks for help ...

How can I change font leading (linespacing) in wxWidgets?

Then I use wxDC::DrawLabel for drawing multiline text I want to control font leading (linespacing). Is it possible? ...

How to populate wxListCtrl??? (using c++)

Hi all, I'm trying to populate a wxListCtrl but after trying various methods can't seem to be able to populate it with items. Basically, I want a list control that would have three columns with headings and will show values in rows. But I've tried InsertItem, SetItem, or InsertColumn methods but am only able to show the column headings...

How to add value to second column using wxListCtrl in wxWidgets (C++ code)??

I've following code: int column_width = 100; long indx1 = alist->InsertColumn(0, L"User Name", wxLIST_FORMAT_LEFT, column_width); long indx2 = alist->InsertColumn(1, L"User Id", wxLIST_FORMAT_LEFT, column_width); long itemIndex1 = alist->InsertItem(indx1, L"John Smith", -1); alist->SetItem(indx1, 1, L"jsmith"); I expect to see two ...

How do I make C++/wxWidgets code accessible to a wxPython app?

I have a code library which is written in C++ and makes extensive use of the wxWidgets library. I'm now trying to wrap my library (currently using SWIG) so that it's callable from wxPython, but I've hit a wall: ------ Build started: Project: MyLibLib, Configuration: Release_SWIG_OutputForBin Win32 ------ Performing Custom Build Step In ...

Drawing shapes with wxWidgets

I want to learn how to draw shapes with wxWidgets. Where do I start? In case there are multiple ways, I prefer ease of use over cross-platform compatibility. I'm a Windows user. ...

Receive Drag'n'Drop in entire wxWidgets window?

I'm receiving drag'n'dropped files in my WxWidgets application via the common wxFileDropTarget manner. In windows, a file can be dropped anywhere on my window, however in OS X only if I drop the file over a blank area of the window does it work. I'm doing the SetDropTarget to my main window and would like to avoid having to do this to ev...

SetBold wxDataViewItemAttr clips the text rendering

I'm using wxWidgets 2.9 and created a Tree+List Control with wxDataViewCtrl class and wxDataViewModel for providing data to the view. Some of the items to be specified with bold style. Doing so displayed text is clipped. Please see below screen shot. Left side with the problem where text is clipped, right side without the problem but n...

How do I have my apps dialog box pop up and take focus from the current running app?

I know this type of thing is looked negatively upon but I write software for people with disabilities and sometimes good gui practices don't make sense. In this case, the user interacts with a assistive interface and under certain conditions, my control app needs to prompt the user with a question. My background process creates a dialog ...

wxWidgets running on other machine

Hello, I created application which uses wxWidgets library using visual studio 2008. Now I would like to create version which may be run on other machine. Because right now when I want to run It on another machine there is an error: the application failed to start because its side-by-side configuration is incorrect. What can I do to m...

Example of configuring wxStyledTextCtrl/wxScintilla control as code editor for custom language

How do you enable actions like Goto line number Find(/Replace) There don't appear to be default triggers for these actions. There are a bunch of methods on the control, but I'm missing the first step of how to get the 'events' that would trigger these. For instance, how does one hook ctrl+f or F3/Alt+F3 in the control and make them d...

wxGrid different cursor

Hello, Im using wxGrid which has 3 columns. I would like cursor to be differen (Hand) when mous is over cells from 2 and 3 column. How can I do that ? Thanks for help ...

getting value of clicked point wxFreeChart

Hello, Does anyone know how can I get value of clicked point on wxFreeChart plot ? Thanks for any hint. In documentation (http://wxcode.sourceforge.net/docs/freechart/) there is soemthing like: bool AxisPlot::ToDataCoords ( size_t nData, wxDC & dc, wxRect rc, wxCoord gx, wxCoord gy, double * x, double * y ) ...

Specifying test dependencies in CppUnit?

I would like to specify the order of testing in CppUnit. According to my research, the testing order depends on either the compiler or linker and how they came across the files. How does one specify dependencies in CppUnit? For example, let us consider a rectangle class that has four lines. Each line contains two point classes. As...

Can a subclass of wx::StaticBoxSizer handle events?

I'm trying to add an event-handler to a subclass of Wx::StaticBoxSizer, but I'm getting the following error: Can't locate object method "Connect" via package "Wx::StaticBoxSizer" at C:/strawberry/perl/site/lib/Wx/Event.pm line 38. Does that mean that Wx::StaticBoxSizer can't handle events? If so, is there another way to structure ...

wxWidgets: wxString::wxString(int) private within this context

I have a subclass of wxHtmlListBox called TestClass, but I get the error: /usr/include/wx-2.8/wx/string.h:682:0 /usr/include/wx-2.8/wx/string.h:682: error: 'wxString::wxString(int)' is private MainFrame.cpp:106:0 MainFrame.cpp:106: error: within this context MainFrame.cpp line 106 is this: TestClass *tc = new TestClass(this,...

wxWidgets: How to catch left-click on wxListCtrl?

Hi all, I want to add checkboxes to a wxListCtrl, and this works fine except there doesn't appear to be an EVT_LIST_ITEM_CLICK or EVT_LIST_ITEM_LEFT_CLICK event to catch when the mouse is clicked on the item so the image can be toggled. There are events for right and middle click, just not left click - which means you have to middle or...