Progressbar for saving a picture

Discuss GUI programming with the RapaGUI plugin here
Post Reply
pecaN
Posts: 124
Joined: Thu Jun 10, 2010 4:15 pm

Progressbar for saving a picture

Post by pecaN »

Hi,

maybe this question has been there already but I'm lazy to search :-¨

How would I do a traditional progressbar which would represent saving a picture ?

I mean user clicks "save", picture is being saved, it takes a few seconds, so application is blocked, is that possible ?

pecaN
SamuraiCrow
Posts: 475
Joined: Fri May 15, 2015 5:15 pm
Location: Waterville, Minnesota USA

Re: Progressbar for saving a picture

Post by SamuraiCrow »

Considering that there are several means of saving pictures, such as Datatypes and system-specific libraries, it may not be possible to make the file savers pause and give a status report.
I'm on registered MorphOS using FlowStudio.
User avatar
airsoftsoftwair
Posts: 5830
Joined: Fri Feb 12, 2010 2:33 pm
Location: Germany
Contact:

Re: Progressbar for saving a picture

Post by airsoftsoftwair »

Yes, it's not possible. Functions like SaveBrush() save the picture in a single step without returning control to the script while saving.
pecaN
Posts: 124
Joined: Thu Jun 10, 2010 4:15 pm

Re: Progressbar for saving a picture

Post by pecaN »

ok, thanks, no problem :-) pecaN
User avatar
Juan Carlos
Posts: 932
Joined: Mon Sep 06, 2010 1:02 pm

Re: Progressbar for saving a picture

Post by Juan Carlos »

Maybe making a visual routine with a progress bar with the bytes copyed where the routine calculate the bytes copyed and substrat if original size file and with this date convert It to% and a visual bar.
Difficult explain but more difficult of program.
Post Reply