addicons commandbars method |
Post Reply |
Author | |
muldoon96
Newbie Joined: 16 February 2007 Status: Offline Points: 8 |
Post Options
Thanks(0)
Posted: 15 April 2008 at 11:28am |
Hi
I am using CodeJock 11.1.3 with Progress 10.1 B. I have an ImageManager and a CommandBarFrames in my design window, and I am trying to get the CommandBarsFrame to use the icons in the ImageManager:
chcommandbar.commandbarsframe.icons.addicons (chimagemanager.imagemanager.icons)
but I get the error 'invalid component handle referenced while processing method/statement: addicons'
It works fine if I simply do this:
chcommandbar.commandbarsframe.icons = chimagemanager.imagemanager.icons
I am just a bit concerned doing it this way as I cannot find anything in the CodeJock documentation that says you can simply set one to equal the other - the documentation says use 'addicons' which doesn't seem to work for me. |
|
Oleg
Admin Group Joined: 21 May 2003 Location: United States Status: Offline Points: 11234 |
Post Options
Thanks(0)
|
Hi,
Yes its "official" method to assign icons :)
|
|
Oleg, Support Team
CODEJOCK SOFTWARE SOLUTIONS |
|
muldoon96
Newbie Joined: 16 February 2007 Status: Offline Points: 8 |
Post Options
Thanks(0)
|
Sorry Oleg, I'm not quite clear - you are saying that they way I am doing it is correct, and the 'addicons' method should not be used ?
|
|
Oleg
Admin Group Joined: 21 May 2003 Location: United States Status: Offline Points: 11234 |
Post Options
Thanks(0)
|
Yes, your method is correct. 'addicons' will not work because by default CommandBarsframe.Icons returns Null.
|
|
Oleg, Support Team
CODEJOCK SOFTWARE SOLUTIONS |
|
muldoon96
Newbie Joined: 16 February 2007 Status: Offline Points: 8 |
Post Options
Thanks(0)
|
Thanks Oleg. Can I ask you two more questions on this please?
I am actually adding icons to a Shortcutbar control and then setting my CommandbarsFrame icons by doing this:
chcommandbar.commandbarsframe.icons = chshortcutbar.shortcutbar.icons
Would it be better to add the icons to an ImageManager control and then set both the ShortCutBar and the CommandbarsFrame to use the icons there, as below, or does it not really matter?
chshortcutbar.shortcutbar.icons = chimagemanager.imagemanager.icons
chcommandbar.commandbarsframe.icons = chimagemanager.imagemanager.icons
The second question is to do with ImageManagerIcons.loadbitmap. I am actually loading .png files and it seems to work, but the documentation says you must load .bmp files. Is the documentation out-of-date ? |
|
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 |