Search found 79 matches

by Rocketmagnet
Sun Feb 10, 2008 10:10 am
Forum: Announcements and Discoveries
Topic: New Printed Circuit Board design application using wxWidgets
Replies: 3
Views: 1525

Thanks Jorg, I'll do that.
by Rocketmagnet
Sat Feb 09, 2008 10:41 pm
Forum: Announcements and Discoveries
Topic: New Printed Circuit Board design application using wxWidgets
Replies: 3
Views: 1525

New Printed Circuit Board design application using wxWidgets

Hi all, I've just released an application for designing Printed Circuit Boards. It's quite unusual in that it lets you create flexible tracks which can move and bend freely, while always maintaining your design rules. Also, unlike most CAD packages, there are no banks of icons, and no File, Edit .. ...
by Rocketmagnet
Sat Jan 26, 2008 3:08 pm
Forum: Announcements and Discoveries
Topic: ANN : Enhanced wxTreeListCtrl
Replies: 44
Views: 19161

Hi all, I'm having a lot of trouble trying to compile this in VC++. I get the following errors: commctrl.h(29) : error C2146: syntax error : missing ';' before identifier 'HRESULT' commctrl.h(29) : error C4430: missing type specifier - int assumed. Note: C++ does not support default-int prsht.h(97) ...
by Rocketmagnet
Wed Jan 23, 2008 8:15 pm
Forum: C++ Development
Topic: Combined Tree and List control possible ?
Replies: 1
Views: 584

Combined Tree and List control possible ?

Hi all, I would like to create a control which is a lot like a wxTreeCtrl, but also contains some elements of the wxListCtrl. Please see the mock-up image for an example of what I mean. On the left would be a normal wxTreectrl, but each element of the tree has other attributes which can be seen in t...
by Rocketmagnet
Thu Jan 17, 2008 10:12 am
Forum: C++ Development
Topic: How can I handle changing directory simply ?
Replies: 5
Views: 1215

Thanks,

I guess that answers my question. It seems strange that there's no single change directory function. Maybe I'll request it.

thanks again

Hugo
by Rocketmagnet
Wed Jan 16, 2008 12:36 am
Forum: C++ Development
Topic: How can I handle changing directory simply ?
Replies: 5
Views: 1215

I guess when I said " I would like to be able to change the path." you thought I meant "change the current working directory". What I meant was, I want to change the path name stored in a wxFileName instance.

hugo
by Rocketmagnet
Wed Jan 16, 2008 12:34 am
Forum: C++ Development
Topic: How can I handle changing directory simply ?
Replies: 5
Views: 1215

Thanks for your reply. However, I think you may have misunderstood me. I do wish to work with absolute paths as much as possible. However, I am working on a new file dialog. When a user double clicks on a directory name, then the current absolute path must be updated using just that name. so: if the...
by Rocketmagnet
Tue Jan 15, 2008 11:28 pm
Forum: C++ Development
Topic: How can I handle changing directory simply ?
Replies: 5
Views: 1215

How can I handle changing directory simply ?

Hi there, I have a wxFileName, which contains a path, but no filename. I would like to be able to change the path. Ideally, I would like a member function which works like "cd" in linux or DOS. For example if the wxFileName contained the path "D:\data". I might like to change to the directory "xml" ...
by Rocketmagnet
Fri Jan 04, 2008 5:09 pm
Forum: C++ Development
Topic: Spoofing keypresses
Replies: 6
Views: 1797

Thanks Auria, I checked the sources and EmulateKeyPress only uses the m_RawKeyCode variable. That works fine set the raw value. I tried changing the m_RawKeyCode value of the event inside the EVT_KEYDOWN event, but that still doesn't. So I still can't quite do what I originally wanted, but I can use...
by Rocketmagnet
Thu Jan 03, 2008 3:34 pm
Forum: C++ Development
Topic: Spoofing keypresses
Replies: 6
Views: 1797

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: 1797

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: 1797

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: 640

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: 640

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...