can i use a progress bar on a device ?

Getting into LiveCode for iOS? Ask your questions here.

Moderators: FourthWorld, heatherlaine, Klaus, kevinmiller, robinmiller

Post Reply
fre
Posts: 41
Joined: Fri Nov 12, 2010 7:22 pm

can i use a progress bar on a device ?

Post by fre » Tue Feb 08, 2011 2:17 pm

hello,
i want to use a live code progress bar on the iphone.
does anybody know if such a progress bar is working on an device ?
if i test my app on the simulator, i see only a black rectangle where the progress bar should be.
i tryed to change settings of the progress bar in the inspector, but i could not get it to work.

best regards
fred.

Klaus
Posts: 14177
Joined: Sat Apr 08, 2006 8:41 am
Contact:

Re: can i use a progress bar on a device ?

Post by Klaus » Tue Feb 08, 2011 2:38 pm

Hi Fed,

yes you can use scrollbars on iDevices, BUT all LiveCode objects will show the "Motif" (Unix)
look and feel on iOS, in other words: it will looks shitty! :-D

I would create a rectangular graphic with a nice bitmap (gradient or whatever) effect and then
resize this one as neccessary instead of a scrollbar.

Know what I mean? Should not be to complicated.


Best

Klaus

RickD
Posts: 31
Joined: Thu Feb 11, 2010 5:47 pm

Re: can i use a progress bar on a device ?

Post by RickD » Thu Feb 10, 2011 6:42 am

Hi fre:

Here is a sample custom iOS progress bar that you can use and expand as needed.

Cheers
Attachments
iOS Scrollbar.zip
(10.18 KiB) Downloaded 448 times

ludo
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 72
Joined: Mon Dec 03, 2007 6:10 pm

Re: can i use a progress bar on a device ?

Post by ludo » Thu Feb 10, 2011 8:43 am

RickD wrote:Hi fre:

Here is a sample custom iOS progress bar that you can use and expand as needed.

Cheers

Hello,

Based from your stack (for the presentation) and the Marty Slider's stack (on revOnline) i have made an iOS Slider.
Attachments
iOS Slider.livecode.zip
(6.36 KiB) Downloaded 417 times

fre
Posts: 41
Joined: Fri Nov 12, 2010 7:22 pm

Re: can i use a progress bar on a device ?

Post by fre » Thu Feb 17, 2011 5:18 pm

hallo,

thanks for the interesting example stacks.

i would like to explain my problem more exactly. i have to play sound in my project. i do that with the following code:

Code: Select all

play specialFolderPath("engine") & "/sound/sound.mp3" looping
when this happens, i have a break of any activity of a few seconds. the sound file is about 1.8 megabyte in size. i would like to show a progess bar during that time. the problem is, that i can only do one thing, play the sound or run the animation. when i show the animation first, i have the break after the animation. when i start the sound, i have the break first.

is it possible to do both in a multitasking way ?

best
fred.

Post Reply