ReadOnly CXTPControlEdit with spin buttons |
Post Reply |
Author | |
cpede
Senior Member Joined: 13 August 2004 Location: Denmark Status: Offline Points: 668 |
Post Options
Thanks(0)
Posted: 01 April 2011 at 9:58am |
Is it possible to define a xtpControlEdit control with ShowSpinButtons(TRUE), and set it to read only to prevent editing the edit field, but still have the spin buttons to work?
Using ((CXTPControlEdit*)pControl)->SetEditStyle(ES_READONLY) seems to have no effect at all?
Using ((CXTPControlEdit*)pControl)->SetReadOnly(TRUE) prevents input, but does also disable the spin buttons?
-cpede
|
|
Product: Xtreme ToolkitPro (24.0.0)
Platform: Windows 10 (x64) Language: Visual Studio 2017 (C++) |
|
Oleg
Admin Group Joined: 21 May 2003 Location: United States Status: Offline Points: 11234 |
Post Options
Thanks(0)
|
Hi,
There no easy method. Hard method is to create own CXControlEdit derived from CXTPControlEdit, copy OnClick from sources and remove !GetReadOnly() part.
|
|
Oleg, Support Team
CODEJOCK SOFTWARE SOLUTIONS |
|
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 |