CXTPButton displaying flat by default |
Post Reply |
Author | |
rhfritz
Groupie Joined: 19 September 2014 Status: Offline Points: 9 |
Post Options
Thanks(0)
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?
|
|
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 |