Codejock Forums Homepage
Forum Home Forum Home > Codejock Products > Visual C++ MFC > Command Bars
  New Posts New Posts RSS Feed - Dynamically Show/Hide Spin Buttons in XTP 10.4
  FAQ FAQ  Forum Search   Events   Register Register  Login Login

Dynamically Show/Hide Spin Buttons in XTP 10.4

 Post Reply Post Reply
Author
Message
Serega View Drop Down
Newbie
Newbie
Avatar

Joined: 03 November 2006
Location: Russian Federation
Status: Offline
Points: 6
Post Options Post Options   Thanks (0) Thanks(0)   Quote Serega Quote  Post ReplyReply Direct Link To This Post Topic: Dynamically Show/Hide Spin Buttons in XTP 10.4
    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!
Back to Top
dandan View Drop Down
Newbie
Newbie
Avatar

Joined: 05 January 2007
Location: Austria
Status: Offline
Points: 9
Post Options Post Options   Thanks (0) Thanks(0)   Quote dandan Quote  Post ReplyReply Direct Link To This Post 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);
Back to Top
Serega View Drop Down
Newbie
Newbie
Avatar

Joined: 03 November 2006
Location: Russian Federation
Status: Offline
Points: 6
Post Options Post Options   Thanks (0) Thanks(0)   Quote Serega Quote  Post ReplyReply Direct Link To This Post 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.
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.