Icon View Thread

The following is the text of the current message along with any replies.
Messages 1 to 10 of 10 total
Thread IconName drop down not displaying any optiontions
Fri, Aug 18 2017 2:08 AMPermanent Link

Richard Mace

Hi All,

I'm not sure what I've managed to do, but all of the icons (on my toolbar) in my project has disappeared.

Now, if I add a TIcon onto my form, and select Icon - IconName - Nothing is displayed for me to choose?

I have a TIconLibray file in my projects directory and that is what I opened up in the IDE to add additional icons originally. If I open the TIconLibrary, I can see my icons fine.

Any ideas?

Thanks

Richard
Fri, Aug 18 2017 5:11 AMPermanent Link

Matthew Jones

Richard Mace wrote:

>  If I open the TIconLibrary, I can see my icons fine.

Do you see the full original set too? I suspect that you have created a new blank one to put your icons in, but you need to start with the standard set. Assuming of course your toolbar has standard icons.

--

Matthew Jones
Fri, Aug 18 2017 11:48 AMPermanent Link

Tim Young [Elevate Software]

Elevate Software, Inc.

Avatar

Email timyoung@elevatesoft.com

Richard,

<< I'm not sure what I've managed to do, but all of the icons (on my toolbar) in my project has disappeared.

Now, if I add a TIcon onto my form, and select Icon - IconName - Nothing is displayed for me to choose?

I have a TIconLibray file in my projects directory and that is what I opened up in the IDE to add additional icons originally. If I open the TIconLibrary, I can see my icons fine. >>

When you say "open the TIconLibrary", are you referring to opening the icon library via the File/Open Interface menu option, or via the Library/Open Icon Library menu option ?

Tim Young
Elevate Software
www.elevatesoft.com
Fri, Aug 18 2017 2:16 PMPermanent Link

Richard Mace

Tim Young [Elevate Software] wrote:

<< When you say "open the TIconLibrary", are you referring to opening the icon library via the File/Open Interface menu option, or via the Library/Open Icon Library menu option ?>>

I copied the default TIconLibrary from the program files directory to my project source code root directory, then chose File - Open and selected it.

Richard
Fri, Aug 18 2017 4:19 PMPermanent Link

Tim Young [Elevate Software]

Elevate Software, Inc.

Avatar

Email timyoung@elevatesoft.com

Richard,

<< I copied the default TIconLibrary from the program files directory to my project source code root directory, then chose File - Open and selected it. >>

With your project open, try using the Library/Open Icon Library option.  Does it still open your project-specific icon library ?  If not, then the issue is probably that you don't have the Automatically load custom control interfaces in project search paths option in the Environment/Options dialog (first page).

Tim Young
Elevate Software
www.elevatesoft.com
Fri, Sep 1 2017 1:54 AMPermanent Link

Richard Mace

Tim Young [Elevate Software] wrote:

<< With your project open, try using the Library/Open Icon Library option.  Does it still open your project-specific icon library ? >>

Yes, it does?

Richard
Tue, Sep 5 2017 12:56 PMPermanent Link

Tim Young [Elevate Software]

Elevate Software, Inc.

Avatar

Email timyoung@elevatesoft.com

Richard,

<< Yes, it does? >>

Hmm, something doesn't add up here.  The icon library comes from only one of two places - the component library (the default) or a project-specific icon library found in the project's search paths.  If the Open Icon Library option successfully opens your project-specific icon library, then you should also be able to select any of the icons in the icon library from within a TIcon control, etc.

Tim Young
Elevate Software
www.elevatesoft.com
Thu, Sep 7 2017 1:07 PMPermanent Link

Tim Young [Elevate Software]

Elevate Software, Inc.

Avatar

Email timyoung@elevatesoft.com

Richard,

Okay, thanks for the project.  The issue is that you inadvertently changed the control class name for your project-specific icon library to TIcon instead of TIconLibrary.  If you fix that, then you'll be all set.  Just open the icon library using the Library/Open Icon Library option with your project open, and then change the Control Class Name combo box at the top to TIconLibrary instead of TIcon.

Tim Young
Elevate Software
www.elevatesoft.com
Sat, Sep 9 2017 9:22 AMPermanent Link

Richard Mace

Tim Young [Elevate Software] wrote:

<< The issue is that you inadvertently changed the control class name for your project-specific icon library to TIcon instead of TIconLibrary.  If you fix that, then you'll be all set.  Just open the icon library using the Library/Open Icon Library option with your project open, and then change the Control Class Name combo box at the top to TIconLibrary instead of TIcon. >>

Thanks Tim, that sorted it.

Interestingly though, I had to manually type TIconLibrary, as it wasn't an entry in the drop down.

Thanks again

Richard
Mon, Sep 11 2017 2:45 PMPermanent Link

Tim Young [Elevate Software]

Elevate Software, Inc.

Avatar

Email timyoung@elevatesoft.com

Richard,

<< Interestingly though, I had to manually type TIconLibrary, as it wasn't an entry in the drop down. >>

That's an oversight on my part - the TIconLibrary is a TObject descendant class, not a TComponent descendant class, hence the behavior.  I'll change it to a TComponent descendant in the next build.

Tim Young
Elevate Software
www.elevatesoft.com
Image