Psylord
asked on
Showing Percentage
This is simple math question (I stink at math)
I'm adding translucency to my application, and I want to use a trackbar or dropdown to let the user select the visibility of forms in the application.
I set the max on my trackbar to 255 and when you slide it the translucency changes on the form.
255 is 100% visible, 0 is 0% visible.
What I want to do is put the percentage of visibilty into an integer so I can display it on a label or something, indicating what "percentage of visibilty" the form has.
Also, I'd lide a way to calculate all the in-between percentages, just in case I decide to go with a dropdown.
Thanks!
I'm adding translucency to my application, and I want to use a trackbar or dropdown to let the user select the visibility of forms in the application.
I set the max on my trackbar to 255 and when you slide it the translucency changes on the form.
255 is 100% visible, 0 is 0% visible.
What I want to do is put the percentage of visibilty into an integer so I can display it on a label or something, indicating what "percentage of visibilty" the form has.
Also, I'd lide a way to calculate all the in-between percentages, just in case I decide to go with a dropdown.
Thanks!
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Damn! ;-)
Have a look at http://www.delphi-jedi.org/Jedi:VOYBUGHUNT
Markus