Codejock Forums Homepage
Forum Home Forum Home > Codejock Products > Visual C++ MFC > Toolkit Pro
  New Posts New Posts RSS Feed - PROBLEM WITH SPINCONTROL
  FAQ FAQ  Forum Search   Events   Register Register  Login Login

PROBLEM WITH SPINCONTROL

 Post Reply Post Reply
Author
Message
Pariksh*t View Drop Down
Groupie
Groupie
Avatar

Joined: 26 June 2008
Location: India
Status: Offline
Points: 77
Post Options Post Options   Thanks (0) Thanks(0)   Quote Pariksh*t Quote  Post ReplyReply Direct Link To This Post Topic: PROBLEM WITH SPINCONTROL
    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.
Back to Top
Pariksh*t View Drop Down
Groupie
Groupie
Avatar

Joined: 26 June 2008
Location: India
Status: Offline
Points: 77
Post Options Post Options   Thanks (0) Thanks(0)   Quote Pariksh*t Quote  Post ReplyReply Direct Link To This Post 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.

 

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.063 seconds.