wxWidgets. Cross-platform. Lots of samples downloaded with the library (to create anything you could ever possibly want). OpenGL support. Better than win32, MFC, C#, sliced bread, etc.
wxWidgets. Cross-platform. Lots of samples downloaded with the library (to create anything you could ever possibly want). OpenGL support. Better than win32, MFC, C#, sliced bread, etc.
I'm not immature, I'm refined in the opposite direction.
I also like wxWidgets, though I have yet to make any full blown programs in it, I have tooled around with it and like it a lot more than most other toolkits.
I've just got into wxWidgets mainly because I'm playing with 2008 C# express and the forms designer. I was always intimidated by GUI programming because I never knew about the RAD tools. I understand some people not liking them, but when it comes to deisgning guis I like the approache of placing them in a framework and twiddling with the events manually, makes learning about GUI design much easier and less tedious.
But I think the best gui designer I have used comes with visual studio.
Slightly off-topic, but has anybody tried the form designer in VC++ 2008? The code it generates in '05 is aweful. Hoping they've fixed it a little in the newest release.
M.Eng Computer Engineering CandidateB.Sc Computer Science
Robotics and graphics enthusiast.
Probably C++, since it is "VC++ 2008".
Look up a C++ Reference and learn How To Ask Questions The Smart WayOriginally Posted by Bjarne Stroustrup (2000-10-14)
From what I understand in C# the code the forms designer generates aside from the events is just a shell and just has the header, the arguments and an empty body. Any missed tab alignments may be due to the settings in your preferences, mine align quite well. The other stuff in the other partial class isn't to be touched as the designer will just replace it when it updates.
I've found that it looks good as long as you don't mis-step and delete a function outside of the events menu, because it will leave the info in the autogenerated function and get confused when it tries to look for it.
Typical VC++ 05 generated code:
And after a few days of moving and deleting various form elements:Code:private: System::Windows::Forms::MenuStrip^ menuStrip1; protected: private: System::Windows::Forms::ToolStripMenuItem^ fileToolStripMenuItem; private: System::Windows::Forms::ToolStripMenuItem^ newToolStripMenuItem; private: System::Windows::Forms::ToolStripMenuItem^ openToolStripMenuItem; private: System::Windows::Forms::ToolStripMenuItem^ saveToolStripMenuItem; private: System::Windows::Forms::ToolStripMenuItem^ exitToolStripMenuItem; private: System::Windows::Forms::ToolStripMenuItem^ editToolStripMenuItem; private: System::Windows::Forms::ToolStripMenuItem^ viewToolStripMenuItem; private: System::Windows::Forms::ToolStripMenuItem^ toolsToolStripMenuItem;
There were some other issues too, but that was one of the most irritating things. The generated C# code seemed much better to me, although probably because WinForms is probably "meant" to be primarily used with C#.Code:private: System::IO::FileSystemWatcher^ fileSystemWatcher1; private: public: public: public: public: public: public: public: private: public: private: private: System::ComponentModel::IContainer^ components;
EDIT: all of that generated code ends up in a massive header file too, which isn't really a problem, except it does it for event function bodies as well.
Last edited by psychopath; 01-07-2008 at 02:09 PM.
M.Eng Computer Engineering CandidateB.Sc Computer Science
Robotics and graphics enthusiast.
No, it really misaligns it even with mostly default settings. It's like the function is placed with some tabs + a space or two, so you get like 3 spaces width when you do a tab for the indentation.
Not to mention is really indents poorly ( protected: on the same row as the rest of the code, for example; typically Visual Studio default to removing all tabs and spaces when you type something + : ).
So the designer is really poor at generating code. I don't think it has changed in 2008...
Ah, Microsoft released a beta of the new MFC including things scheduled for implementation in the C++0x standard! NICE!
http://www.microsoft.com/downloads/d...playlang=en&tm
For those who have Visual Studio 2008, it's a must have.
Right here! Spent a while creating a program (below) entirely in vanilla WinAPI/C and I must say the experiencing was educating, and above all, long (over 6550 LoC for GUI alone!). Does this mean I'd use MFC over it... not a chance. If I want basic API I'll use C, if I want RAD, I'll use wxWidgets (or some other x-plat widget library), if I want a bloated convoluted death, I'll use MFC.