TaskDialog MainIconHandle |
Post Reply |
Author | |
jpcoffeyXXX
Groupie Joined: 16 August 2005 Location: United States Status: Offline Points: 31 |
Post Options
Thanks(0)
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 |
|
Oleg
Admin Group Joined: 21 May 2003 Location: United States Status: Offline Points: 11234 |
Post Options
Thanks(0)
|
Hi,
Yes, Handle is now obsolete :( See last release notes.
try use .NET Image and its Handle.
|
|
Oleg, Support Team
CODEJOCK SOFTWARE SOLUTIONS |
|
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 |