[MAXGUI] How to make a "Voting Box"?

BlitzMax Forums/BlitzMax Beginners Area/[MAXGUI] How to make a "Voting Box"?

The forum is locked. These are the original blitzbasic.com forums, kept so they can still be read. No new topics, replies or edits can be made here. To join in, head over to the Blitz3D+ forums.

I need time to understand the code.

Actually you don't, it's written so it works more or less like the internal gadgets, via the Event system.

btw: how do I set the gradient so I get a "green end" like in my example?


The gradient method is a simple one, which only works with deltas, the rainbow gradient isn't -afaik- directly possible with this, that's why I added the Color method to set these colors yourself.


Is there a way to "fix" the value_range (0 to 100), no matter how big the window is...?

Not in this setup, that's why I asked for smooth vs fixed units.. ofcourse you could scale the output mathematically..

If you have 32 units then Eventdata() is between 0..31, if '31' is to become '100' then you do Eventdata()*100/31.
(edit) uhm.... yes.. that would display the wrong number in that unitbar, wouldn't it? ^_^