Print Page | Close Window

ControlSelected event for Gallery Items

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=9531
Printed Date: 08 October 2024 at 10:54am
Software Version: Web Wiz Forums 12.04 - http://www.webwizforums.com


Topic: ControlSelected event for Gallery Items
Posted By: San0k
Subject: ControlSelected event for Gallery Items
Date Posted: 08 February 2008 at 7:44am
Hello,

How I can implement handler for separate CommandBarGalleryItem's?
I have try CommandBars.ControlSelected event, but in e.control.Id I see uid of my Gallery control. And if I swich between gallery items event are not fired

I want implement behavior like Office 2007. (e.g. dynamic changing fonts in Word 2007)

Thanks.

P.S. Sorry for my poor english.



Replies:
Posted By: Oleg
Date Posted: 08 February 2008 at 2:58pm
You need use ControlNotify event.
 
Add these notifications:
 
const UINT XTP_GN_PREVIEWSTART      = 0x1010;
const UINT XTP_GN_PREVIEWCANCEL     = 0x1011;
const UINT XTP_GN_PREVIEWAPPLY      = 0x1012;
const UINT XTP_GN_PREVIEWCHANGE     = 0x1013;


-------------
Oleg, Support Team
CODEJOCK SOFTWARE SOLUTIONS



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