Codejock Forums Homepage
Forum Home Forum Home > Codejock Products > Visual C++ MFC > Command Bars
  New Posts New Posts RSS Feed - ReadOnly CXTPControlEdit with spin buttons
  FAQ FAQ  Forum Search   Events   Register Register  Login Login

ReadOnly CXTPControlEdit with spin buttons

 Post Reply Post Reply
Author
Message
cpede View Drop Down
Senior Member
Senior Member


Joined: 13 August 2004
Location: Denmark
Status: Offline
Points: 645
Post Options Post Options   Thanks (0) Thanks(0)   Quote cpede Quote  Post ReplyReply Direct Link To This Post Topic: ReadOnly CXTPControlEdit with spin buttons
    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 (20.3.0)
Platform: Windows 10 (x64)
Language: Visual Studio 2017 (C++)
Back to Top
Oleg View Drop Down
Admin Group
Admin Group


Joined: 21 May 2003
Location: United States
Status: Offline
Points: 11234
Post Options Post Options   Thanks (0) Thanks(0)   Quote Oleg Quote  Post ReplyReply Direct Link To This Post 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
Back to Top
 Post Reply Post Reply
  Share Topic   

Forum Jump Forum Permissions View Drop Down

Forum Software by Web Wiz Forums® version 12.04
Copyright ©2001-2021 Web Wiz Ltd.

This page was generated in 0.141 seconds.