Thread: Led Gui

  1. #1
    Registered User
    Join Date
    Jan 2008

    Led Gui

    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?

  2. #2
    Join Date
    Oct 2007
    Inside my computer
    What is LED? Checkbox?
    Quote Originally Posted by Adak View Post
    io.h certainly IS included in some modern compilers. It is no longer part of the standard for C, but it is nevertheless, included in the very latest Pelles C versions.
    Quote Originally Posted by Salem View Post
    You mean it's included as a crutch to help ancient programmers limp along without them having to relearn too much.

    Outside of your DOS world, your header file is meaningless.

  3. #3
    Kernel hacker
    Join Date
    Jul 2007
    Farncombe, Surrey, England
    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.

    Compilers can produce warnings - make the compiler programmers happy: Use them!
    Please don't PM me for help - and no, I don't do help over instant messengers.

  4. #4
    Hardware Engineer
    Join Date
    Sep 2001
    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.

    Hi, I'm new to C++...
    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.)

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Switch function problem
    By ahming in forum C Programming
    Replies: 3
    Last Post: 04-01-2008, 09:40 AM
  2. Replies: 1
    Last Post: 08-11-2006, 05:44 AM
  3. .NET And GUI Programming :: C++
    By kuphryn in forum C++ Programming
    Replies: 4
    Last Post: 01-27-2002, 04:22 PM
  4. GUI Programming :: C++ Exclusive
    By kuphryn in forum C++ Programming
    Replies: 5
    Last Post: 01-25-2002, 03:22 PM
  5. C++: Reference Book, GUI, Networking & Beyond
    By kuphryn in forum C++ Programming
    Replies: 4
    Last Post: 11-10-2001, 08:03 PM