Search found 19 matches

by PixelMachine
Thu Mar 04, 2010 7:34 pm
Forum: C++ Development
Topic: Wacom Tablet on OS X
Replies: 7
Views: 5345

Looks like it was my mistake, was copying the dynlibs to the wrong place.
It's now working, so I have tablet support for both Windows and OS X (Carbon).
I hope I'll be able to implement something similar on Linux, with XInput or something.
by PixelMachine
Thu Mar 04, 2010 11:15 am
Forum: C++ Development
Topic: Opening a local htm file with wxLaunchDefaultBrowser
Replies: 6
Views: 5816

wxLaunchDefaultBrowser(helpurl); did the trick. Without "file://" at the beginning. All I had to do is include the fullpath, which was the actual working folder.
by PixelMachine
Mon Mar 01, 2010 11:17 pm
Forum: C++ Development
Topic: Wacom Tablet on OS X
Replies: 7
Views: 5345

I've just tried the OS X stuff, doesn't work.
For some reason, the pressure is always set to 0.0, even if I modify it right after getting the pressure from the tablet.
I've also modified the Assign wxMouseEvent function, to have a working = operator and constructor, but doesn't work.
by PixelMachine
Mon Mar 01, 2010 11:05 pm
Forum: C++ Development
Topic: Wacom Tablet on OS X
Replies: 7
Views: 5345

I'm using a glcanvas derived window. I've added this to the class declaration: #ifdef __WXMSW__ HCTX tabletcontext; unsigned int oldpressure, maxpressure, minpressure; WXLRESULT MSWWindowProc ( WXUINT message, WXWPARAM wParam, WXLPARAM lParam ); #endif Then initialize the tablet somewhere in the ini...
by PixelMachine
Mon Mar 01, 2010 3:35 pm
Forum: C++ Development
Topic: Wacom Tablet on OS X
Replies: 7
Views: 5345

I've managed to implement tablet support for wxmsw. In OS X, however, I needed to modify the source: I've modified the wxMouseEvent class and added a float member, m_tabletPressure; In toplevel.cpp, I'm modifying the wxMacTopLevelMouseEventHandler function, adding the pressure data to the mouse even...
by PixelMachine
Fri Aug 29, 2008 7:27 pm
Forum: C++ Development
Topic: Opening a local htm file with wxLaunchDefaultBrowser
Replies: 6
Views: 5816

It's not working...
by PixelMachine
Tue Aug 26, 2008 6:41 pm
Forum: C++ Development
Topic: Opening a local htm file with wxLaunchDefaultBrowser
Replies: 6
Views: 5816

Opening a local htm file with wxLaunchDefaultBrowser

I've tried doing that, but with no luck. If execute something like: helpurl=wxT("\\Docs\\index.htm"); wxLaunchDefaultBrowser(helpurl); OR helpurl=wxT("/Docs/index.htm"); wxLaunchDefaultBrowser(helpurl); The browser tries to open this page: http://www.docs.com/index.htm, which obv...
by PixelMachine
Mon Nov 12, 2007 3:39 pm
Forum: C++ Development
Topic: wxGLCanvas and accumulation buffer
Replies: 2
Views: 3840

The problem was that the accumulation buffer is poorly implemented (usually not hardware accelerated) or not implemented at all.
Thanks.
by PixelMachine
Mon Jul 30, 2007 9:52 am
Forum: C++ Development
Topic: wxGLCanvas and accumulation buffer
Replies: 2
Views: 3840

wxGLCanvas and accumulation buffer

Hello,
Does anyone have an idea about how could I create a wxGLCanvas with an accumulation buffer attached to?
Thanks.
by PixelMachine
Thu Apr 05, 2007 10:02 pm
Forum: Platform Related Issues
Topic: Gtk-CRITICAL **: gtk_widget_set_colormap: assertion `!GTK_WI
Replies: 1
Views: 3770

It looks like the wxGLCanvas gtk code has some issues or something. I've commented some of the colormap calls in the Create function in glcanvas.cpp: #if defined(__WXGTK20__) && GTK_CHECK_VERSION(2,2,0) if (!gtk_check_version(2,2,0)) { wxWindow::Create( parent, id, pos, size, style, name ); ...
by PixelMachine
Tue Apr 03, 2007 9:39 pm
Forum: Platform Related Issues
Topic: Gtk-CRITICAL **: gtk_widget_set_colormap: assertion `!GTK_WI
Replies: 1
Views: 3770

Gtk-CRITICAL **: gtk_widget_set_colormap: assertion `!GTK_WI

Hello, I'm running wxwidgets 2.6 and 2.8 on Linux OpenSuse 10.2. I get this error while running my application: "Gtk-CRITICAL **: gtk_widget_set_colormap: assertion `!GTK_WIDGET_REALIZED (widget)' failed Segmentation fault" My application uses OpenGL and some bitmap buttons (png files). I ...
by PixelMachine
Fri Mar 30, 2007 9:32 am
Forum: Platform Related Issues
Topic: OpenSuse 10.2 strange compiling error and plugin support
Replies: 2
Views: 3721

1.Sorry, I forgot to mention I'm using wxwidgets 2.6.3 although it shouldn't make a difference. I know wxFrame doesn't have such a method, neither wxWindow. That's really strange. I had to call that because initially I had some custom drawn stuff. After I gave up with that, The OnPaint was still pro...
by PixelMachine
Thu Mar 29, 2007 9:17 am
Forum: Platform Related Issues
Topic: OpenSuse 10.2 strange compiling error and plugin support
Replies: 2
Views: 3721

OpenSuse 10.2 strange compiling error and plugin support

Hello, I've started porting my app to Linux. I'm using OpenSuse 10.2 with gcc 4.13. wxWidgets compiled perfect (mono static). I also use CodeBlocks (very cool app). 1. The problem is with my wxFrame derived class. On windows I use something like this and it works perfect: void MyFrame::OnPaint(wxPai...
by PixelMachine
Wed Jan 24, 2007 10:40 pm
Forum: The Code Dump
Topic: wxFlatMenu & wxFlatMenuBar
Replies: 117
Views: 971361

maybe that's why it doesn't work for me, I am using wxWidgets 2.6.3 as a mono shared build.
by PixelMachine
Sun Jan 14, 2007 12:18 am
Forum: The Code Dump
Topic: wxFlatMenu & wxFlatMenuBar
Replies: 117
Views: 971361

Hello, can you share a mingw gcc makefile or something, I didn't manage to get working with my app. I am using a monolithic shared wxwidgets 2.6.3 build. I am using codeblocks with mingw, I've imported the solution file, compiled it with a static non monolithic wxwidgets build, the libs compile ok, ...