LED light simulation (circle)

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • Greg (codepug@gmail.com)

    LED light simulation (circle)

    I would like to simulate an LED light. Actually need a few of them
    on my form to serve as indicator lights.

    I can easily place rectangle labels to make this happen, and turn the
    color On or OFF, but I can't seem to figure out a way to make a
    circle.

    How do I make a circle on a form for this purpose, or can somebody
    give me an approach to accomplish my LED light
    attempt.

    Thanks Greg
  • Greg (codepug@gmail.com)

    #2
    Re: LED light simulation (circle)

    Also, I have considered placing the letter O on a rectagle label and
    changing
    the color of the letter and setting the background to invisible, but
    the letter
    O does not have its center colored. Maybe there is an ascii character
    that
    can be used ? Any suggestions ? Want an LED look in Red or Green or
    Off.

    Thanks Greg




    On Sep 28, 4:42 pm, "Greg (code...@gmail. com)" <code...@gmail. com>
    wrote:
    I would like to simulate an LED light. Actually need a few of them
    on my form to serve as indicator lights.
    >
    I can easily place rectangle labels to make this happen, and turn the
    color On or OFF, but I can't seem to figure out a way to make a
    circle.
    >
    How do I make a circle on a form for this purpose, or can somebody
    give me an approach to accomplish my LED light
    attempt.
    >
    Thanks Greg

    Comment

    • Salad

      #3
      Re: LED light simulation (circle)

      Greg (codepug@gmail. com) wrote:
      Also, I have considered placing the letter O on a rectagle label and
      changing
      the color of the letter and setting the background to invisible, but
      the letter
      O does not have its center colored. Maybe there is an ascii character
      that
      can be used ? Any suggestions ? Want an LED look in Red or Green or
      Off.
      >
      Thanks Greg
      >
      >
      >
      >
      On Sep 28, 4:42 pm, "Greg (code...@gmail. com)" <code...@gmail. com>
      wrote:
      >
      >>I would like to simulate an LED light. Actually need a few of them
      >>on my form to serve as indicator lights.
      >>
      >>I can easily place rectangle labels to make this happen, and turn the
      >>color On or OFF, but I can't seem to figure out a way to make a
      >>circle.
      >>
      >>How do I make a circle on a form for this purpose, or can somebody
      >>give me an approach to accomplish my LED light
      >>attempt.
      >>
      >>Thanks Greg
      >
      >
      Perhaps this might help if you wanted to use an animated gif.

      Comment

      • Salad

        #4
        Re: LED light simulation (circle)

        Greg (codepug@gmail. com) wrote:
        Also, I have considered placing the letter O on a rectagle label and
        changing
        the color of the letter and setting the background to invisible, but
        the letter
        O does not have its center colored. Maybe there is an ascii character
        that
        can be used ? Any suggestions ? Want an LED look in Red or Green or
        Off.
        >
        Thanks Greg
        >
        >
        >
        >
        On Sep 28, 4:42 pm, "Greg (code...@gmail. com)" <code...@gmail. com>
        wrote:
        >
        >>I would like to simulate an LED light. Actually need a few of them
        >>on my form to serve as indicator lights.
        >>
        >>I can easily place rectangle labels to make this happen, and turn the
        >>color On or OFF, but I can't seem to figure out a way to make a
        >>circle.
        >>
        >>How do I make a circle on a form for this purpose, or can somebody
        >>give me an approach to accomplish my LED light
        >>attempt.
        >>
        >>Thanks Greg
        >
        >
        This might work, you can experiment with it. Create an unbound object
        frame. Make one with a circle for green, red, off. Then use the
        ontimer event to change colors as required.

        Comment

        • Greg (codepug@gmail.com)

          #5
          Re: LED light simulation (circle)

          Thanks Salad

          I'm not looking for anything too fancy:
          Perhaps this might help if you wanted to use an animated gif.
          I tried an unbound object frame as you suggested, and have created
          a red filled circle, that approaches what I'm looking for, but the
          background
          frame continues to stay visible as a white square. I tried to set the
          backstyle
          to transparent, but it does not become transparent. I now have a red
          circle, in
          a white square box?

          Thankyou Greg




          On Sep 28, 5:49 pm, Salad <o...@vinegar.c omwrote:
          Greg (code...@gmail. com) wrote:
          Also, I have considered placing the letter O on a rectagle label and
          changing
          the color of the letter and setting the background to invisible, but
          the letter
          O does not have its center colored. Maybe there is an ascii character
          that
          can be used ?  Any suggestions ? Want an LED look in Red or Green or
          Off.
          >
          Thanks Greg
          >
          On Sep 28, 4:42 pm, "Greg (code...@gmail. com)" <code...@gmail. com>
          wrote:
          >
          >I would like to simulate an LED light. Actually need a few of them
          >on my form to serve as indicator lights.
          >
          >I can easily place rectangle labels to make this happen, and turn the
          >color On or OFF, but I can't seem to figure out a way to make a
          >circle.
          >
          >How do I make a circle on a form for this purpose, or can somebody
          >give me an approach to accomplish my LED light
          >attempt.
          >
          >Thanks Greg
          >
          This might work, you can experiment with it.  Create an unbound object
          frame.  Make one with a circle for green, red, off.  Then use the
          ontimer event to change colors as required.- Hide quoted text -
          >
          - Show quoted text -

          Comment

          • Phil Stanton

            #6
            Re: LED light simulation (circle)

            I have 2 coloured dots (Bitmaps drawn I supect with paint). Call then
            ImageRed & ImageGreen

            They are identical in size and sit on top of each other. Use whatever method
            you like to make one visible and the other invisible (I use a check box)

            You have to match the form background colour to the background colour of the
            images for it to work, but you can't see the join (same as my hairpiece ...
            I lie)

            Phil


            <codepug@gmail. comwrote in message
            news:bb57acef-b7bd-47dd-a190-8c267e36bbe3@c6 5g2000hsa.googl egroups.com...
            Thanks Salad

            I'm not looking for anything too fancy:
            Perhaps this might help if you wanted to use an animated gif.
            I tried an unbound object frame as you suggested, and have created
            a red filled circle, that approaches what I'm looking for, but the
            background
            frame continues to stay visible as a white square. I tried to set the
            backstyle
            to transparent, but it does not become transparent. I now have a red
            circle, in
            a white square box?

            Thankyou Greg




            On Sep 28, 5:49 pm, Salad <o...@vinegar.c omwrote:
            Greg (code...@gmail. com) wrote:
            Also, I have considered placing the letter O on a rectagle label and
            changing
            the color of the letter and setting the background to invisible, but
            the letter
            O does not have its center colored. Maybe there is an ascii character
            that
            can be used ? Any suggestions ? Want an LED look in Red or Green or
            Off.
            >
            Thanks Greg
            >
            On Sep 28, 4:42 pm, "Greg (code...@gmail. com)" <code...@gmail. com>
            wrote:
            >
            >I would like to simulate an LED light. Actually need a few of them
            >on my form to serve as indicator lights.
            >
            >I can easily place rectangle labels to make this happen, and turn the
            >color On or OFF, but I can't seem to figure out a way to make a
            >circle.
            >
            >How do I make a circle on a form for this purpose, or can somebody
            >give me an approach to accomplish my LED light
            >attempt.
            >
            >Thanks Greg
            >
            This might work, you can experiment with it. Create an unbound object
            frame. Make one with a circle for green, red, off. Then use the
            ontimer event to change colors as required.- Hide quoted text -
            >
            - Show quoted text -

            Comment

            • Greg (codepug@gmail.com)

              #7
              Re: LED light simulation (circle)

              Thanks Phil

              I tried that and it worked, but now I think I'm going to have to
              distribute
              the two bitmap files along with the application, since it seems to be
              required
              at startup ? I'll have to look to see if there is an ascii character
              or dingbat that
              could substitute.

              Greg



              On Sep 28, 7:54 pm, "Phil Stanton" <p...@myfamilyn ame.co.ukwrote:
              I have 2 coloured dots (Bitmaps drawn I supect with paint). Call then
              ImageRed & ImageGreen
              >
              They are identical in size and sit on top of each other. Use whatever method
              you like to make one visible and the other invisible (I use a check box)
              >
              You have to match the form background colour to the background colour of the
              images for it to work, but you can't see the join (same as my hairpiece ....
              I lie)
              >
              Phil
              >
              <code...@gmail. comwrote in message
              >
              news:bb57acef-b7bd-47dd-a190-8c267e36bbe3@c6 5g2000hsa.googl egroups.com...
              Thanks Salad
              >
              I'm not looking for anything too fancy:
              >
              Perhaps this might help if you wanted to use an animated gif.
              >
              I tried an unbound object frame as you suggested, and have created
              a red filled circle, that approaches what I'm looking for, but the
              background
              frame continues to stay visible as a white square. I tried to set the
              backstyle
              to transparent, but it does not become transparent. I now have a red
              circle, in
              a white square box?
              >
              Thankyou Greg
              >
              On Sep 28, 5:49 pm, Salad <o...@vinegar.c omwrote:
              >
              >
              >
              Greg (code...@gmail. com) wrote:
              Also, I have considered placing the letter O on a rectagle label and
              changing
              the color of the letter and setting the background to invisible, but
              the letter
              O does not have its center colored. Maybe there is an ascii character
              that
              can be used ? Any suggestions ? Want an LED look in Red or Green or
              Off.
              >
              Thanks Greg
              >
              On Sep 28, 4:42 pm, "Greg (code...@gmail. com)" <code...@gmail. com>
              wrote:
              >
              >>I would like to simulate an LED light. Actually need a few of them
              >>on my form to serve as indicator lights.
              >
              >>I can easily place rectangle labels to make this happen, and turn the
              >>color On or OFF, but I can't seem to figure out a way to make a
              >>circle.
              >
              >>How do I make a circle on a form for this purpose, or can somebody
              >>give me an approach to accomplish my LED light
              >>attempt.
              >
              >>Thanks Greg
              >
              This might work, you can experiment with it. Create an unbound object
              frame. Make one with a circle for green, red, off. Then use the
              ontimer event to change colors as required.- Hide quoted text -
              >
              - Show quoted text -- Hide quoted text -
              >
              - Show quoted text -

              Comment

              • Jens Schilling

                #8
                Re: LED light simulation (circle)

                Hi, Greg

                codepug@gmail.c om wrote:
                I would like to simulate an LED light. Actually need a few of them
                on my form to serve as indicator lights.
                >
                I can easily place rectangle labels to make this happen, and turn the
                color On or OFF, but I can't seem to figure out a way to make a
                circle.
                >
                How do I make a circle on a form for this purpose, or can somebody
                give me an approach to accomplish my LED light
                attempt.
                You may play a bit with the font Wingdings:

                Place a label on a form, set the caption to " l " (Asc 108), choose
                Wingsdings as the font, and set the forecolor to any color you want.
                Finally play around with the fontsize.

                Regards
                Jens


                Comment

                • Phil Stanton

                  #9
                  Re: LED light simulation (circle)

                  If the bitmap is embedded there is no problem. I believe that once embedded,
                  you no longer actually need the bitmap, just a reference as to where it was.
                  I have just deleted my traffic light bmps and the form still works

                  Phil
                  <codepug@gmail. comwrote in message
                  news:7c15e9f1-cbfb-4af2-af78-acea2466024b@8g 2000hse.googleg roups.com...
                  Thanks Phil

                  I tried that and it worked, but now I think I'm going to have to
                  distribute
                  the two bitmap files along with the application, since it seems to be
                  required
                  at startup ? I'll have to look to see if there is an ascii character
                  or dingbat that
                  could substitute.

                  Greg



                  On Sep 28, 7:54 pm, "Phil Stanton" <p...@myfamilyn ame.co.ukwrote:
                  I have 2 coloured dots (Bitmaps drawn I supect with paint). Call then
                  ImageRed & ImageGreen
                  >
                  They are identical in size and sit on top of each other. Use whatever
                  method
                  you like to make one visible and the other invisible (I use a check box)
                  >
                  You have to match the form background colour to the background colour of
                  the
                  images for it to work, but you can't see the join (same as my hairpiece
                  ...
                  I lie)
                  >
                  Phil
                  >
                  <code...@gmail. comwrote in message
                  >
                  news:bb57acef-b7bd-47dd-a190-8c267e36bbe3@c6 5g2000hsa.googl egroups.com...
                  Thanks Salad
                  >
                  I'm not looking for anything too fancy:
                  >
                  Perhaps this might help if you wanted to use an animated gif.
                  >
                  I tried an unbound object frame as you suggested, and have created
                  a red filled circle, that approaches what I'm looking for, but the
                  background
                  frame continues to stay visible as a white square. I tried to set the
                  backstyle
                  to transparent, but it does not become transparent. I now have a red
                  circle, in
                  a white square box?
                  >
                  Thankyou Greg
                  >
                  On Sep 28, 5:49 pm, Salad <o...@vinegar.c omwrote:
                  >
                  >
                  >
                  Greg (code...@gmail. com) wrote:
                  Also, I have considered placing the letter O on a rectagle label and
                  changing
                  the color of the letter and setting the background to invisible, but
                  the letter
                  O does not have its center colored. Maybe there is an ascii character
                  that
                  can be used ? Any suggestions ? Want an LED look in Red or Green or
                  Off.
                  >
                  Thanks Greg
                  >
                  On Sep 28, 4:42 pm, "Greg (code...@gmail. com)" <code...@gmail. com>
                  wrote:
                  >
                  >>I would like to simulate an LED light. Actually need a few of them
                  >>on my form to serve as indicator lights.
                  >
                  >>I can easily place rectangle labels to make this happen, and turn the
                  >>color On or OFF, but I can't seem to figure out a way to make a
                  >>circle.
                  >
                  >>How do I make a circle on a form for this purpose, or can somebody
                  >>give me an approach to accomplish my LED light
                  >>attempt.
                  >
                  >>Thanks Greg
                  >
                  This might work, you can experiment with it. Create an unbound object
                  frame. Make one with a circle for green, red, off. Then use the
                  ontimer event to change colors as required.- Hide quoted text -
                  >
                  - Show quoted text -- Hide quoted text -
                  >
                  - Show quoted text -

                  Comment

                  • Greg (codepug@gmail.com)

                    #10
                    Re: LED light simulation (circle)

                    Thanks All

                    Greg



                    On Sep 29, 6:20 am, "Phil Stanton" <p...@myfamilyn ame.co.ukwrote:
                    If the bitmap is embedded there is no problem. I believe that once embedded,
                    you no longer actually need the bitmap, just a reference as to where it was.
                    I have just deleted my traffic light bmps and the form still works
                    >
                    Phil<code...@gm ail.comwrote in message
                    >
                    news:7c15e9f1-cbfb-4af2-af78-acea2466024b@8g 2000hse.googleg roups.com...
                    Thanks Phil
                    >
                    I tried that and it worked, but now I think I'm going to have to
                    distribute
                    the two bitmap files along with the application, since it seems to be
                    required
                    at startup ?  I'll have to look to see if there is an ascii character
                    or dingbat that
                    could substitute.
                    >
                    Greg
                    >
                    On Sep 28, 7:54 pm, "Phil Stanton" <p...@myfamilyn ame.co.ukwrote:
                    >
                    >
                    >
                    I have 2 coloured dots (Bitmaps drawn I supect with paint). Call then
                    ImageRed & ImageGreen
                    >
                    They are identical in size and sit on top of each other. Use whatever
                    method
                    you like to make one visible and the other invisible (I use a check box)
                    >
                    You have to match the form background colour to the background colour of
                    the
                    images for it to work, but you can't see the join (same as my hairpiece
                    ...
                    I lie)
                    >
                    Phil
                    >
                    <code...@gmail. comwrote in message
                    >
                    news:bb57acef-b7bd-47dd-a190-8c267e36bbe3@c6 5g2000hsa.googl egroups.com....
                    Thanks Salad
                    >
                    I'm not looking for anything too fancy:
                    >
                    Perhaps this might help if you wanted to use an animated gif.
                    >
                    I tried an unbound object frame as you suggested, and have created
                    a red filled circle, that approaches what I'm looking for, but the
                    background
                    frame continues to stay visible as a white square. I tried to set the
                    backstyle
                    to transparent, but it does not become transparent. I now have a red
                    circle, in
                    a white square box?
                    >
                    Thankyou Greg
                    >
                    On Sep 28, 5:49 pm, Salad <o...@vinegar.c omwrote:
                    >
                    Greg (code...@gmail. com) wrote:
                    Also, I have considered placing the letter O on a rectagle label and
                    changing
                    the color of the letter and setting the background to invisible, but
                    the letter
                    O does not have its center colored. Maybe there is an ascii character
                    that
                    can be used ? Any suggestions ? Want an LED look in Red or Green or
                    Off.
                    >
                    Thanks Greg
                    >
                    On Sep 28, 4:42 pm, "Greg (code...@gmail. com)" <code...@gmail. com>
                    wrote:
                    >
                    >I would like to simulate an LED light. Actually need a few of them
                    >on my form to serve as indicator lights.
                    >
                    >I can easily place rectangle labels to make this happen, and turn the
                    >color On or OFF, but I can't seem to figure out a way to make a
                    >circle.
                    >
                    >How do I make a circle on a form for this purpose, or can somebody
                    >give me an approach to accomplish my LED light
                    >attempt.
                    >
                    >Thanks Greg
                    >
                    This might work, you can experiment with it. Create an unbound object
                    frame. Make one with a circle for green, red, off. Then use the
                    ontimer event to change colors as required.- Hide quoted text -
                    >
                    - Show quoted text -- Hide quoted text -
                    >
                    - Show quoted text -- Hide quoted text -
                    >
                    - Show quoted text -

                    Comment

                    • cosmic debris

                      #11
                      Re: LED light simulation (circle)

                      Jens Schilling wrote:
                      Hi, Greg
                      >
                      codepug@gmail.c om wrote:
                      >I would like to simulate an LED light. Actually need a few of them
                      >on my form to serve as indicator lights.
                      >>
                      >I can easily place rectangle labels to make this happen, and turn the
                      >color On or OFF, but I can't seem to figure out a way to make a
                      >circle.
                      >>
                      >How do I make a circle on a form for this purpose, or can somebody
                      >give me an approach to accomplish my LED light
                      >attempt.
                      >
                      You may play a bit with the font Wingdings:
                      >
                      Place a label on a form, set the caption to " l " (Asc 108), choose
                      Wingsdings as the font, and set the forecolor to any color you want.
                      Finally play around with the fontsize.
                      >
                      Regards
                      Jens
                      >
                      >
                      Great solution Jens!

                      Greg, To make a shadow for the dots, create two Wingdings dots. Call the
                      first one something like lblDotShd and the second lblDot. Color the
                      lblDotShd black or some other dark shade. Then, you can use code (like
                      the following) to set the ForeColor of the lblDot based on the value (Y,
                      W, or N) in a field (HaveIt) of a database (VideoColl).

                      Private Sub Form_Current()

                      If [HaveIt] = "Y" Then
                      Me!lblBall.Fore Color = 4259584 'Green
                      ElseIf [HaveIt] = "W" Then
                      Me!lblBall.Fore Color = 65535 'Yellow
                      Else '[HaveIt] = "N"
                      Me!lblBall.Fore Color = 255 'Red
                      End If

                      End Sub

                      Hope this is helpful!

                      Comment

                      Working...