Asaliii Posted April 4, 2018 Report Share Posted April 4, 2018 Hello, I have a rectangular shape progressbar which I would like to be filled by pressing a button. but my problem is that it won't fill the whole progressbar and a little portion of it fron the end will remain empty. does this have anything to do with my customdrawing function? I am using gwinProgressbarDraw_Std(). Thanks, Link to comment Share on other sites More sharing options...
Joel Bodenmann Posted April 4, 2018 Report Share Posted April 4, 2018 Can you please show us a screenshot illustrating the problem? I'm confused: Are you using the default rendering function or a custom one? Link to comment Share on other sites More sharing options...
Asaliii Posted April 4, 2018 Author Report Share Posted April 4, 2018 (edited) So imagine this is my progressbar and the max pos that it will fill is shown in black. I am using custom rendering function which is a transparent version of gwinProgressbarDraw_Std() Edited April 4, 2018 by Asaliii Link to comment Share on other sites More sharing options...
Joel Bodenmann Posted April 4, 2018 Report Share Posted April 4, 2018 We need you to answer my question. If you use a custom rendering function we need to see the entire function implementation. Link to comment Share on other sites More sharing options...
Asaliii Posted April 4, 2018 Author Report Share Posted April 4, 2018 Link to comment Share on other sites More sharing options...
Asaliii Posted April 4, 2018 Author Report Share Posted April 4, 2018 Link to comment Share on other sites More sharing options...
Asaliii Posted April 4, 2018 Author Report Share Posted April 4, 2018 in other words it keeps the last range and won't fill it. Have I sent you all you were asking for? Link to comment Share on other sites More sharing options...
inmarket Posted April 4, 2018 Report Share Posted April 4, 2018 When you commented out the fillarea calls you forgot to also comment out the if statement just before it. The if statement still being there is causing the following if statement to also be conditioned. Comment out the if statement just before the commented out fillarea statements and I suspect it will work. Link to comment Share on other sites More sharing options...
Asaliii Posted April 5, 2018 Author Report Share Posted April 5, 2018 Oh wow yeah it worked! Thank you so much Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now