Print Page | Close Window

Dynamically Show/Hide Spin Buttons in XTP 10.4

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=6122
Printed Date: 04 October 2024 at 9:33pm
Software Version: Web Wiz Forums 12.04 - http://www.webwizforums.com


Topic: Dynamically Show/Hide Spin Buttons in XTP 10.4
Posted By: Serega
Subject: Dynamically Show/Hide Spin Buttons in XTP 10.4
Date Posted: 15 January 2007 at 8:01am
Hi! How dynamically show or hide edit control's spin buttons?  When i  call ShowSpinButtons(), size of CXTPControlEditCtrl is no changed! Thanks!



Replies:
Posted By: dandan
Date Posted: 15 January 2007 at 10:57am
the spinbuttons are - easy speaking: "within" the edit box. - so no size has to be changed.
 
you can enable/disable the spinbuttons with

pControl->ShowSpinButtons(TRUE); or pControl->ShowSpinButtons(TRUE);

or change the whole width of the edit box with pControl->SetWidth(120);


Posted By: Serega
Date Posted: 16 January 2007 at 1:12am
dandan, thanks for reply! You absolutely right, but my task in other. Size of pControl (CXTPControlEdit) must be constant. When i calling ShowSpinButtons(FALSE), spin buttons is Hide, but edit area (presenting by CXTPControlEditCtrl) don't change size. Therefore edit area fill edit control not fully. Thanks once again.



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