Taskpanel images |
Post Reply |
Author | |
nonkelfrank
Newbie Joined: 14 September 2006 Location: Belgium Status: Offline Points: 3 |
Post Options
Thanks(0)
Posted: 14 September 2006 at 10:38am |
In each sample that is included in the package, the images for the taskpanel are contained in an imagelist. Is it also possible to display an image that is in the codejock imagemanager? and if yes, what's the right way to do it? Thanks |
|
SuperMario
Admin Group Joined: 14 February 2004 Status: Offline Points: 18057 |
Post Options
Thanks(0)
|
Yes, here is some code from the Shortcutbar, but it is the same technique:
Dim mailIconArray(0 To 9) As Long mailIconArray(0) = SHORTCUT_INBOX mailIconArray(1) = SHORTCUT_CALENDAR mailIconArray(2) = SHORTCUT_CONTACTS mailIconArray(3) = SHORTCUT_TASKS mailIconArray(4) = SHORTCUT_NOTES mailIconArray(5) = SHORTCUT_FOLDER_LIST mailIconArray(6) = SHORTCUT_SHORTCUTS mailIconArray(7) = SHORTCUT_JOURNAL mailIconArray(8) = SHORTCUT_SHOW_MORE mailIconArray(9) = SHORTCUT_SHOW_FEWER wndShortcutBar.Icons.LoadBitmap App.Path & "\Icons\mail_16x16.bmp", mailIconArray, xtpImageNormal wndShortcutBar.Icons.LoadBitmap App.Path & "\Icons\mail_24x24.bmp", mailIconArray, xtpImageNormal End Sub |
|
nonkelfrank
Newbie Joined: 14 September 2006 Location: Belgium Status: Offline Points: 3 |
Post Options
Thanks(0)
|
thanks for the feedback, but when using this technique, the icons must be stored in a directory.
I prefer to store the icons in the imagemanager so the user cannot 'steal' the icons from me
|
|
SuperMario
Admin Group Joined: 14 February 2004 Status: Offline Points: 18057 |
Post Options
Thanks(0)
|
I didn't know you were using commandbars too. In that case
TaskPanel.Icons = TaskPanelImageManager.Icons ...Commandbars (and suite) is the only package that comes with an image manager with and GUI, all other controls have the same capabilities but you must use the method above\or similar. |
|
nonkelfrank
Newbie Joined: 14 September 2006 Location: Belgium Status: Offline Points: 3 |
Post Options
Thanks(0)
|
Thanks, this works fine
|
|
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 |