Search found 72 matches

by computerquip
Mon Feb 23, 2009 10:34 pm
Forum: C++ Development
Topic: Titlebar icon from exe?
Replies: 4
Views: 730

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...
by computerquip
Mon Feb 23, 2009 9:17 pm
Forum: C++ Development
Topic: Illegal byte sequence for a wxStaticText
Replies: 2
Views: 1036

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...
by computerquip
Mon Feb 23, 2009 5:29 pm
Forum: Component Writing
Topic: Want A real-time chart just display CPU Usage.
Replies: 2
Views: 1710

Linux is opensource and I think there are a couple of functions that you can call to display this. Plus plenty of Qt backgrounds and widgets call CPU Usage so I'm sure you could do that or you could even create a wxObject for us. :)

*If not I will*
by computerquip
Mon Feb 23, 2009 5:24 pm
Forum: Component Writing
Topic: wxGridSizer-Reg
Replies: 1
Views: 976

You know, I spent a couple days trying to figure out how the wxGridSizer and wxFlexGridSizer worked. I gave up and went with the more simple wxBoxSizer.

*subscribes*
by computerquip
Mon Feb 23, 2009 5:23 pm
Forum: C++ Development
Topic: USB WriteFile timeout?
Replies: 3
Views: 1333

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...
by computerquip
Mon Feb 23, 2009 1:07 pm
Forum: C++ Development
Topic: How to get higher priority for an application
Replies: 3
Views: 811

-jsmith
If you are using Linuxthreads (pthreads, ie, not NPTL) then you could exploit the non-POSIX compliance of the library by calling sched_setscheduler() or setpriority()
(man 2 sched_setscheduler or man 2 setpriority).
by computerquip
Mon Feb 23, 2009 1:02 pm
Forum: C++ Development
Topic: WxMemo transparency
Replies: 3
Views: 454

;/ It may not have the much of an effect then...Try using different colors for it and maybe you'll get different results? I'm not really sure to be honest.
by computerquip
Mon Feb 23, 2009 1:00 pm
Forum: C++ Development
Topic: How to terminate the Application ?
Replies: 4
Views: 1103

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...
by computerquip
Mon Feb 23, 2009 5:50 am
Forum: Compiler / Linking / IDE Related
Topic: Compilation problem
Replies: 5
Views: 944

I don't see a sql.h header in my /include/wx directory or inside the /include/wx/generic directory. I don't think there is a default header that is called sql.h.

If you would give us more information on your project and most preferably your include files, I wouldn't mind helping you out further.
by computerquip
Mon Feb 23, 2009 5:44 am
Forum: C++ Development
Topic: WxMemo transparency
Replies: 3
Views: 454

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...
by computerquip
Sat Feb 21, 2009 5:09 am
Forum: C++ Development
Topic: Matrix Grid
Replies: 2
Views: 519

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...
by computerquip
Fri Feb 20, 2009 8:42 pm
Forum: C++ Development
Topic: Matrix Grid
Replies: 2
Views: 519

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