Search found 135 matches

by ouch67
Thu Jul 14, 2011 3:02 pm
Forum: C++ Development
Topic: wxTimer and the new dynamic event system...
Replies: 15
Views: 4024

Re: wxTimer and the new dynamic event system...

I actually just had a typo in my function declaration... but it works great, thanks again.

But why doesn't WX_2_9_0_BRANCH have these dynamic events? it's a function introduced in 2.9 right?
by ouch67
Wed Jul 13, 2011 11:00 pm
Forum: C++ Development
Topic: wxTimer and the new dynamic event system...
Replies: 15
Views: 4024

Re: wxTimer and the new dynamic event system...

when I compile and use the svn trunk version i get a no matching function call for Bind.

and it says I do have wxHAS_EVENT_BIND defined...
by ouch67
Wed Jul 13, 2011 10:29 pm
Forum: C++ Development
Topic: wxTimer and the new dynamic event system...
Replies: 15
Views: 4024

Re: wxTimer and the new dynamic event system...

and yes I have that branch of 2.9. yeah that code is not there: /** * Name: wx/features.h * Purpose: test macros for the features which might be available in some * wxWidgets ports but not others * Author: Vadim Zeitlin * Modified by: Ryan Norton (Converted to C) * Created: 18.03.02 * RCS-ID: $Id: f...
by ouch67
Wed Jul 13, 2011 9:34 pm
Forum: C++ Development
Topic: wxTimer and the new dynamic event system...
Replies: 15
Views: 4024

Re: wxTimer and the new dynamic event system...

It's not defined, I wonder why?

also I did a search for:

#define wxHAS_EVENT_BIND
and it didn't come up with anything in the 2.9 trunk, where did you find that code snippet?
by ouch67
Wed Jul 13, 2011 9:14 pm
Forum: C++ Development
Topic: wxTimer and the new dynamic event system...
Replies: 15
Views: 4024

Re: wxTimer and the new dynamic event system...

I'm using TDM mingw 4.5.2 (32bit) on windows 7 64bit.
by ouch67
Wed Jul 13, 2011 9:10 pm
Forum: Compiler / Linking / IDE Related
Topic: a question about header files in wx?
Replies: 8
Views: 1219

Re: a question about header files in wx?

The documentation that comes with it is pretty extensive.

Plus You can use CodeBlocks project wizard to get you started. You can look at the code it generates and learn from that.
by ouch67
Wed Jul 13, 2011 9:01 pm
Forum: C++ Development
Topic: wxTimer and the new dynamic event system...
Replies: 15
Views: 4024

Re: wxTimer and the new dynamic event system...

it specifically says the bind command itself is... which is a bit scary... heh...

I'm using the SVN branch of 2.9

The log says:

Code: Select all

|359|error: 'Bind' was not declared in this scope|
I've also tried to declare:

#include <wx/event.h>

I still get the same problem
by ouch67
Wed Jul 13, 2011 9:00 pm
Forum: Compiler / Linking / IDE Related
Topic: a question about header files in wx?
Replies: 8
Views: 1219

Re: a question about header files in wx?

then you would want to set the base of the wx global variable to:

C:\wxWidgets2.8\

you can then include files like:

#include <wx/wx.h>

#include <wx/timer.h>

etc...
by ouch67
Wed Jul 13, 2011 8:43 pm
Forum: Compiler / Linking / IDE Related
Topic: a question about header files in wx?
Replies: 8
Views: 1219

Re: a question about header files in wx?

if were going by what you posted before then the headers should be in:

c:\wx\wx288\include\wx\

be sure you set your wx global variable correctly in code::blocks. it won't find any files you need if you didn't. The base should be set to c:\wx\wx288 if that's where you put wxwidgets.
by ouch67
Wed Jul 13, 2011 8:36 pm
Forum: C++ Development
Topic: wxTimer and the new dynamic event system...
Replies: 15
Views: 4024

Re: wxTimer and the new dynamic event system...

ok, I think I got it now except the bind command isn't working. It's telling me it's out of scope. I'm calling it in OnInit, should I not use it there? Where do you set bindings up at? my code so far is this: wxTimer* m_timer; m_timer = new wxTimer(); m_timer->SetOwner(this); Bind(wxEVT_TIMER, &slas...
by ouch67
Wed Jul 13, 2011 8:08 pm
Forum: Compiler / Linking / IDE Related
Topic: a question about header files in wx?
Replies: 8
Views: 1219

Re: a question about header files in wx?

most of wxWidgets header stuff is in the wx directory of include.

so

#include <wx/timer.h>
by ouch67
Wed Jul 13, 2011 8:03 pm
Forum: C++ Development
Topic: wxTimer and the new dynamic event system...
Replies: 15
Views: 4024

wxTimer and the new dynamic event system...

So I'm trying to get these 2 to work together.

I can't seem to find one example of using a wxtimer with the new bind event commands.

The wxTimerEvent also doesn't seem to have an event type assigned to it which is also throwing me off...

any help would be appreciated.
by ouch67
Wed Jul 13, 2011 4:14 pm
Forum: Compiler / Linking / IDE Related
Topic: WxWidgets 2.8 and Code::Blocks 10.5 not working?? Please hel
Replies: 34
Views: 10211

Re: WxWidgets 2.8 and Code::Blocks 10.5 not working?? Please

indeed, right click on your project, select build options, (or go to the project menu and select build options) and check your search directories. Also be sure you set the WX global variable to the right spot. and yes, check your wxWidgets lib folder and make sure it's even looking for the right nam...
by ouch67
Tue Jul 12, 2011 9:59 pm
Forum: Compiler / Linking / IDE Related
Topic: WxWidgets 2.8 and Code::Blocks 10.5 not working?? Please hel
Replies: 34
Views: 10211

Re: WxWidgets 2.8 and Code::Blocks 10.5 not working?? Please

your navigating to the directory incorrectly.

try cd\wx\wx288\build\msw

make sure that's actually where you put wxWidgets though.
by ouch67
Tue Jul 12, 2011 9:12 pm
Forum: Compiler / Linking / IDE Related
Topic: WxWidgets 2.8 and Code::Blocks 10.5 not working?? Please hel
Replies: 34
Views: 10211

Re: WxWidgets 2.8 and Code::Blocks 10.5 not working?? Please

well what errors are you getting? post the issuing and results of the command here.