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: FourthWorld, heatherlaine, Klaus, kevinmiller

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

Graphics into Progress bar

Post by Shikha kumari » Thu Mar 10, 2016 1:45 pm

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: 13829
Joined: Sat Apr 08, 2006 8:41 am
Location: Germany
Contact:

Re: Graphics into Progress bar

Post by Klaus » Thu Mar 10, 2016 2:28 pm

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 » Thu Mar 10, 2016 3:22 pm

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: 9388
Joined: Fri Feb 19, 2010 10:17 am
Location: Bulgaria

Re: Graphics into Progress bar

Post by richmond62 » Thu Mar 10, 2016 7:41 pm

Look at this.

10 minutes worth of work.
Attachments
PROGRESS.livecode.zip
Here's the stack.
(148.9 KiB) Downloaded 178 times

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

Re: Graphics into Progress bar

Post by Shikha kumari » Fri Mar 11, 2016 6:21 am

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 » Tue Mar 15, 2016 6:31 am

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: 9388
Joined: Fri Feb 19, 2010 10:17 am
Location: Bulgaria

Re: Graphics into Progress bar

Post by richmond62 » Tue Mar 15, 2016 7:24 pm

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

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

Post Reply

Return to “Getting Started with LiveCode - Complete Beginners”