Hi, I'm new to C++ and want to include an LED in my form which has 2 states (On/Off). I'm using Borland C++ Builder 6, and I've searched the components toolbar and help file, but can't seem to find out how to include LEDs in my GUI. Could someone please help?
I take it that it resemebles a "Light Emitting Diode", as in an "power" or "hard disk activity" or some such on a PC, for example. Could be the old-fashioned round ones or a newfangled rectangular one - I have seen them in GUI's before now, but I have no idea how it's actually achieved.
I don't use Borland, but I'm sure there are several different ways to draw a little colored rectangle or to display a bitmap. ...If you are not learning from a book, I advise you to get one! (You might need a standard C++ book and a Borland Builder book.)
If you want to generate a more elaborate image, you may need to use a 3rd-party graphics program to generate the bitmap. Or, Builder probably includes an icon editor that can be used to create a custom icon/bitmap.
If C++ is your first programming language, you should learn standard (non-graphical) C++ first. There are no graphics, color, mouse, sound, etc. in ANSI/ISO Standard C++. All of these things are platform/compiler dependant. So, there is no standardized way to display an image. (Even without these features, C++ is a rather complex programming language.)
Hi, I'm new to C++...