Print Page | Close Window

ReadOnly CXTPControlEdit with spin buttons

Printed From: Codejock Forums
Category: Codejock Products
Forum Name: Command Bars
Forum Description: Topics Related to Codejock Command Bars
URL: http://forum.codejock.com/forum_posts.asp?TID=18153
Printed Date: 10 May 2024 at 11:07am
Software Version: Web Wiz Forums 12.04 - http://www.webwizforums.com


Topic: ReadOnly CXTPControlEdit with spin buttons
Posted By: cpede
Subject: ReadOnly CXTPControlEdit with spin buttons
Date 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 (22.1.0)
Platform: Windows 10 (x64)
Language: Visual Studio 2017 (C++)



Replies:
Posted By: Oleg
Date Posted: 05 April 2011 at 4:15am
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



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