wxwidgets

Need help writing "backgroundless" widget for wxWidgets (wxGTK) using GTK2

Hi there. My question is concerned with GTK2 and wxWidgets (actually wxGTK). In wxGTK all controls have grey background by default and it is impossible to remove it. I have a textured panel with custom child controls and each of my controls has an ugly grey border which I can't remove. I can only set some background color and make the ...

Complete example of wxwidgets custom event passing string data

I am receiving messages from the network on a non-GUI thread and need to use wxEvtHandler::AddPendingEvent to tell the GUI to update accordingly. I also need to pass data to my GUI code so that it can act apropriately. I believe I have to create a custom event, but haven't found a straightforward implementation. This closest thing that ...

ld: symbol(s) not found when linking

I am trying to compile "Loch" without any success on my Mac OSX 10.6. I always get some "symbol(s) not found when compiling" error. Anyone an idea what could be the problem? Thanks a lot c++ -o loch -Wall getline.o lxTR.o lxOGLFT.o lxSetup.o lxRender.o lxWX.o lxImgIO.o lxLRUD.o lxFile.o lxSTree.o lxData.o lxMath.o lxSView.o lxSScene.o ...

GtkExpander style widget in wxWidgets?

I'm looking for a widget along the lines of GtkExpander, but for wxWidgets. Can't seem to find anything obvious in the documentation. Custom widgets (non-GPL) from somewhere else would be fine, but they need to work on Windows (i.e. without GTK). Practically (if it makes any difference) this is primarily for wxPython, on Windows and hop...

wxWidgets ComboBox center on selected item

Hello SO, I have a requirement to center a wx.ComboBox on the selected item when opened. Basically, I want to do this (http://stackoverflow.com/questions/592911/wpf-listbox-centering-selected-item), but using wxWidgets. Thanks ...

WX: attempting to select value when clicking a text field.

We are implementing a text field to do numeric entry. We subclass the standard wxTextCtrl. Behavior is that when user decides to edit the value they get a full precision version and it is selected. First attempt was to override the focus handler so that when the field gets focus the value is shown in full and selected. This works gre...

Trouble Compiling wxWidgets for Code::Blocks

I am attempting to compile wxWidgets 2.8.11 on Windows 7 x64 for use with Code::Blocks, and I keep running into the same error. I have MinGW installed as stated, and the proper things added to the path (c:\mingw\bin and c:\mingw\mingw32\bin). I followed the instructions given here: http://wiki.codeblocks.org/index.php?title=Compiling_w...

linker error using wxwidgets with cmake

HI, I'm getting following linker error when I compile my program with VS2008 solution which is created with CMake for my wxwidgets based application. *error LNK2019: unresolved external symbol main referenced in function __tmainCRTStartup* but, same program I'm able to compile with normal VS2008 solution which is not created with CMake...

Troubling Compiling wxWidgets with MinGW

I am having trouble compiling wxwidgets with mingw on Windows 7 x64. It compiles for 30+ min, then runs out of memory. My computer has 6 GB of memory, so I don't know what is wrong. Someone mentioned something about a 64 bit version of MinGW. Would this help, and if so, how would I use this? I am able to compile just fine with Visual S...

How to change StatusBar font color in wxWidgets?

I want to display an error message in red on status bar if a user action results in error. I have tried setting the forground color to red but the it still displays the message in default black font. How do make the font color red on statusbar? I'm using wxWidgets 2.8 on red hat 5.5 Thanks! ...

Focus-follows-mouse in wxPython?

I'm developing an application that contains a number of panes. See the screenshot: The left settings pane is a wx.ScrolledPanel that contains a number of wx.Panels. The top events pane is a wx.grid.Grid. The bottom data pane is a wx.Panel that contains a wx.grid.Grid. The middle plot pane is a wx.Panel containing an enthought chaco p...

RTTI ?? create multiple object at runtime wxwidgets ??

hi sorry for my stupid question what are the right way to create multiple control object from a list of array of label of object ...? thank ...

A good tutorial on wxlua

Hello. I'm trying to teach myself wxlua. There are alot of examples for it online but not so many tutorials. Most documentation is for wxwidgets and it's pretty thick. Any recommendations for a tutorial? I still get a bit confused on what steps in order I'd need to take in order to be able to place where controls go. A form builder li...

Can I control the scrollbar of a wxListBox in python?

I would like to control the viewed data based on the position of the scrollbar. If the scrollbar thumb is at the bottom, then when data is appended to the view the view should move with the added data. However, if the scrollbar thumb is positioned somewhere else, I want the view to stay fixed at that spot . . . I understand things chan...

Find text dialog with wxpython

Does anyone have a very simple example of using a find dialog with a text component in wxpython? Thanks in advance. ...

How can I change wxMenu's Text color?

I want to change wxMenu's Text color,but not MenuItem's text color.Thank you for your advices. ...

How can I change Menu's Text color?

I want to change Menu's Text color, but not MenuItem. ...

wxWidgets compiling with an error

I am trying to compile and create wxWidget apps but when its just about done I have a virtual memory runout and there is an error in the wxWidgets code I have tried it several times with 2.8.10 AND 2.8.11, no luck, I am using codeblocks 10.5 and mingw I think version 5.02 but I am not positive whenever I start a wxwidgets app in codebloc...

Creating a wxActiveXContainer

My objective is to display an active x object in wxwidgets. I have declared two member pointers: TeeChart::ITChartPtr mpChart; wxActiveXContainer* mpAx; I then create an instance of the teechart control: mpChart.CreateInstance("TeeChart.TChart"); I then wish to create an instance of the wxActiveXContainer defined as: wxActiveXCon...

object oriented design question for gui application

Hello, guys, I am programming a GUI for an application, a cd container to insert cd, and currently I am not very clear and I think I need some help to clarify my understanding about object oriented design. so, first, I use observer pattern to build abstract Model and View classes and also the concrete models(cd container) and concrete ...