Print Page | Close Window

Problem with CXTButton

Printed From: Codejock Forums
Category: Codejock Products
Forum Name: Toolkit Pro
Forum Description: Topics Related to Codejock Toolkit Pro
URL: http://forum.codejock.com/forum_posts.asp?TID=6325
Printed Date: 12 November 2025 at 5:10am
Software Version: Web Wiz Forums 12.04 - http://www.webwizforums.com


Topic: Problem with CXTButton
Posted By: linfan
Subject: Problem with CXTButton
Date Posted: 05 February 2007 at 11:10pm
I have a CXTButton control on a dialog, and the dialog is embedded in another popup dialog as child control. When I use CXTButton::SetXButtonStyle to change the aspect of it in OnInitDialog, I got an assert when I close the program; everything went correctly when I delete this line. So confused

XTP Version: 10.1.1

The assertion is:
File: D:\Xtreme ToolkitPro 2006\Source\Controls\XTThemeManager.cpp
Line: 317

My code:

    m_btnArrow.SetXButtonStyle(BS_XT_FLAT | BS_XT_TWOROWS);
   
m_btnArrow.SetColorFace(::GetSysColor(COLOR_WINDOW));
    m_btnArrow.SetBitmap(0, IDB_CHATBTN_ARROW);


BTW, there isn't any other code that related with the button in the program.

Any suggestion?



Replies:
Posted By: Oleg
Date Posted: 06 February 2007 at 10:10am
Hello,
I think you forgot to delete this dialog if you create it dynamically.

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


Posted By: linfan
Date Posted: 06 February 2007 at 7:14pm
Had try to delete the child dialog in OnDestroy of its parent, but the code doesn't execute, debugging now, thanks for the help.



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