By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
445,704 Members | 1,861 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 445,704 IT Pros & Developers. It's quick & easy.

LED light simulation (circle)

P: n/a
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
Sep 28 '08 #1
Share this Question
Share on Google+
10 Replies


P: n/a
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
Sep 28 '08 #2

P: n/a
Greg (co*****@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.
http://www.lebans.com/animatedgifplayer.htm
Sep 28 '08 #3

P: n/a
Greg (co*****@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.

Sep 28 '08 #4

P: n/a
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.comwrote:
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 -
Sep 28 '08 #5

P: n/a
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
<co*****@gmail.comwrote in message
news:bb**********************************@c65g2000 hsa.googlegroups.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.comwrote:
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 -

Sep 28 '08 #6

P: n/a
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...@myfamilyname.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:bb**********************************@c65g2000 hsa.googlegroups.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.comwrote:
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 -
Sep 29 '08 #7

P: n/a
Hi, Greg

co*****@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.
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
Sep 29 '08 #8

P: n/a
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
<co*****@gmail.comwrote in message
news:7c**********************************@8g2000hs e.googlegroups.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...@myfamilyname.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:bb**********************************@c65g2000 hsa.googlegroups.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.comwrote:
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 -

Sep 29 '08 #9

P: n/a
Thanks All

Greg

On Sep 29, 6:20*am, "Phil Stanton" <p...@myfamilyname.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...@gmail.comwrote in message

news:7c**********************************@8g2000hs e.googlegroups.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...@myfamilyname.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:bb**********************************@c65g2000 hsa.googlegroups.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.comwrote:
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 -
Sep 29 '08 #10

P: n/a
Jens Schilling wrote:
Hi, Greg

co*****@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.

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.ForeColor = 4259584 'Green
ElseIf [HaveIt] = "W" Then
Me!lblBall.ForeColor = 65535 'Yellow
Else '[HaveIt] = "N"
Me!lblBall.ForeColor = 255 'Red
End If

End Sub

Hope this is helpful!

Oct 4 '08 #11

This discussion thread is closed

Replies have been disabled for this discussion.