Search found 126 matches

by Grrr
Thu Jul 09, 2015 2:01 pm
Forum: C++ Development
Topic: wxDataViewCtrl AppendBitmapColumn does not show bitmap
Replies: 1
Views: 665

wxDataViewCtrl AppendBitmapColumn does not show bitmap

I tried to add an item with a bitmap to a data view but did not get it to work: // Add the column. m_ctrl->AppendBitmapColumn("Image", 1, wxDATAVIEW_CELL_INERT, -1, wxALIGN_CENTER, wxDATAVIEW_COL_RESIZABLE|wxDATAVIEW_COL_REORDERABLE); // Create the bitmap. wxImage* applesImage = new wxImage(apples_x...
by Grrr
Mon May 04, 2009 7:17 am
Forum: Compiler / Linking / IDE Related
Topic: Cross compiling 64 to 32 bits
Replies: 1
Views: 487

With other packages, I have run the configure tool with the following paramters.

Code: Select all

# ./configure CPPFLAGS=-m32 CXXFLAGS=-m32 LDFLAGS=-m32
Don't know if it works for wxWidgets too.
by Grrr
Thu Apr 23, 2009 6:48 am
Forum: Compiler / Linking / IDE Related
Topic: WinXP/MinGW compile errors "wx/defs.h: No such file....
Replies: 5
Views: 1482

Yep, backticks don't work in the Windows shell; it's a Unix shell feature. You can still run wx-config (if it exists) from the command line. It will write the g++ options to the console. You can copy & paste it when you run g++. wxUSE_FILESYSTEM is probably defined in setup.h; the same setup.h shoul...
by Grrr
Wed Apr 22, 2009 7:29 am
Forum: Compiler / Linking / IDE Related
Topic: WinXP/MinGW compile errors "wx/defs.h: No such file....
Replies: 5
Views: 1482

Add a search path to gcc using the -I option. gcc -I/path/to/include/files demo.cpp -o demo Or use wx-config to determine this path for you. It is available for Linux; don't know about WinXP/MinGW. gcc `wx-config --cxxflags` -c demo.cpp wx-config can determine other compiler options, such as where t...
by Grrr
Mon Apr 20, 2009 8:03 am
Forum: C++ Development
Topic: wxMutex wait TimeOut
Replies: 2
Views: 835

You must not use Wait() and Signal() in the same thread. One thread does some work and calls Signal() when it is ready. Another thread can call Wait() or WaitTimeout() to wait for the other thread to finish. If we call the thread that does the work the "worker thread" and the thread that waits the "...
by Grrr
Tue Apr 14, 2009 6:35 am
Forum: Compiler / Linking / IDE Related
Topic: wxStrdupA?
Replies: 1
Views: 672

When compiling the wxWidgets library or your program?
by Grrr
Wed Apr 08, 2009 7:52 am
Forum: C++ Development
Topic: Difference between max size, best size and min size ?
Replies: 3
Views: 947

AFAIK the best size is the preferred size of the control. When you call wxWindows::Fit() on the parent window, it tries to honour this best size.

When the user resizes the parent windows, the minimum and maximum size is limited by the min and max sizes of the controls.
by Grrr
Mon Apr 06, 2009 7:13 am
Forum: C++ Development
Topic: Why are my mutexes leaking memory?
Replies: 1
Views: 985

A reason might be that you create the mutexes when static variables are initialized. If this occurs before wxWidgets is correctly initialized, wxWidgets memory leak detection can get confused.

Try initializing the static variables to 0. Create the mutex in wxApp::OnInit().
by Grrr
Thu Apr 02, 2009 7:04 am
Forum: C++ Development
Topic: Add transparency to images on wxBitmapButton
Replies: 7
Views: 1857

I had some other problems with wxBitmapButton as well which were solved when I first create a wxImage, then a wxBitmap from this image. wxImage image(imagePath); wxBitmap bitmap; if (image.IsOk()) bitmap = wxBitmap(image); At least transparent PNG images work this way (I haven't tried PNG images wit...
by Grrr
Fri Mar 06, 2009 7:35 am
Forum: C++ Development
Topic: Why cant I access my thread?
Replies: 7
Views: 1224

Maybe because the thread is no longer running? Maybe because any of the pointers "Pointer" and "ThreadLink" are no longer valid?
by Grrr
Mon Mar 02, 2009 9:07 am
Forum: C++ Development
Topic: How to inform brother control to repaint itself?
Replies: 3
Views: 911

I am not familiar with the document/view framework of wxWidgets. I am not exactly sure what you want to do. However paint events should be handled by the window that receives the paint event. Paint events are generated by the OS, whenever the OS decides the window needs repainting. E.g. when the win...
by Grrr
Fri Feb 27, 2009 9:11 am
Forum: Component Writing
Topic: wxCommandLineHistory
Replies: 2
Views: 1498

wxList has some stack-like functions, such as push_front() and pop_front(). You can also use wxArrayString if you need array-like accecss.
by Grrr
Fri Feb 27, 2009 9:01 am
Forum: C++ Development
Topic: How to inform brother control to repaint itself?
Replies: 3
Views: 911

Catch the click event in your frame and call the canvas Refresh() and Update() members?
by Grrr
Wed Feb 25, 2009 8:24 am
Forum: C++ Development
Topic: wxSocket does not disconnect on windows sleep
Replies: 1
Views: 857

Why do you expect a disconnect message? When a client machine goes into sleep mode, the (Windows) OS does not automaticly close open connections. You can use a time-out mechanism to determine a client is no longer live. If you haven't received a message from the client for some period of time, the s...
by Grrr
Wed Feb 25, 2009 7:38 am
Forum: C++ Development
Topic: Invoking dialog from an multithreaded application
Replies: 2
Views: 978

You can't. All GUI calls must be done in the main thread. That includes creating windows. If a thread, other than the main thread, needs to display a dialog, you can send an event from the thread to the main thread. The main thread can then create and show the dialog. If the thread needs to wait unt...