Icon View Thread

The following is the text of the current message along with any replies.
Messages 1 to 10 of 12 total
Thread progress spinner
Thu, Jan 7 2016 6:03 AMPermanent Link

Godfrey

Ultimatesoft

Hi

I want to change color of the default progress spinner.  Where can I get different color images or do I have to
create them myself?  Looking for blue instead of orange.

OR

Is it better to create your own spinner using an Timage?

Thanks
Godfrey
Thu, Jan 7 2016 7:37 AMPermanent Link

Uli Becker

Godfrey,

Have a look here:

http://preloaders.net/en/circular

You can change all settings (speed included) and export it as sprites.
Then just load the sprite image into a TAnimatedIcon.

Uli
Thu, Jan 7 2016 11:11 AMPermanent Link

Tim Young [Elevate Software]

Elevate Software, Inc.

Avatar

Email timyoung@elevatesoft.com

Godfrey,

<< I want to change color of the default progress spinner.  Where can I get different color images or do I have to
create them myself?  Looking for blue instead of orange. >>

If you're using 2.04 or higher, then do the following:

1) Open the TProgressDialog.wbi control interface from the <InstallDir>\interfaces directory

2) Save it to your project directory (same root file name of TProgressDialog.wbi)

3) Click on the FontIcon element (it's the orange spinner icon)

4) Expand the Font property in the Element Inspector on the right, and change the Color property to the desired color

5) Save the control interface

6) Re-compile your application and run it

Tim Young
Elevate Software
www.elevatesoft.com
Fri, Jan 8 2016 1:51 PMPermanent Link

Uli Becker

Tim,

changing a FontIcon's color is simple, but I didn't know that FontIcons
can be animated. SmileI supposed an animated Icon.

Checking the sources I found the procedure "TElement.BeginRotation".
Looks magic - is that a new feature and/or was it mentioned before?

Uli

Fri, Jan 8 2016 2:10 PMPermanent Link

Tim Young [Elevate Software]

Elevate Software, Inc.

Avatar

Email timyoung@elevatesoft.com

Uli,

<< changing a FontIcon's color is simple, but I didn't know that FontIcons can be animated. Smile>>

Yep. Smile

<< Checking the sources I found the procedure "TElement.BeginRotation". Looks magic - is that a new feature and/or was it mentioned before? >>

It's a new feature, but I didn't mention it anywhere because it's only used with the progress dialogs.  I'll probably work it into the TAnimatedIcon (or a variation of it) at some point.  I ran out of time with 2.04, which took way too long as it was.

Tim Young
Elevate Software
www.elevatesoft.com
Sat, Jan 9 2016 5:20 PMPermanent Link

Trinione

Tim:
I saw this thread a few days ago and said to myself I would just stick with the default Progress Spinner. Reason being I decided to stick with core EWB rather that customising as I expect my changes to catch up with me at some future date. :/

That said, I realise the need to have the ability to customise the Progress Spinner. As subtle as it is, this is a really important aspect of an application.

Can a Parameter be added to the command to use another image instead? For example:
ShowProgress('Loading records...', 'mySpinner.gif')
Mon, Jan 11 2016 7:59 AMPermanent Link

Tim Young [Elevate Software]

Elevate Software, Inc.

Avatar

Email timyoung@elevatesoft.com


<< Can a Parameter be added to the command to use another image instead? For example: ShowProgress('Loading records...', 'mySpinner.gif') >>

Yes, but it would entail making it an icon name, not an image name.  Things like progress icons must be loaded as an embedded resource or you'll run into issues during application startup where the icon isn't shown because it hasn't been downloaded yet, which defeats the purpose of the icon in the first place.

I'm going to be making another run through the component library to add icons for caption bars and a couple of other places, so I can add this then.

Tim Young
Elevate Software
www.elevatesoft.com
Mon, Jan 11 2016 3:29 PMPermanent Link

Trinione

<< I'm going to be making another run through the component library to add icons for caption bars and a couple of other places, so I can add this then. >>

While I am at it, another thing I thought of - can ShowMessage also have a DlgCaption parameter ?

Currently it shows 'Message' and at times rather than building the message dialog, just changing the caption would suffice.

As in:

procedure ShowMessage(const Msg: String;
                 >>  DlgCaption: String; <<
                     AnimationStyle: TAnimationStyle=asNone;
                     AnimationDuration: Integer=0)
Mon, Jan 11 2016 4:06 PMPermanent Link

Tim Young [Elevate Software]

Elevate Software, Inc.

Avatar

Email timyoung@elevatesoft.com


<< While I am at it, another thing I thought of - can ShowMessage also have a DlgCaption parameter ?  >>

Sure, I can squeeze that in. Smile


Tim Young
Elevate Software
www.elevatesoft.com
Mon, Jan 11 2016 4:13 PMPermanent Link

Trinione

<< Sure, I can squeeze that in. Smile>>

Lovely. Thanks.
Page 1 of 2Next Page
Jump to Page:  1 2
Image