Icon View Thread

The following is the text of the current message along with any replies.
Messages 1 to 7 of 7 total
Thread Adding New Icons
Tue, Jul 28 2015 12:53 PMPermanent Link

squiffy

Telemix Ltd.

Avatar

Can I, and if so how can I, add new icons to the library so they appear in the drop down for the TIcon control?
I found what i think to be the icons themselves in the interfaces directory, but simply putting an icon in there doesn't add it to the list so I'm assuming there is a file somewhere containing the list of icons.
Tue, Jul 28 2015 1:13 PMPermanent Link

squiffy

Telemix Ltd.

Avatar

Ok, I found the TIconLibrary.wbi file - how do I create that "binary" data string? Is it just a dump of the PNG file? Is there a way to insert icons into the library via the IDE or something?
Tue, Jul 28 2015 1:17 PMPermanent Link

squiffy

Telemix Ltd.

Avatar

Ok, something to do with control interfaces - I'll read up (sorry should read the PDF doc before posting ...).
Wed, Jul 29 2015 2:20 AMPermanent Link

Mark Brooks

Slikware

Avatar

>>squiffy wrote
>>
>>Ok, something to do with control interfaces - I'll read up (sorry should read the PDF doc before posting ...).

Hi

I'm not at my "box" at the moment, but from memory you simply open the Icon Library interface in the IDE. You'll then see a "state" per icon (left-hand-side). Add a new state (probably use the "copy" option to copy from an existing one) and load its icon from your required PNG. It seems you can add plenty of these, as long as you use a unique name of course. Hope this helps.

As an aside, I "think" that Tim is also gonna support Font Awesome (and similar) quite soon. That'll make it incredibly simple to access a wide range of "icons" at any size and colour with minimal overhead. Font awesome can transform a UI really quickly. Watch this space for that one.

Cheers
Mark
Wed, Jul 29 2015 4:03 AMPermanent Link

squiffy

Telemix Ltd.

Avatar

Thanks Mark, yeah that's pretty much what I worked out in the end.

Cheers,
Wed, Jul 29 2015 6:46 PMPermanent Link

Tim Young [Elevate Software]

Elevate Software, Inc.

Avatar

Email timyoung@elevatesoft.com

<< Can I, and if so how can I, add new icons to the library so they appear in the drop down for the TIcon control?
I found what i think to be the icons themselves in the interfaces directory, but simply putting an icon in there doesn't add it to the list so I'm assuming there is a file somewhere containing the list of icons. >>

As you've worked out, you use the control interface editor to modify the iconlibrary.wbi interface:

http://www.elevatesoft.com/manual?action=viewtopic&id=ewb2&topic=Modifying_Interface

However, in order for the icons to appear at design-time, you need to rebuild the component library:

http://www.elevatesoft.com/manual?action=viewtopic&id=ewb2&topic=Rebuild_Component

I'll be adding a customized editor for icons at some point, which will streamline this type of work.  There will also be improved ways of adding customized control interfaces to a project.

Tim Young
Elevate Software
www.elevatesoft.com
Thu, Jul 30 2015 5:58 AMPermanent Link

squiffy

Telemix Ltd.

Avatar

Worked perfectly, thanks all.
Image