Graphics into Progress bar

Got a LiveCode personal license? Are you a beginner, hobbyist or educator that's new to LiveCode? This forum is the place to go for help getting started. Welcome!

Moderators: Klaus, FourthWorld, heatherlaine, kevinmiller

Post Reply
Shikha kumari
Posts: 19
Joined: Fri Feb 19, 2016 7:48 am

Graphics into Progress bar

Post by Shikha kumari »

Hello Everyone!!
I want to know whether we can convert a graphic into a progress bar or not. Actually I need a circular progress bar, I used graphics but how to do the progress task using that i got stuck there. Will u please help me out.

If there is other way to implement a circular progress bar then please suggest.
Klaus
Posts: 14325
Joined: Sat Apr 08, 2006 8:41 am
Contact:

Re: Graphics into Progress bar

Post by Klaus »

Hi Shikha,

you could use an opaque "oval" graphic for this!
1. Create an oval opaque graphic
2. Set its "startangle" property to e.g. 90
3. set its "arcangle" property in your "progress" repeat loop from 0 to 360

Is that what you mean?


Best

Klaus
Thierry
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 875
Joined: Wed Nov 22, 2006 3:42 pm

Re: Graphics into Progress bar

Post by Thierry »

Shikha kumari wrote: If there is other way to implement a circular progress bar then please suggest.
You might find Hermann's stack interesting:

http://forums.livecode.com/viewtopic.ph ... 32#p136531

Best,

Thierry
!
SUNNY-TDZ.COM doesn't belong to me since 2021.
To contact me, use the Private messages. Merci.
!
richmond62
Livecode Opensource Backer
Livecode Opensource Backer
Posts: 10431
Joined: Fri Feb 19, 2010 10:17 am

Re: Graphics into Progress bar

Post by richmond62 »

Look at this.

10 minutes worth of work.
Attachments
PROGRESS.livecode.zip
Here's the stack.
(148.9 KiB) Downloaded 429 times
Shikha kumari
Posts: 19
Joined: Fri Feb 19, 2016 7:48 am

Re: Graphics into Progress bar

Post by Shikha kumari »

Thank you.....
I succeeded in my task with your support. Thank you to all... :)

Shikha
Shikha kumari
Posts: 19
Joined: Fri Feb 19, 2016 7:48 am

Re: Graphics into Progress bar

Post by Shikha kumari »

How can i change the color of my graphic?
Like from 0 to 90 its color is red after 90 it becomes yellow after 180 green and upto 360 it will be blue like this.
I tried some coding but it's not working.
richmond62
Livecode Opensource Backer
Livecode Opensource Backer
Posts: 10431
Joined: Fri Feb 19, 2010 10:17 am

Re: Graphics into Progress bar

Post by richmond62 »

Well, it might be time to do some work of your own . . .

Oh, well, here we go:
PROGRESSnew.zip
(149.06 KiB) Downloaded 411 times
Post Reply