Web Progress Bar Style issue

Hello guys,

i`m trying to change the colour of a web progress bar and it seems that anything i put on the progressbar.style it does not work, i tried that on xojo 2014R3 and 2014R3.1 and same issue. is there something that i should take in consideration ?

Thanks.

[quote=156472:@Aurelian Negrea]Hello guys,

i`m trying to change the colour of a web progress bar and it seems that anything i put on the progressbar.style it does not work, i tried that on xojo 2014R3 and 2014R3.1 and same issue. is there something that i should take in consideration ? [/quote]

The WebProgressBar is always grey. See https://forum.xojo.com/15533-webprogressbar-color-gray-in-webdialog where I share a color custom one.

Hello Michel,

Well i dont see the purpose of the style anymore if it is not working, i did put a style with the background red, and when the timer starts it shows for less than a second the bar in red, than it goes completely transparent, so i guess there is a bug there, as i dont see it other way, and as i saw in the post also, it becomes a blue, or dark blue rather than a grey.

I will try to see in the feedback if there is something related to this and then open a bug on that.

Thanks.

[quote=156541:@Aurelian Negrea]Hello Michel,

Well i dont see the purpose of the style anymore if it is not working, i did put a style with the background red, and when the timer starts it shows for less than a second the bar in red, than it goes completely transparent, so i guess there is a bug there, as i dont see it other way, and as i saw in the post also, it becomes a blue, or dark blue rather than a grey.

I will try to see in the feedback if there is something related to this and then open a bug on that. [/quote]

Have you tried the class I posted http://fontmenu.com/xojo/WebColorProgressBar.xojo_binary_code ? Right click on the link, save to disk and drag into your project. It lets you choose any color you want for the bar.

Here is an example code :

ColorProgressBar1.BarColor = &cFF1BD500 ColorProgressBar1.Maximum = 100 ColorProgressBar1.value = ColorProgressBar1.value+5

As far as style goes for the Xojo control, I do not know if it can be applied the same way as a one dimension static control, would that be a rectangle or a TextField. My own control does not honor the webstyle for the background color. But let us be logical here. The webstyle has a background color property, that is meant to be applied to fields, labels and rectangles background. If there is a bug, it maybe that the white background of a WebProgressBar could be changed to yellow or red. But there is absolutely no style for the bar color.

[quote=156546:@Michel Bujardet]Have you tried the class I posted http://fontmenu.com/xojo/WebColorProgressBar.xojo_binary_code ? Right click on the link, save to disk and drag into your project. It lets you choose any color you want for the bar.

Here is an example code :

ColorProgressBar1.BarColor = &cFF1BD500 ColorProgressBar1.Maximum = 100 ColorProgressBar1.value = ColorProgressBar1.value+5

As far as style goes for the Xojo control, I do not know if it can be applied the same way as a one dimension static control, would that be a rectangle or a TextField. My own control does not honor the webstyle for the background color. But let us be logical here. The webstyle has a background color property, that is meant to be applied to fields, labels and rectangles background. If there is a bug, it maybe that the white background of a WebProgressBar could be changed to yellow or red. But there is absolutely no style for the bar color.[/quote]
Well if you look here http://documentation.xojo.com/index.php/WebControl.Style than it clearly states what the Style does, or maybe im getting that wrong , as for your control ive test it, but i was looking for something else. I was looking to use the build in controls of the library, but it seems that i have to make a custom one, so there are kind of useless if you cannot use them and their functionality. In my project i was looking for a back-office for my local server and that one was used to show the status of the battery and to be changed according to the date when it has to be changed, so it was just visual representation of the data, i guess that i will have to use other methods to do that.

In the Examples the webProgressBar is barely visible and it looks like a transparent progress over a blurry bar, so unless you change the page default background you will not be able to see it clearly.

Yes you are.

Well can you please explain why ? just for the sake of conversation, so that i read that one more time, or maybe the pour documentation from the site makes people confuse, and it seems that i`m not the only one.

So please do explain if you would.

Thank you .

[quote=156565:@Aurelian Negrea]Well can you please explain why ? just for the sake of conversation, so that i read that one more time, or maybe the pour documentation from the site makes people confuse, and it seems that i`m not the only one.

So please do explain if you would.

Thank you .[/quote]

I already tried. Maybe you have not read.

To say it again, style provides a background color for controls that have only one layer : rectangles, labels, texfields. A ProgressBar has two layers : the white back, and the bar. Pretty much like in a label, you can change the background color, but if you want to change the text color, it is another property. If the style backgroundcolor was to apply to a WebProgressBar, I believe the only way it would is to change the white background.

The barcolor property does not exist in a webstyle.

Well that one i got it , but my question was why there is a Style in the WebProgressBar property, and for what purpose if it cannot be supported ? that was my point from the beginning, and if you make a web project and put a webprogressbar inside and you create a webstyle with red background let`s say and put it on the webprogressbar style it will work in the fist second and after the whole bar it becomes unresponsive .Maybe i was asking the wrong question here. Anyway i will use a canvas and make my own control similar to yours so that i can use it for my needs.

Thanks again for your comments.

Indeed the background color should be applied, and the fact that it is not is a bug. You should file a bug report.

Well unfortunately i cannot create a case, in my Feedback app the case buttons are grey, so useless also. the funny part is that after my license expired i wanted to try the web edition to make a simple UI for my ups on linux and as always miracles happens in XOJO, the progress bar does not work as it should, timer works perfectly on mac but when i put it to run , does not fire anymore , in XOJO 2014R3.1 the WebButton, showed me no handled so i had to open the app in 2014R3 and o add handler in order to be able to use it , re-opened again in R3.1 and it works so things that go wired and suppose to be verified by the alfa, beta, xojo teams but still a bug, and even after that the feedback does not work, i guess because of the expired license issue.

Now one question , how you suppose to get feedback if the app is not working ? and as a suggestion, feedback app should be free and opened in order that everybody should submit cases, and i guess it is in your advantage, just look on bugreport.apple.com, you dont need a license to submit a bug, and it helps a lot, the apps are improving more fast and in the end i dont care about ratings in feedback, i just want the issue to be solved and to have a working app.

Finally, just more and more disappointed. :frowning:

[quote=156716:@Aurelian Negrea]Well unfortunately i cannot create a case, in my Feedback app the case buttons are grey, so useless also. the funny part is that after my license expired i wanted to try the web edition to make a simple UI for my ups on linux and as always miracles happens in XOJO, the progress bar does not work as it should, timer works perfectly on mac but when i put it to run , does not fire anymore , in XOJO 2014R3.1 the WebButton, showed me no handled so i had to open the app in 2014R3 and o add handler in order to be able to use it , re-opened again in R3.1 and it works so things that go wired and suppose to be verified by the alfa, beta, xojo teams but still a bug, and even after that the feedback does not work, i guess because of the expired license issue.

Now one question , how you suppose to get feedback if the app is not working ? and as a suggestion, feedback app should be free and opened in order that everybody should submit cases, and i guess it is in your advantage, just look on bugreport.apple.com, you dont need a license to submit a bug, and it helps a lot, the apps are improving more fast and in the end i dont care about ratings in feedback, i just want the issue to be solved and to have a working app.

Finally, just more and more disappointed. :([/quote]

You seem to have the wrong impression that beta testers are part of the Xojo team. That is not the case. Beta testers are users like you who most of the time have bought a Pro license. So if you have issues or suggestions to take to Xojo, it is better to take it directly to them through customer service.

Please do not take your frustrations on other users like you who simply try to help :confused:

Well it seems that i`m one of them as from my status, so we are in the same pot here :stuck_out_tongue: , sorry if it meant like that , it is just strange that something is released with a lot of bugs, and it suppose to be verified before.

And i will probably send an email to them .

[quote=156737:@Aurelian Negrea]Well it seems that i`m one of them as from my status, so we are in the same pot here :stuck_out_tongue: , sorry if it meant like that , it is just strange that something is released with a lot of bugs, and it suppose to be verified before.

And i will probably send an email to them .[/quote]

You have to understand that the sheer complexity of a development tool such as Xojo makes it impossible to test everything. The way beta test works is that Pro license owners, and some non pro selected beta testers who want to participate in the program usually run their projects in the beta versions, and check they work as expected. Then they file reports about what they found. It so happens that none of us uses the entirety of Xojo controls, classes and language elements. I doubt it is humanly possible, or desirable.

So it does happen that something gets overlooked.

To be frank, I am not even sure not being able to set the background color of a WebProgressBar is a bug. Webstyle opacity does work fine with it, so webstyle is not irrelevant. However, just to try and help you, I have reported it :
<https://xojo.com/issue/37594>

That said, always remember that programming has never been anything but an exercise in creativity, to go beyond what the tool offers. That is what most people do around here, when for some reason they cannot get what they want. And what they share. Some think workarounds are bad practice. I happen to know for a fact that the most famous programmers have used them since the onset of computing, to create the most innovative programs.