Fill box based on percent complete

  • Thread starter Thread starter NeoFax
  • Start date Start date
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?
 
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.
 
Back
Top