BINGO!!! I had a few minutes at work that I could use to make a test, and it looks like OnIdle is my ticket! Thanks Sof_T for pushing me over the hurdle.
Michael
Search found 13 matches
- Tue Jan 09, 2007 9:40 pm
- Forum: wxDev-C++
- Topic: wxDev-C++ and the game loop
- Replies: 12
- Views: 3333
- Tue Jan 09, 2007 6:14 pm
- Forum: wxDev-C++
- Topic: wxDev-C++ and the game loop
- Replies: 12
- Views: 3333
Have you tried putting your code into the OnIdle event in your main form? This is a function that gets called repeatedly when the form idles. To try it drop a Edit control onto a new frame. Select the frames OnIdle event and create a new function. Add this code into the new function // insert your ...
- Tue Jan 09, 2007 1:17 am
- Forum: wxDev-C++
- Topic: wxDev-C++ and the game loop
- Replies: 12
- Views: 3333
- Tue Jan 09, 2007 12:24 am
- Forum: wxDev-C++
- Topic: wxDev-C++ and the game loop
- Replies: 12
- Views: 3333
Take a look at wxYield or wxSafeYield ( http://www.wxwidgets.org/manuals/2.8.0/wx_appinifunctions.html#wxsafeyield ). They should allow you to temporarily interupt your for loop to look for other events. Also, instead of 2 buttons, you can use a single wxToggleButton for your 'on'/'off' events. -To...
- Mon Jan 08, 2007 10:46 pm
- Forum: wxDev-C++
- Topic: wxDev-C++ and the game loop
- Replies: 12
- Views: 3333
- Mon Jan 08, 2007 6:26 pm
- Forum: wxDev-C++
- Topic: wxDev-C++ and the game loop
- Replies: 12
- Views: 3333
- Mon Jan 08, 2007 1:55 am
- Forum: wxDev-C++
- Topic: wxDev-C++ and the game loop
- Replies: 12
- Views: 3333
Thank you for the prompt answer. I actually came back to this post to check something about the code, as I had an epiphany (is that right?) about it - basicly what you said :) And, yess, I AM trying to convert to wxWidgets. The code I posted was an excercise in getting a TrueVision3D app to work in ...
- Sun Jan 07, 2007 10:54 pm
- Forum: wxDev-C++
- Topic: wxDev-C++ and the game loop
- Replies: 12
- Views: 3333
wxDev-C++ and the game loop
I've been working with (meaning trying to learn) Dev-C++ to try to make a game (or at least something that looks like a game :) ). A day or two ago I decided to move it over to wxDev-C++. The part of it that is giving me problems is the game loop. here's the code that I have in the older project, an...
- Sat Jan 06, 2007 6:15 pm
- Forum: wxDev-C++
- Topic: Alpha release of book - Programming with wxDev-C++
- Replies: 61
- Views: 105624
- Sat Jan 06, 2007 2:17 am
- Forum: wxDev-C++
- Topic: Alpha release of book - Programming with wxDev-C++
- Replies: 61
- Views: 105624
Sof_T, I just came across the book, and HAD to download it. I aslo grabbed the source file. I haven't actually read the book yet, but I tried to compile the some of the samples. (Well, three actually). The two console apps I tried worked perfectly, but I get the following error on the ch 8 frame pro...
- Wed May 31, 2006 7:24 pm
- Forum: wxDev-C++
- Topic: Need some help on a project I'm porting over
- Replies: 5
- Views: 2014
- Wed May 31, 2006 3:53 am
- Forum: wxDev-C++
- Topic: Need some help on a project I'm porting over
- Replies: 5
- Views: 2014
Need some help on a project I'm porting over
I have been working on a project for work (to make MY life easier :) ), and had originally been doing it in VB6. After finding wxDevcpp, I decided to try it in C++ instead. A word of warning...I'm relatively new to C++ and REAL new to wxWidgets. In my VB project, I had a form that the user (me) woul...
- Thu Apr 27, 2006 6:34 pm
- Forum: wxDev-C++
- Topic: Just installed and having problems RESOLVED
- Replies: 0
- Views: 858
Just installed and having problems RESOLVED
I just installed wxDev-C++, and was following the wxWidgets Minimal tutorial at http://www.upcase.de/wxDevCpp_tutorial/wxDecCppMinimal.html . After selecting a new project ->wxWidgets Frame, I tried to compile (the tut says it should compile and run at this point without errors). Following is what I...