Print Page | Close Window

TaskDialog MainIconHandle

Printed From: Codejock Forums
Category: Codejock Products
Forum Name: Suite Pro
Forum Description: Topics Related to Codejock Suite Pro
URL: http://forum.codejock.com/forum_posts.asp?TID=9493
Printed Date: 27 September 2024 at 9:32pm
Software Version: Web Wiz Forums 12.04 - http://www.webwizforums.com


Topic: TaskDialog MainIconHandle
Posted By: jpcoffeyXXX
Subject: TaskDialog MainIconHandle
Date Posted: 04 February 2008 at 5:08pm
I'm having a problem with the TaskDialog MainIconHandle.  I'm trying to assign a 32 pixel icon to the TaskDialog MainIcon and it will not show.  While I can get the icon to show using the API method provided in the example, I cannot see why CodeJock's own control cannot deliver the handle.  The code I am using is,

   
    Dim imgIcon As ImageManagerIcon, lngIconHandle As Long
    Dim td as TaskDialog

    Set imgIcons = MyForm.cjImageManagerIcons
   
Set imgIcon = imgIcons.Icons.GetImage(ID_TASK_DIALOG_ICON, 32)
    lngIconHandle = imgIcon.Handle
 
   
Set td = MyForm.cjTaskDialog
    With td
        .MainInstructionText = "CJ image handles do not work."

        .MainIcon = xtpTaskIconCustom
        .MainIconHandle = lngIconHandle
        .ShowDialog
     end with

    Set td = Nothing
    Set imgIcon = Nothing: Set imgIcons = Nothing

The only thing showing up on the TaskDialog is the MainInstructionText.  The image in the ImageManagerIcons is an XP icon with multiple sizes.  Is there something I'm missing?  Thanks for your help.

Sincerely,

John
   



Replies:
Posted By: Oleg
Date Posted: 05 February 2008 at 12:53am
Hi,
 
Yes, Handle is now obsolete :( See last release notes.
try use .NET Image and its Handle.


-------------
Oleg, Support Team
CODEJOCK SOFTWARE SOLUTIONS



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