473,487 Members | 2,466 Online
Bytes | Software Development & Data Engineering Community
Create Post

Home Posts Topics Members FAQ

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
Sep 28 '08 #1
10 6127
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
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
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
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
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
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
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
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
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
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 thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

1
3178
by: Steaming Balturd | last post by:
are there any php based economic simulations out there - not trading games per se, but more like simulating an economy, be it running a business or running a government? All i've been able to...
0
2002
by: Constandinos Mavromoustakis | last post by:
Dear all, first we apologize if you receive multiple copies of this announcement. please see below if you are interested. Thank you in advance....
0
2366
by: Constandinos Mavromoustakis | last post by:
http://agent.csd.auth.gr/~cmavrom -------------------------------------------------- ============================================================================ = 37th Annual Simulation...
0
1991
by: Gus | last post by:
---------------------------------------------------------------------------- ------------------------------------ Call for Papers: 38th Annual Simulation Symposium Part of the 2005 Spring...
19
7133
by: Nicolas Pernetty | last post by:
Hello, I'm looking for any work/paper/ressource about continuous system simulation using Python or any similar object oriented languages (or even UML theory !). I'm aware of SimPy for...
0
1752
by: Karatza Helen | last post by:
Our apologies if you have received multiple copies -------------------------------------------------- Call for Papers: 38th Annual Simulation Symposium Part of the 2005 Spring Simulation...
4
2761
by: Richard Blackwood | last post by:
Hello all. I have a few questions about simulation programming. One, do all programmers know to how to code a simulation? By simulation I mean a model of real world relationships (i.e. like...
4
1422
by: YASIN786 | last post by:
Hi ol My name is yasin i am currently developing an application in vbnet 2003 the requirements are as follows: On the form will be located a number of points (no more than 4) through a light ray...
8
4400
by: razer | last post by:
Hi everybody I'm making a project where i need to make a simulation of a traffic light. The cars appear randomly, and are represented by letter, the traffic light stays open for x seconds, then...
0
6967
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
7132
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
7341
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
5439
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
1
4870
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...
0
3076
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The...
0
3071
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
600
muto222
php
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
0
266
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.