Search found 10 matches

by jett
Wed Sep 19, 2007 7:56 am
Forum: wxDev-C++
Topic: Error compiling wxWidgets 2.8.5 on MingW
Replies: 1
Views: 598

Error compiling wxWidgets 2.8.5 on MingW

I am getting the following errors when compiling wxWidgets on Windows XP using MSYS and Mingw32 (latest versions) I enabled wxUniversal and Unicode when I ran configure Anyone else experience this? c/msw/window.cpp: In member function `virtual WXLRESULT wxWindowMSW::MSWWindowProc(WXUINT, WXWPARAM, W...
by jett
Tue Aug 21, 2007 5:02 pm
Forum: wxDev-C++
Topic: wxdev-c++ and wxUniv
Replies: 0
Views: 453

wxdev-c++ and wxUniv

Hello,

how do i use wxUniv from within wxdev-c++? I did some googling but I never found a straightforward answer. Do I have to recompile wxWidgets and then use the generated libraries or is it a simple as definging __WXUNIVERSAL__ in the compiler options.
by jett
Mon Aug 20, 2007 4:24 am
Forum: wxDev-C++
Topic: Mouse Events on Window Decorator (Caption Bar)
Replies: 0
Views: 458

Mouse Events on Window Decorator (Caption Bar)

I'm using wxWidgets 2.8.4 on Windows. Is there a way to execute custom code when the user clicks on a specific area of the window caption bar? I have a custom class called wxWindowsSkinner which skins the window's caption bar. Events are passed on to this class using the following code (based this o...
by jett
Mon Aug 20, 2007 2:21 am
Forum: wxDev-C++
Topic: OnPaint: Determine size of window decorators
Replies: 2
Views: 1016

thanks doublemax. this is what i was looking for.
by jett
Sun Aug 19, 2007 7:12 pm
Forum: wxDev-C++
Topic: OnPaint: Determine size of window decorators
Replies: 2
Views: 1016

OnPaint: Determine size of window decorators

Is there a way to determine the size of the Window decorators (e.g. the caption bar). I am trying to skin the caption bar with an image but in order to do that, I need to know the size of the caption bar in order to tile the images appropriately.

Thanks in advance.
by jett
Sat Aug 18, 2007 5:31 pm
Forum: The Code Dump
Topic: Paint background image in any wxWindow, an elegant way
Replies: 31
Views: 21698

I'm trying out Paulsen's code above but upon running it, I am getting a Segmentation fault error on the following line? wxEraseEvent &EraseEvent = dynamic_cast<wxEraseEvent &>(Event); I called the function after the GUI controls were created on the frame constructor wxBackgroundBitmap *ToolBarBackgr...
by jett
Thu Jul 12, 2007 1:19 pm
Forum: C++ Development
Topic: wxSocket->send not sending data
Replies: 2
Views: 683

I actually checked the example and what I did is pretty straightforward. Just opened the socket passing the address and port and sent a message. /* caspian socket */ #include "CaspianSocket.h" /*******************************************************************************/ const int SOCKET_ID = 789...
by jett
Wed Jul 11, 2007 1:20 pm
Forum: C++ Development
Topic: wxSocket->send not sending data
Replies: 2
Views: 683

wxSocket->send not sending data

I created a program which uses the wxSocket object. I am succesfully able to connect to a simple echo server program written in python but when i call the send() method of wxSocket, nothing gets sent to the server. I know that the server works because if I telnet into it, it echoes the character i t...
by jett
Mon Jul 09, 2007 5:56 pm
Forum: C++ Development
Topic: wxSocket: "no matching function" error in EVENT_TA
Replies: 2
Views: 579

Re: wxSocket: "no matching function" error in EVEN

Yes. Thank you. I also found it shortly after I posted. I've been away from C/C++ for too long ... :)
tan wrote:Hi,
jett wrote:

Code: Select all

#include <wx/wx.h>
#include <wx/socket.h>

...

class CaspianSocket : public wxEvtHandler
{
...
}    // <---- did you forget ; after } ?

...

by jett
Mon Jul 09, 2007 10:33 am
Forum: C++ Development
Topic: wxSocket: "no matching function" error in EVENT_TA
Replies: 2
Views: 579

wxSocket: "no matching function" error in EVENT_TA

I am getting the following error when I compile the following code: CaspianSocket.cpp:35: error: no matching function for call to `wxEventTableEntry::wxEventTableEntry(const wxEventType&, const CaspianSocket&, <anonymous enum>, void (wxObject::*)(wxEvent&), NULL)' C:/Dev-Cpp/include/common/wx/event....