ImgProgressBar - Background, Progress and Thumb Images.

ImgProgressBar

Customizable progress bar with background, progress and thumb images.
The images are taken from the assets.

20241030_224017


ㅤFunctionsㅤ

InitializeProgressBar

Initializes the progress bar inside an HVArrangement with settings.

  • int ID
  • Arrangement
  • String progressBarImagePath
  • String thumbImagePath
  • String progressImagePath
  • int cornerRadius
  • int padding

SetProgress

Sets the progress value.

  • int ID
  • int value

GetProgress

Gets the current progress value.

  • int ID

SetProgressColor

Progress color, respecting the corner radius.

  • int ID
  • int color

ㅤEventㅤ

component_event (13)

Completed

Fires when progress reaches its maximum value.

  • int ID

ㅤExtension:ㅤ

joejsanz.joedevimgprogressbar.aix (10.3 KB)


Thanks.

14 Likes

Excellent work :ok_hand:
Your expertise is truly commendable :clap:

1 Like

Very good extension!

2 Likes

impressive @Joejsanz

2 Likes

ㅤThanks a lotㅤ @JEWEL, @nico & @devxlabs

Very useful extension.

Changing the id type from int to String can improve flexibility and readability. Instead of arbitrary numbers, descriptive strings like "downloadProgress" or "uploadProgress" can clearly identify what each progress bar represents.

1 Like

Thanks a lot...

That's a good idea, I could make it work with both int and string, but in the meantime you could do this:

blocks

blocks (1)

lexical_variable_get

lexical_variable_get (1)