Search found 72 matches
- Mon Feb 23, 2009 10:34 pm
- Forum: C++ Development
- Topic: Titlebar icon from exe?
- Replies: 4
- Views: 781
Icons are usually dealt with within a .rc file (Resource File) but can be implemented in a class file as well. I'll give examples of both. aaaa ICON "wx/msw/std.ico" //This is generated by Code::Blocks #include "wx/msw/wx.rc" This is an example implemented inside of a resource file. This is a LOT mo...
- Mon Feb 23, 2009 9:17 pm
- Forum: C++ Development
- Topic: Illegal byte sequence for a wxStaticText
- Replies: 2
- Views: 1081
converting to execution character set: Illegal byte sequence StaticText = new wxStaticText(Panel, ID_STATICTEXT, _("El nombre de usuario o contraseña es incorrecto. Precione "Aceptar" para intentarlo nuevamente."), wxPoint(16,16), wxSize(272,48), wxST_NO_AUTORESIZE, _T("ID_STATICTEXT")); Without you...
- Mon Feb 23, 2009 5:29 pm
- Forum: Component Writing
- Topic: Want A real-time chart just display CPU Usage.
- Replies: 2
- Views: 1751
- Mon Feb 23, 2009 5:24 pm
- Forum: Component Writing
- Topic: wxGridSizer-Reg
- Replies: 1
- Views: 1004
- Mon Feb 23, 2009 5:23 pm
- Forum: C++ Development
- Topic: USB WriteFile timeout?
- Replies: 3
- Views: 1409
Call WriteFile through an if statement because it returns a boolean that determines whether or not the function was successful. Example: if (!WriteFile(WriteHandleToMyDevice,queryCommand.RawData, 65, &bytesWritten, 0)) { return 0; } A timer is slow and takes up resources compared to a chained reacti...
- Mon Feb 23, 2009 1:07 pm
- Forum: C++ Development
- Topic: How to get higher priority for an application
- Replies: 3
- Views: 876
- Mon Feb 23, 2009 1:02 pm
- Forum: C++ Development
- Topic: WxMemo transparency
- Replies: 3
- Views: 477
- Mon Feb 23, 2009 1:00 pm
- Forum: C++ Development
- Topic: How to terminate the Application ?
- Replies: 4
- Views: 1208
You should be able to call Destroy() on your current frame and that should close it by force. In my new app I've been working on out of boredom, it's very simply done: void OnClose(wxCloseEvent& event) { Destroy(); } void OnExit(wxCommandEvent& event) { Destroy(); } Don't forget to declare it inside...
- Mon Feb 23, 2009 5:50 am
- Forum: Compiler / Linking / IDE Related
- Topic: Compilation problem
- Replies: 5
- Views: 1013
- Mon Feb 23, 2009 5:44 am
- Forum: C++ Development
- Topic: WxMemo transparency
- Replies: 3
- Views: 477
Too be quite honest, I can't seem to find much documentation on wxMemo. I can't seem to find out what it does or what it is except through a change log on Sourceforge and for wxDev-C++. I'm assuming the wxMemo is the name of a control when using the wxSmith / wxFormBuilder. In the column "IDName", y...
- Sat Feb 21, 2009 5:09 am
- Forum: C++ Development
- Topic: Matrix Grid
- Replies: 2
- Views: 551
Thanks! I think I found a better way.. grid = new wxGrid(this, -1); grid->CreateGrid( 0,0 ); wxBoxSizer* s_under = new wxBoxSizer(wxVERTICAL); //{ wxBoxSizer* s_layout = new wxBoxSizer(wxHORIZONTAL); //{ s_layout->Add(grid, 1, wxEXPAND, 0); wxBoxSizer* s_buttons = new wxBoxSizer(wxVERTICAL); //{ s_b...
- Fri Feb 20, 2009 8:42 pm
- Forum: C++ Development
- Topic: Matrix Grid
- Replies: 2
- Views: 551
Matrix Grid
Due to lack of experience, I'd thought I'd make a GUI version of my Matrix Grid. Simply decrypts and encrypts a word by a grid via x then y or y then x depending on user input. Similar to a kids assignment to line up the rows and columns to find the password of the paper. I've run into a few problem...