Print Page | Close Window

PROBLEM WITH SPINCONTROL

Printed From: Codejock Forums
Category: Codejock Products
Forum Name: Toolkit Pro
Forum Description: Topics Related to Codejock Toolkit Pro
URL: http://forum.codejock.com/forum_posts.asp?TID=11413
Printed Date: 29 January 2025 at 3:01pm
Software Version: Web Wiz Forums 12.04 - http://www.webwizforums.com


Topic: PROBLEM WITH SPINCONTROL
Posted By: Pariksh*t
Subject: PROBLEM WITH SPINCONTROL
Date Posted: 12 July 2008 at 3:00am

hello,

This is pariksh*t
I am implementing spin control in ribbonbar by using the following code--

CXTPControlEdit* pControlEdit = (CXTPControlEdit*)pGroup1->Add(xtpControlEdit, ID_EDITX_SIZEINMB);

pControlEdit->SetStyle(xtpButtonIcon);

pControlEdit->SetWidth(190);

pControlEdit->SetHeight(60);

pControlEdit->ShowSpinButtons(TRUE);

 

Now i want to set initial value in this control

and want to fix the range ....
What shoud i do?
Have i used the correct control?
I have gone through your SkinControls application...
but didnt get how did you set the range
Reply fast plz.
Regards,
pariksh*t.



Replies:
Posted By: Pariksh*t
Date Posted: 14 July 2008 at 2:52am
hello
i find out the solution
we need to handle these events
 

ON_NOTIFY(XTP_FN_SPINUP, ID_EDITX_SIZEINMB, OnSizePlusOrMinus)

ON_NOTIFY(XTP_FN_SPINDOWN, ID_EDITX_SIZEINMB, OnSizePlusOrMinus)

where ID_EDITX_SIZEINMB is ID of edit box.

 




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