Fill box based on percent complete

N

NeoFax

I would like to fill a box based on percent complete. I think I can
do it by drawing a box and setting its measure to equal 100. i.e. 100
pixels = 100% each percent equals 1 pixel Then drawing a filled box
on top based on the percent. Or just drawing the second box based on
left position without even having the first box. Does anyone know how
to accomplish this? Also, would it be possible to do this with a
graphic?
 
D

Duane Hookom

I would use solid color label control and set its width in the On Format
event of the section containing the percent and the label. The code might
look like:

Me.lblPctComplete.Width = Me.txtPct * 1440

The width property in code is measured in pixels of 1440 per inch.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top