Print Page | Close Window

Taskpanel images

Printed From: Codejock Forums
Category: Codejock Products
Forum Name: Task Panel
Forum Description: Topics Related to Codejock Task Panel
URL: http://forum.codejock.com/forum_posts.asp?TID=5051
Printed Date: 15 May 2024 at 12:32am
Software Version: Web Wiz Forums 12.04 - http://www.webwizforums.com


Topic: Taskpanel images
Posted By: nonkelfrank
Subject: Taskpanel images
Date 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




Replies:
Posted By: SuperMario
Date 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


Posted By: nonkelfrank
Date 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


Posted By: SuperMario
Date 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.


Posted By: nonkelfrank
Date Posted: 15 September 2006 at 9:45am
Thanks, this works fine



Print Page | Close Window

Forum Software by Web Wiz Forums® version 12.04 - http://www.webwizforums.com
Copyright ©2001-2021 Web Wiz Ltd. - https://www.webwiz.net