Icons from Resource |
Post Reply |
Author | |
Karl77
Newbie Joined: 15 February 2016 Status: Offline Points: 8 |
Post Options
Thanks(0)
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.) |
|
Post Reply | |
Tweet
|
Forum Jump | Forum Permissions You cannot post new topics in this forum You cannot reply to topics in this forum You cannot delete your posts in this forum You cannot edit your posts in this forum You cannot create polls in this forum You cannot vote in polls in this forum |