Diese Seite mit anderen teilen ...

Informationen zum Thema:
Forum:
WinDev Forum
Beiträge im Thema:
6
Erster Beitrag:
vor 1 Jahr, 11 Monaten
Letzter Beitrag:
vor 1 Jahr, 11 Monaten
Beteiligte Autoren:
DarrenF, Fabrice Harari, Danny Lauwers

[WM20] Percentage centred in a progress bar [Solved]

Startbeitrag von DarrenF am 23.03.2016 10: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 :(

Antworten:

Re: [WM20] Percentage centred in a progress bar

Hi Darren

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

Best regards

von Fabrice Harari - am 23.03.2016 12:17

Re: [WM20] Percentage centred in a progress bar

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?

von DarrenF - am 23.03.2016 13:34

Re: [WM20] Percentage centred in a progress bar

Darren,

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

Danny

von Danny Lauwers - am 23.03.2016 13:39

Re: [WM20] Percentage centred in a progress bar

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

von Fabrice Harari - am 23.03.2016 14:38
Thanks guys - I'll give your suggestions a try...

Edit:
I tried the X/Y co-ordinate solution and it works a treat!
Thanks again...

von DarrenF - am 23.03.2016 14:55
Zur Information:
MySnip.de hat keinen Einfluss auf die Inhalte der Beiträge. Bitte kontaktieren Sie den Administrator des Forums bei Problemen oder Löschforderungen über die Kontaktseite.
Falls die Kontaktaufnahme mit dem Administrator des Forums fehlschlägt, kontaktieren Sie uns bitte über die in unserem Impressum angegebenen Daten.