Print Page | Close Window

TaskDialog control buttons not using XP style

Printed From: Codejock Forums
Category: Codejock Products
Forum Name: Controls
Forum Description: Topics Related to Codejock Controls
URL: http://forum.codejock.com/forum_posts.asp?TID=17551
Printed Date: 17 September 2024 at 7:25pm
Software Version: Web Wiz Forums 12.04 - http://www.webwizforums.com


Topic: TaskDialog control buttons not using XP style
Posted By: Zookeeper
Subject: TaskDialog control buttons not using XP style
Date Posted: 11 November 2010 at 5:42pm
I purchased the Xtreme Controls ActiveX package a couple years ago and have been happy with it.  But today I tried using the TaskDialog control for the first time and while I generally like it, I can't seem to figure out how to get the pushbuttons on it to display using an XP theme.  They always display as square, boxy, Windows 2000 and earlier style.  I'm using VB6.  Here's some sample code:

With TaskDialog1
    .MessageBoxStyle = True
    .WindowTitle = "Test Title"
    .MainInstructionText = "Checking button styles"
    .ContentText = "This dialog is showing old styles"
    .MainIcon = xtpTaskIconError
    .AddButton "OK", TaskDialogCommonButtons.xtpTaskButtonOk
    .ShowDialog
End With

Any idea why the OK button isn't displayed with an XP or above them?



Replies:
Posted By: Oleg
Date Posted: 12 November 2010 at 3:39am
Hi,

You need add manifest to your application (copy from any our sample)


-------------
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