Print Page | Close Window

CXTPButton displaying flat by default

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=23394
Printed Date: 23 December 2024 at 10:40am
Software Version: Web Wiz Forums 12.04 - http://www.webwizforums.com


Topic: CXTPButton displaying flat by default
Posted By: rhfritz
Subject: CXTPButton displaying flat by default
Date Posted: 25 July 2017 at 9:38am
When we ran under XTP v15.x, CXTPButtons appeared both 3D and had the "ShowFocus" property -- if that's what the color change when the cursor was over the button is called.

When we upgraded to XTP v17.x, all the CXTPButton derived buttons seemed to revert to flat but still had the ShowFocus property.   Following the code in the Button example, I now find that in order to get the controls to look 3D, I have to call SetUseVisualStyle(0).  But then I lose the ShowFocus property.

Of course, between versions of XTP we upgraded from XP to 7 to 10.   But was there some sort of default "theme" change that caused the 3D look to go away?   Setting the ShowFocus() property does not work when using SetUseVisualStyle(0).   And the Button example shows all controls with focus for all themes except Flat and Standard.  And is flat now the Win7/10 UI standard?  



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