Codejock Forums Homepage
Forum Home Forum Home > Codejock Products > ActiveX COM > Task Panel
  New Posts New Posts RSS Feed - Taskpanel images
  FAQ FAQ  Forum Search   Events   Register Register  Login Login

Taskpanel images

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


Joined: 14 September 2006
Location: Belgium
Status: Offline
Points: 3
Post Options Post Options   Thanks (0) Thanks(0)   Quote nonkelfrank Quote  Post ReplyReply Direct Link To This Post Topic: Taskpanel images
    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

Back to Top
SuperMario View Drop Down
Admin Group
Admin Group
Avatar

Joined: 14 February 2004
Status: Offline
Points: 18057
Post Options Post Options   Thanks (0) Thanks(0)   Quote SuperMario Quote  Post ReplyReply Direct Link To This Post Posted: 14 September 2006 at 10:59am
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
Back to Top
nonkelfrank View Drop Down
Newbie
Newbie


Joined: 14 September 2006
Location: Belgium
Status: Offline
Points: 3
Post Options Post Options   Thanks (0) Thanks(0)   Quote nonkelfrank Quote  Post ReplyReply Direct Link To This Post Posted: 15 September 2006 at 7:43am
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
Back to Top
SuperMario View Drop Down
Admin Group
Admin Group
Avatar

Joined: 14 February 2004
Status: Offline
Points: 18057
Post Options Post Options   Thanks (0) Thanks(0)   Quote SuperMario Quote  Post ReplyReply Direct Link To This Post Posted: 15 September 2006 at 9:25am
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.
Back to Top
nonkelfrank View Drop Down
Newbie
Newbie


Joined: 14 September 2006
Location: Belgium
Status: Offline
Points: 3
Post Options Post Options   Thanks (0) Thanks(0)   Quote nonkelfrank Quote  Post ReplyReply Direct Link To This Post Posted: 15 September 2006 at 9:45am
Thanks, this works fine
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.148 seconds.