PDA

View Full Version : Gradient Progress


Daniel TM
12-10-2006, 04:31 PM
This example shows how to have a progressbar with a gradient effect on it. The border for the progressbar is formed by 4 black images that surrounds the image that has the gradient effect. The image file that has the gradient effect has 200 pixels of width, but in the program the image object has 0 pixels of width and a timer continuasly increases the width of the image object by 1 pixel, causing the illusion of an engradiented progressbar.

Daniel TM
12-11-2006, 02:12 PM
I would like to correct something I said myself on my previous post, the image file's width isn't 200 pixels, it's 100.
In this example, since the width of the image object would reach only 100, each collum of pixels that is shown could represent 1%. If you make another image with a gradient effect and make the width 200 and raise the image object's width limit to 200, then every 2 collums of pixels shown on your window would represent 1%. If the width of the image file and the limit of the image object's width was 300, then evrey 3 collums of pixels would represent 1%, and so on...

odracir
12-28-2006, 09:11 AM
really nice!!!:D :yes :yes

but is it possible to create the gradient with this picture???

what is the code to do with installing an .exe file??

i just searched this........

TJ_Tigger
12-28-2006, 09:27 AM
it looks like all they are doing is stretching a gradient image file. Make the image file with the gradient you want and then stretch it (Image.SetSize) as your item progresses.

Tigg

Daniel TM
12-29-2006, 04:42 AM
It doesn't stretch anything, it just sets the width to it's currrent width + 1.
By doing so, the image object just get's bigger shoing the rest of the image file giving the ilusion of a gradient progress bar.
Make sure to make the border seperately. because if the border of the progress bar is in the gradient image then the border will not be shown completely untill the image object get's bigg enough to show the whole border.
In my example I made four image objects that stretch a 1x1 black .bmp giving the illusion of a border while the final image that is surrounded by the border is the image object that contains the image of the gradient

odracir
12-29-2006, 08:45 AM
bot is it possible when installing an .exe file, the gradient starts to move like a progressbar?? and is it possible to gives the % over the gradient progress??

how does the code look like then???

the real progressbar in AMS6 is just crappy looking....

i realy like your style....


the attachment bove is from an installer i found, so is it possible to make it the same?? i really like that one !!:lol

Nice work and keep up the good work !!!

regards ricardo

Daniel TM
01-13-2007, 05:35 PM
Sorry I took so long to reply, Ricardo.
Yes, it is possible to make a program that copies a .exe file to the computer and move the gradient progress to show how much has been copied, it is also possible to show the percentage on top of the gradient progress. I changed Gradient Progress a bit so that it shows the percentage on top of the gradient progress. One question, are you Brazilian? Ricardo is a Brazilian name, I'm from Brazil so if you want to speak Portuguese with me, it's OK. ;)
This post comes with an attachment - the updated version of Gradient Progress.
Note: I slowed down the timer - To put it simpler, now the gradient progress takes longer to reach 100%

odracir
01-15-2007, 09:14 AM
sorry, but i'm from holland, no portugese, sorry!!:rolleyes
are you working on the attachment or am i blind???:huh
or is it updated above?

regards ricardo

Daniel TM
01-15-2007, 03:12 PM
Woops, sorry bout that, I forgot to attach the updated version. Here it is.

odracir
01-16-2007, 11:59 AM
nice the percentage, but can you give me an example with listbox, on click install exe, with the gradient?? im still a noob and im learning to see how the codes are........

regards ricardo

djmoh
03-02-2007, 11:09 AM
sorry, but i'm from holland

heyy I am from holland too ...
do you have msn

(heb je msn ... zo dat we info kunnen delen ?)

I have 2 websites ...
http://www.dj-moh.nl (still working on it)
http://www.darkclark.nl
(Counter strike Source clan ... I have programmed al little bit on my
CS:S server ... and it was fun .. i needed somthing else then i found
Autoplay media studio ...)

This is Great stuff ....
I am new as you know ..
Could use some extra examples ..

Thanks mat for creating examples ...
Keep u the good job !!

-=DJ_MOH=-

Daniel TM
03-05-2007, 05:27 PM
[TJ Tigg]
Hey, now I see what you mean, the image is being stretched, I just didn't program it to do so and I also didn't set any "Stretch" property to true or anything like that so I didn't think that the AMS60 runtime engine would automatically stretch the graphic once it's size changed.
==========
[Ricardo]
I am not understanding what you are trying to tell me, do you want to make an installer for your program, or do you want to remake an installer? Let's say you created program X. You can make your own personalized installer for program X, where a gradient progress bar represents how much has been installed. If you downloaded an installer for another program (Like Firefox installer program) then you can't create a program that uses that installer to install Firefox, it would just be another installer for Firefox.

Later

odracir
03-19-2007, 02:03 PM
for a new, program that is zipped as SFX so,what i mean was if i click in the listbox : program X yopure gradient tell me how much % its installing


regards ric

medina07
04-06-2007, 02:36 AM
It is possible to apply the Gradient Progress to the volume control or audio length?