PC SOFT

FOROS PROFESIONALES
WINDEVWEBDEV y WINDEV Mobile

Inicio → WINDEV 2024 → [WM20] Percentage centred in a progress bar
[WM20] Percentage centred in a progress bar
Iniciado por guest, 23,mar. 2016 11:30 - 5 respuestas
Publicado el 23,marzo 2016 - 11:30
Hi guys,

Looking for clever ideas; Has anyone found an acceptable way to get a percentage to look as though it's displayed inside a progress bar with WM20 in Android?

The Help pages state that the %age displayed in the progress bar isn't available in Android via the standard properties and I know I could code something so it displays outside the progress bar, but that's not as pleasing on the eye.

Also; ..Text and ..TextProgressBar aren't available in Android either :(
Publicado el 23,marzo 2016 - 13:17
Hi Darren

a static with invisible background set on top of the progress bar?

Best regards
Publicado el 23,marzo 2016 - 14:34
Hi Fabrice,

Thanks - I'll try it. I was thinking something similar and I hope it stays where I place it at design time (i.e. on top of the progress bar)... and not go-a-wandering around the screen when then app is installed on different Android devices ;)

What are your experiences in this area - does it stay put?
Publicado el 23,marzo 2016 - 14:39
Darren,

You must make sure that the anchors are correctly set so the size of the screen or the orientation does not matter.

Danny
Publicado el 23,marzo 2016 - 15:38
Hi Darren,

either use the anchoring system -OR- if yo want to be totally sure, in the code that starts using the progress bar, do:
my static..X, ..Y, ..Width, ..Height = MyProgressBar..X, ..Y, ..Width, ..Height and just use anchoring on the progress bar.

Best regards

Fabrice
Publicado el 23,marzo 2016 - 15:55
Thanks guys - I'll give your suggestions a try...