![]() |
Set theme for dynamically created controls |
Post Reply
|
| Author | |
vccomnet
Newbie
Joined: 05 December 2003 Status: Offline Points: 5 |
Post Options
Thanks(0)
Quote Reply
Topic: Set theme for dynamically created controlsPosted: 17 hours 39 minutes ago at 10:19pm |
|
Hello, I encountered a problem: I wanted to dynamically create a CXTPEdit control on a CFormView and set its theme to xtpControlThemeVisualStudio2015. So, I referenced the demo Controls.exe, but the CXTPEdit in Controls.exe was drawn through a dialog box, not dynamically created. Therefore, I dynamically created a CXTPEdit in Controls.exe, but the result was the same as in CFormView: the dynamically created CXTPEdit did not have the xtpControlThemeVisualStudio2015 theme, meaning that when the mouse moved over the Edit, no bright border was displayed, and when the mouse moved away from the Edit, the border disappeared. My Create code and the final effect are shown below. Please help me identify any issues with my code? Thank you | |
vccomnet
Newbie
Joined: 05 December 2003 Status: Offline Points: 5 |
Post Options
Thanks(0)
Quote Reply
Posted: 17 hours 32 minutes ago at 10:26pm |
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 |