Search found 84 matches

by Rocketmagnet
Thu Jan 03, 2008 3:34 pm
Forum: C++ Development
Topic: Spoofing keypresses
Replies: 6
Views: 2253

Maybe you could try adding your own event handler, that would provess all events before they reach the control Thanks Auria. I'm actually doing that. It catches all the key down events and tries to change some of them. I'll check the sources though and see if I can work out what else needs to be ch...
by Rocketmagnet
Mon Dec 31, 2007 5:07 pm
Forum: C++ Development
Topic: Spoofing keypresses
Replies: 6
Views: 2253

thanks C_Bastian, I have also tried this technique, but I couldn't get that to work either :( I 'm at work at the moment, so I can't post the exact code I tried, but it was something like: wxKeyEvent keyEvent(EVT_CHAR); keyEvent.m_keyCode = WX_BACK; EmulateKeyPress(keyCode); It didn't work. I even t...
by Rocketmagnet
Sun Dec 30, 2007 4:29 pm
Forum: C++ Development
Topic: Spoofing keypresses
Replies: 6
Views: 2253

Spoofing keypresses

Hi all, I have a class, myTextCtrl, inheriting from wxTextCtrl. Sometimes, when the user presses Delete, I would like to change it into a Backspace instead. I am using EVT_KEY_DOWN, and I can easily prevent any Delete key events being passed onto myTextCtrl by not calling event.Skip(). That works pe...
by Rocketmagnet
Mon Dec 10, 2007 2:29 pm
Forum: C++ Development
Topic: How can I use wxFileCtrl ?
Replies: 2
Views: 849

Thanks. I take it I'll get wxFileCtrl when I switch to wxWidgets 3.0.

thanks

Hugo
by Rocketmagnet
Sun Dec 09, 2007 8:33 pm
Forum: C++ Development
Topic: How can I use wxFileCtrl ?
Replies: 2
Views: 849

How can I use wxFileCtrl ?

How can I use wxFileCtrl? On it's documentation page, http://www.lpthe.jussieu.fr/~zeitlin/wxWidgets/docs/wxwin_wxfilectrl.html it says that it needs <wx/filectrl.h> and wxUSE_FILECTRL should be set to 1. However, I cannot find filectrl.h, and none of the files contains wxUSE_FILECTRL. I would reall...
by Rocketmagnet
Sat Dec 08, 2007 11:09 pm
Forum: Component Writing
Topic: Customising wxFileDialog
Replies: 1
Views: 939

update...

I've just discovered wxGenericFileDialog, which might be just what I need. However, I don't seem to be able to find any documentation on it, and can't get it to work.

Any ideas?

hugo
by Rocketmagnet
Sat Dec 08, 2007 9:13 pm
Forum: Component Writing
Topic: Customising wxFileDialog
Replies: 1
Views: 939

Customising wxFileDialog

Hi all, I would like to use a file dialog in my applications. I am basically happy with the standard wxFileDialog, but I would like to add some more controls to it. One way I could do it is to totally re-create the file dialog by adding controls to a standard wxDialog, and add my own controls too. B...
by Rocketmagnet
Sat Jul 28, 2007 7:10 pm
Forum: C++ Development
Topic: OpenGL Textures + wxWidgets
Replies: 20
Views: 3946

Couldn't you just enable textures, disable color material, and glColor4f(1,1,1,1) ? AFAIK that should work
That's what I thought. And that's what I was doing, but now it seems to demand that too. I dunno, maybe I did something else which now requires those commands too?

hugo
by Rocketmagnet
Sat Jul 28, 2007 3:45 pm
Forum: C++ Development
Topic: OpenGL Textures + wxWidgets
Replies: 20
Views: 3946

Crikey! I spent hours last night tearing my code apart to work out what was the difference between your code and mine. Eventually, I think the problem came down to two different things: 1: Having two wxGlCanvases open, and trying to setup textures for the first one just after the second one had been...
by Rocketmagnet
Fri Jul 27, 2007 11:27 pm
Forum: C++ Development
Topic: OpenGL Textures + wxWidgets
Replies: 20
Views: 3946

Huh!

Would you adam n' believe it? It worked. Thanks mate, now I've got something to start exploring. I'll post the reason here when I've found it.

Hugo
by Rocketmagnet
Fri Jul 27, 2007 6:04 pm
Forum: C++ Development
Topic: OpenGL Textures + wxWidgets
Replies: 20
Views: 3946

XP Pro SP1, wx 2.8.4, VS NET 2003, NVidia Graphics
Awesome, me too!
by Rocketmagnet
Fri Jul 27, 2007 5:38 pm
Forum: C++ Development
Topic: OpenGL Textures + wxWidgets
Replies: 20
Views: 3946

thanks mate. I'll try this when I get home.

I assume you've tested this code, and see the texture appear on the screen? Also, what system are you using?
by Rocketmagnet
Fri Jul 27, 2007 12:41 pm
Forum: C++ Development
Topic: OpenGL Textures + wxWidgets
Replies: 20
Views: 3946

Can anyone modify the Cube example to add textures? I have tried, but the textures just don't show. I would be very interested to see if anyone else can do it.

BTW, I'm running Windows XP, with wx 2.8.4

Many thanks

hugo
by Rocketmagnet
Fri Jul 27, 2007 1:11 am
Forum: C++ Development
Topic: OpenGL Textures + wxWidgets
Replies: 20
Views: 3946

Thanks RB, but that doesn't address the question of why wxGlCanvas doesn't seem to be displaying textures at all.
by Rocketmagnet
Thu Jul 26, 2007 11:51 pm
Forum: C++ Development
Topic: OpenGL Textures + wxWidgets
Replies: 20
Views: 3946

Auria,

I tried the example you suggested, but I couldn't get it to compile. I'll be honest, compilers scare the willies outta me.
I got about one million bizzare errors from gl.h, so I'm guessing the compiler settings are wrong. I used exactly the same settings as the wx cube example.

hugo