Gauge Control for C++ Application - c++

Can anyone suggest good Gauge controls to use in application using C++.
The Gauges will be used in application monitoring Temperature, Pressure or Flow devices.
Please let me know about any commercial or free libraries that works on pure C++, without any dependency on .Net framework
Thanks,

For wxWidgets there are the (free) wxIndustrial controls. Update 11/2015: last updated in 2007, no downloads but source code still available here
Also you'll find more controls at wxCode.

I suggest you to give a look to National Instrument's Measurement Studio.
I am adding the link: NI-Measurement Studio
The title might be a bit confusing since it says: NI Measurement Studio
for Unmanaged Visual C++ .NET but Measurement Studio 2009 (and previous) also has C++ libraries that do not depend upon the .NET framework. They are MFC controls.
In that same page, you can actually clic the link to try it and decide for yourself.

QWT is an extension to the Qt GUI library. You can use this library to create Dials, Compasses, Knobs, Wheels, Sliders, Thermos etc.
Also check QGauge

You may try BeauGauge Instrumentation Suite.
Preview of Gauges
http://www.beaugauge.com/en/gallery.html
Demo Download
http://www.beaugauge.com/en/downloads.html

Here you go. It is completely free but for commercial use you should probably pay license fee.
http://www.mitov.com/html/instrumentlab.html

You may try ChartFX Gauges COM: http://www.softwarefx.com/sfxComProducts/cfxForCom/

Related

Rich User Interface Application in Visual Studio

I am a noob C++ Programmer.
I want to develop GUI applications. I am using Visual Studio 2010.
Normally, Visual Studio Projects begin with the old style interface with a frame with a menu in it. But I want to build an application with more rich Graphical elements. Just like the windows 8 start screen.. or the Visual studio start page. Please teach me how to do those fancy effects.
Edit: I don't like to use flash or JavaFX Java because they need additional programs to be installed before using.
Well, basically you have not much options here. Regarding to your choice (MS Visual Studio) they are:
MFC/C++ - not convinient at all, I can say it's a small pain in the ass. But a lot of program were written exactly with a help of MFC library. It's a canonical way :)
Windows Forms/C++ - actually it's not usial C++, but C++/CLI. Not so much different, but has a few things to note. You can take a look at C++/CLI Cheat Sheet for example. Not usial, but, hey, you can use Windows Forms!
Windows Forms/C# - as for me, this combination is almost perfect. Nothing to add.
WPF/C# - even much more interesting. Any control can be modified in any way, but you have to know a lot of tricks and howtos to make all things work. In that case I highly suggest to use WPF Toolkit. Anyway, you can find a lot of cool stuff for WPF (I even made once a mini-SCADA with a bunch of UI elements related to industrial stuff (valve, pumps, etc.)). Do not forget, you can do animation as well. It is pretty easy.
Qt addon for MSVS/C++ - the last but not the least option. All UI you make in Qt Quick - GUI IDE. Also you have a greatiest slot/signal interaction model (which was improved in Qt5.0).
My choise now is definitely Qt. It's crossplatform, btw.
For C++ you can create a WinForms (Windows Forms) project.
But nowadays WPF is preferred over WinForms, and WPF is usually used from C# or VB.NET. I'm not sure if it's possible to use from C++, but if so it would have poor support. C# is pretty easy to learn if you already know C++.
If you want to create Windows Store apps in Windows 8, you can also use C++/CX, but that requires VS 2012.
So you really want to make flashy things like these, eh? Well, you can make a Windows Store app, but like previously mentioned it requires Visual Studio 2012.
Take a look at this question too: How to develop unique GUI's in Visual Studio?
You have several options of GUI from which you can choose wxWidgets, Qt, Ultimate++.
or u can use Embarcadero C++ Developer ----> actually Firemonkey is so amazing check it out
C++ Builder

to program GUI app , what will be the must user and developer frendly toolkit in c++

i like to build desktop application , that will be must user friendly in view
what i mean is that the look and feel will be natural in the way the user used to see windows
apps .
and this toolkit/framework to be as much as possible easy fast to develop from the developer side in c++ .
Could we ask some more questions, what do you mean by user friendly(system integration easy keybingings/Accessibility)?
Which platforms(windows only? You seem to indicate this, if so xp-7?
Would fairly easy crossplatform support be a plus))?
Do you want a form builder? an ide? special libraries?
open source or closed source?
do you mind paying?
qt is probably the most recommended
option although there is also
FLTK
Juce
wxwidgets
gtk+(c based or use with gtk-- a c++ wrapper)
I'd go with Qt.
It's a mature cross platform library that is easy to setup and to use. There's also a ton of resources available. The QT designer can also help you to quickly create your forms. There's even a visual studio plugin for it!
As others have pointed out Qt is a great choice. I went through the same search when I started coding C++ coming from Delphi, and this is where Qt shined. It was the only option I found that offered a complete solution: GUI, DB access, cross-platform system calls (file-access, start-processes), XML, native platform configuration (text files in *nix, win-registry, etc), multi-threading.
It was a one-stop shop for everything I needed.

How do I create a non managed Windows GUI in Visual C++?

When I create a 'Windows Forms Application', the resultant program is a managed one. Creating a 'Win32 Application' results in a native one, but when I try to add a form I'm informed that the project will be converted to CLI if I continue. How do I design a native Windows GUI with Visual C++ 2008 Express Edition? I'm probably being very silly here, but I just can't figure it out.
Either use MFC, WTL, or straight Win32 API. You can't use forms (or any of .NET) without switching into managed code.
MFC is Microsoft Foundation Classes - the most common C++ windows library
WTL is Windows Template library - a better C++ windows library IMO
Win32 is CreateWindow, DialogBox, etc, everything else is a wrapper around the Win32 api.
You just need to avoid the managed libraries. Most likely, this will mean using MFC for the GUI, instead of Windows Forms. For details, see MSDN's MFC pages.
Unfortunately, VC++ Express Edition doesn't support MFC directly, so you'll have be more limited. It is possible to compile MFC projects using the Express Edition, but you lose all of the Wizards, etc. If you are serious about doing non-managed GUI development, you should consider upgrading to a higher level SKU.
Another option would be to use Qt for for GUI. It is now LGPL, so usable, for free, in even commercial C++ projects, and includes a full designer.
This is an answer to the linked question. Unfortunately, that has been closed by Robert Harvey because he thinks it is a duplicate. It is not, sorry Bob.
The best library for creating xll's is http://xll.codeplex.com. You can use that to create rudimentary user interfaces using Excel macros. One example of that can be found in the ALERT.FILTER macro in xll/error.cpp
As Reed Copsey, MFC would be the "default" way of creating a native unmanaged GUI on the Windows platform. However, MFC is not included with Visual Studio Express. Consequently, you would either need to upgrade to the full version or you could look into using a freely available C++ GUI library such as wxWidgets.
There is also wxFormsBuilder if you want a GUI editor.
You could also go down to the "bare metal" and code right to the Win32 API, maybe take some help from the common controls library. But you'll be entering a world of pain ;)
You would need to use a native application framework. For Windows this means MFC or the bare Win32 libraries. WinForms use .NET libraries in the background and therefore need to be managed.
Native applications don't use "forms". For a native application, you could create, for example, an MFC application. If you want it to be something like a form-based application, you can tell the wizard you want a dialog-based application, or (on the last page of the Wizard) have your view derive from CFormView instead of CView.
Alternatively, you might want to use WTL -- though that means writing essentially all your code by hand instead of using wizards and such.
Windows Forms is the name given to the graphical application programming interface (API) included as a part of Microsoft's .NET Framework, providing access to the native Microsoft Windows interface elements by wrapping the existing Windows API in managed code.
Wikipedia
Most of the above answers explain things pretty well - if you want to look into creating a pure Win32 Native App form (no MFC/WTL etc) take a look at the tutorials here: http://www.zetcode.com/tutorials/winapi/ for starters. That's the third time I've linked to this site on here, but his tutorials are very good.
Note - at this stage there's nothing "visual" about it except the result - it is all done in code, although that said I don't think it is too difficult really. It will definitely be good programming experience.
Windows Forms are a GUI framework written in managed code, so you cannot use Forms in a native application.
With a native application, you have to create windows. Programming Windows by Charles Petzold is the definitive how-to book for this. It's a lot of work compared to using a good framework. MFC (Microsoft Foundation Classes) is a framework for native Windows GUIs. I don't know if it comes with VC++ Express.
I noticed that no one mentioned JUCE which can be used to build cross platform user interfaces in C++. I thought it was pretty cool. Looks like it's been expanded to support mobile devices too since I used it.
Personal and Educational licenses are free. 'Pro' and 'Indie' licenses are relatively cheap.

Whats the best Ribbon UI control to retro fit to a legacy MFC application build with VC2005?

What experience have you had with introducing a Ribbon style control to legacy MFC applications?
I know it exists in the new VC2008 Feature Pack, but changing compilers from VC2005 is a big deal for our source base and integration to our environment, Intel FORTRAN, ClearCase, many 3rd libraries.
There are quiet a few different commerical implementations, most focusing on C#/VB .NET, and only a few for native C++ MFC.
I have read all the usual reviews found by Google most are quiet old now, so I am interested to here from people who have actually done it, been through the pain barrier, released a legacy application with VC2005 and a Ribbon UI.
We currently use a very old version of Stingray Objective Toolkit to provide our MFC extensions like customizable toolbars and docking windows etc.
Any one used Prof-UIS, compared to the other commercial ones its relatively cheap, unlimited developer licensing is a 10th the cost of the others.
Are there any free, open source or L-GPL'd ones available?
In my projects I'm using the MFC Feature Pack in Visual Studio 2008, which is based on code from BCGSoft. Their BCGControlBar Library Professional Edition includes a ribbon control and is compatible with Visual Studio 2005.
I'm not aware of any open source ribbon control libraries for C++, though.
We use Codejock. It's not cheap, but I guess I've come to find that good controls usually are :-). They are fairly responsive in the tech support department (although we haven't had need to use that recently). We are buidling a whole suite of tools using these controls and have always had what we've needed, including the ability build the office 2007 style ribbon.
Please be aware that you need a license from Microsoft to use the ribbon control in your application. They give it for free as long as you don't write a software to compete with Word or other Office software.
Take a look at this link: Office UI Licensing.
People are generally not happy with Microsoft for this: The evil of the Office UI ribbon license.
We implemented a ribbon in our app due to pressure to have the latest/flashiest looking UI. It looks good, but the usability isn't good compared to using a plain toolbar!
To adhere to Microsoft's License to use the ribbon, you have to stick to their guidlines on how it should be used. Eg.. only the user can change ribbon tabs, you can't do it programatically except when switching to a context tab. All these limitations mean that the ribbon only applies to applications that are definitely document-centric. If you're app isn't document-centric, don't think you can just drop a ribbon in to replace a menu/toolbar driven system without giving it a lot of thought about how everything is going to fit together.

C++ UI resources

Now that I know C++ I want to get into desktop application that have a UI instead of Command Prompt stuff, where should I start?, and what are some good online resources?
wxWidgets is a cross platform GUI library for C++ (and other languages). The main site should have enough pointers to resources to get going.
You might also want to check out this question/answer here on stack overflow if you are specifically thinking of Windows
If cross platform support is important then I would second the suggestion to look at Qt. It supports Windows, Linux and the Mac. For free software it is free (there is a GPL version on Unix but not for Windows) but for comercial software it is not particulary cheap. There are now several books on Programming with Qt.
It does come with a large number of extra libraries for networking, parsing XML etc. It also has integration with Visual Studio on Windows.
One downside with Qt is that there are not as many add on libraries as with some other GUI frameworks. Ot will depend on the type of applications that you wish to write whether this is important to you or not.
I use Codegear's C++ Builder. It's C++ language support is not 100% but it more than makes up for it by having a great two-way RAD IDE and the ability to use a huge library of existing Delphi components.
How about QT? Its cross-platform and its is used in a lot of commercial softwares.
On Linux and maybe Windows, you can use Gtk+ with Glade. Gtk+ is the GUI toolkit. Glade is a GUI drag and drop GUI editor. If you came from Windows or Java and thought GUI programming is hard, this stuff is easy.
If marketability is a concern, then C++/CLI with WinForms and WPF which really translates to "just learn WinForms and WPF, regardless of what specific language you use".
CodeProject has a ton of WinForms/WPF samples/tutorials to get you started.
The Fox GUI Toolkit
Really decent tried-and-true toolkit with a very nice event system. I've used the Ruby port, and my Windows apps had a very native look and feel.
It might lack some features, but FLTK is an incredibly simple cross-platform GUI library.
If you are using Windows the traditional place to start is Petzold
There is a nice simple framework here which will help you on the way without abstracting too much away.
Get Visual Studio Express, and start with a MFC "Dialog Based" application. All the window toolkits mentioned are good, but MFC will look the best on a resume!