Newbies android Posted September 19, 2005 Newbies Posted September 19, 2005 (edited) Hi - Just wondering if there's any way to create a graphic which is addressable. For example, I have a calculation that results in "58%" and I want a "progress bar" to show at that calculation result. Is there any way to do this? thx Andrew Edited September 19, 2005 by Guest
onthebass Posted September 19, 2005 Posted September 19, 2005 You need a global with your graphic, I normally just use one pixel of color and expand it so I can make my fields any size and not worry about the graphic distorting on rezize. Then you have a series of calcs where the result is a container, the more detailed you want your bar to be then the more fields you create. In this example my progress bar will grow and shrink in quarters. Qtr_1 = case(calcresult ≤ 25, graphic, "") Qtr_2 = case(calcresult > 25, graphic, "") Qtr_3 = case(calcresult > 50, graphic, "") Qtr_4 = case(calcresult > 75, graphic, "") You might have to add a "and not isempty(calcresult)" if the graphic shows up when calcresult is 0 or empty. You can write a hundred of these calcs in no time to get an exact measurement. The you just lay the fields out next to each other on the layout.
Recommended Posts
This topic is 7104 days old. Please don't post here. Open a new topic instead.
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