Board index » delphi » Bug in TMaskEdit when using associated TUpDown control?

Bug in TMaskEdit when using associated TUpDown control?

I've got a TMaskEdit with a mask set to:

"00;0;0"

The control is used for specifiying 'minutes', which are usually 'right
justified, zero padded', e.g. "10" minutes, "05" minutes (This field has a
partner called 'Hours' next to it, e.g. I want it to say "10:04", not "10:4"

The mask works fine, until I associate an UpDown control with it, at runtime,
"00" (which is displayed at design-time) suddenly becomes "0", and I'm left
with:

"10:5", instead of "10:50" again...

Does anyone have a work-around for this?

-Karl

 

Re:Bug in TMaskEdit when using associated TUpDown control?


I've got a TMaskEdit with a mask set to:

"00;0;0"

The control is used for specifying 'minutes', which are usually 'right
justified, zero padded', e.g. "10" minutes, "05" minutes (This field has a
partner called 'Hours' next to it, e.g. I want it to say "10:04", not "10:4"

The mask works fine, until I associate an UpDown control with it, at runtime,
"00" (which is displayed at design-time) suddenly becomes "0", and I'm left
with:

"10:5", instead of "10:50" again...

Does anyone have a work-around for this?

-Karl

Other Threads