Click to See Complete Forum and Search --> : Graphic bar
Cbomb
Feb 5th, 2001, 05:50 PM
I think we need a lil more information to help you out. What part of the project do you need help on? What is its application?
said
Feb 6th, 2001, 06:26 AM
The project consists from two parts:
1. Design hardware to detect the level water in a container of two litres, displaying the water level with seven segments led, and sending voltages, which represent the water level to an ADC card (Analogue Digital Converter).
2. The software should convert the inputs from the ADC to equivalent in litres and millilitres, and the same time to present these information in a textbox in continuos mode, and adequate graphic bar in a picture control to display in continuos mode the water level.
To present the solution I need to display numbers from 0 to 100in a textbox in random and continuous modes by a timer, and in same time the graphic bar display graphically the number displayed in the textbox in continuous mode.
Said
Sastraxi
Feb 6th, 2001, 03:19 PM
1. You probably know more about this than me, but I know a bit about electronics. Judging by your first post, I'm guessing you dont need help on this one.
2. Use Mid$ in a loop to find all of the numbers in the textbox, and to find the corresponding picture, use:
for i = 0 to numbercount
picture(i).picture=LoadPicture(app.path & "\num" & numb(i) & ".bmp")
next i
Hope I helped!
Cheers,
Sastraxi
said
Feb 6th, 2001, 03:56 PM
Dear Mr Sastraxi;
Your solution is a good one but to represent all the numbers I will need 100 image or picture to load, I thought maybe the solution can in creating a rubber line inside the picture control, in which the high of the line correspond to the value of number displayed in the textbox, like the representation of sound frequencies( which I am not able to do it), maybe I make a big mistake.
Thank you
Sastraxi
Feb 6th, 2001, 04:09 PM
NO!
Sorry. You will only need to make 10!
pic1.bmp - the number 1
pic2.bmp - the number 2
...
...
...
and so on...
...
...
...
pic9.bmp - the number 9
pic0.bmp - the number 0
And then you just pick & choose and display the numbers side by side.
EG:
A one, and a zero, and a zero make 100. You dont need 100 pictures.
said
Feb 6th, 2001, 04:31 PM
I am sorry to take your time, maybe i explain the problem in very bad way, you find with included a attached picture may be in this way my idea will be more clear.
thank you
said
kedaman
Feb 6th, 2001, 04:33 PM
a simple gauge:
Picture1.line (0,picture1.scaleheight)-step(picture1.scalewidth,-number/(picture1.scalewidth*100)),vbred,bf
said
Feb 6th, 2001, 04:37 PM
I am sorry to take your time, maybe i explain the problem in very bad way, you find with included a attached picture may be in this way my idea will be more clear.
thank you
said
said
Feb 6th, 2001, 04:41 PM
Thank you i try this one.
said
vbforums.com
Copyright Internet.com Inc., All Rights Reserved.