![]() |
Handling Spinner control on ribbon bar. |
Post Reply ![]() |
Author | |
Satyen ![]() Groupie ![]() ![]() Joined: 22 December 2008 Location: India Status: Offline Points: 16 |
![]() ![]() ![]() ![]() ![]() Posted: 22 December 2008 at 9:28am |
I want to implement a spinner control on ribbon bar.
I am using ‘CXTPControlEdit’ as my control class. I am able add the control and handle its event using following NotifySpinChanged function.
But I am not able to fire event when mouse wheel is rotated. I.e. changing spin value using mouse scroll. (This functionality is not implemented in Microsoft word also). // Combo box class for Font list. class JTranslucencyCtrl: public CXTPControlEdit { public: virtual CString GetSelecteFont() { return GetEditText(); } virtual void NotifySpinChanged(int incr, int dir) { CString strSelection = GetEditText(); CXTPControlEdit::NotifySpinChanged(incr, dir); } DECLARE_XTP_CONTROL(JTranslucencyCtrl); }; Please let me know, how to handle scroll events? |
|
Thanks & Regards,
Satyenjit Bagal. Software Development Engineer. SIEMENS Automation and Drives. |
|
![]() |
|
ColtSeavers ![]() Newbie ![]() ![]() Joined: 30 October 2007 Status: Offline Points: 4 |
![]() ![]() ![]() ![]() ![]() |
I found a similar issue when using a slider control. The only way I found was to use the CN_UPDATE_COMMAND_UI (OnUpdate...) handler and check for changes in the control's position. I haven't decided whether to leave this in the program for the released version or try and find a better way to handle this.
|
|
![]() |
Post Reply ![]() |
|
Tweet
|
Forum Jump | Forum Permissions ![]() You cannot post new topics in this forum You cannot reply to topics in this forum You cannot delete your posts in this forum You cannot edit your posts in this forum You cannot create polls in this forum You cannot vote in polls in this forum |