Codejock Forums Homepage
Forum Home Forum Home > Codejock Products > ActiveX COM > Command Bars
  New Posts New Posts RSS Feed - Icons from Resource
  FAQ FAQ  Forum Search   Events   Register Register  Login Login

Icons from Resource

 Post Reply Post Reply
Author
Message
Karl77 View Drop Down
Newbie
Newbie


Joined: 15 February 2016
Status: Offline
Points: 8
Post Options Post Options   Thanks (0) Thanks(0)   Quote Karl77 Quote  Post ReplyReply Direct Link To This Post Topic: Icons from Resource
    Posted: 15 February 2016 at 9:10am
Hi all,

I'm in the middle of evaluating CommandBars ActiveX.

Preface:
I have a working program which uses PNGs for icons.
They get loaded into an imagelist from a resource file.
They work fine in the CC5 toolbars as EXE and in the IDE.

Q:
I'd like to use these imagelists with the command bars.

CommandBarsA.AddImageList imgl_24
AddControl ToolBar.Controls, xtpControlButton, 1, "&New", False, "Create a new document"

This doesn't show an icon.
I thought the 1 adresses the first icon.
Not sure if the problem is to tell the commandbars the right index.
In the examples and here in the forum I couldn't find an answer.

What is the right syntax or command construction?
Or am I on the wrong path?

Thank you.


(BTW, why I can't use the image manager:
I have found no method to load the icons from resource.
I have only PNGs now, but could easily switch to the ICO format.
I know there is LoadIconFromResource, but this requires a compiled exe.
Not so very handy when working in the IDE...
If I miss something, I'll be happy to get a hint.)


Back to Top
 Post Reply Post Reply
  Share Topic   

Forum Jump Forum Permissions View Drop Down

Forum Software by Web Wiz Forums® version 12.04
Copyright ©2001-2021 Web Wiz Ltd.

This page was generated in 0.109 seconds.