Print Page | Close Window

Missing XTP_GN_PREVIEWAPPLY

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=18678
Printed Date: 24 November 2024 at 10:56pm
Software Version: Web Wiz Forums 12.04 - http://www.webwizforums.com


Topic: Missing XTP_GN_PREVIEWAPPLY
Posted By: Fredrik
Subject: Missing XTP_GN_PREVIEWAPPLY
Date Posted: 16 July 2011 at 6:21am
I tried to implement live preview using a CXTPControlComboBoxGalleryPopupBar. It works fine, except I don't receive any  XTP_GN_PREVIEWAPPLY messages. 

To reproduce: use GallerySample, MainFrame.cpp:

ON_NOTIFY(XTP_GN_PREVIEW..., ID_GALLERY_FONT, OnStylesPreview...)
to
ON_NOTIFY(XTP_GN_PREVIEW..., ID_GALLERY_FONTFACE, OnStylesPreview...)

Run the program, change the font and look in the output window - OnStylesPreviewApply is not called.

Solved it myself by overriding CXTPControlComboBoxGalleryPopupBar::OnLButtonUp and added access to m_bPreview in a derived CXTPControlGallery, or am I missing something?


-------------
Windows 10, Visual Studio 20157, Toolkit Pro 18.3.0



Replies:
Posted By: Fredrik
Date Posted: 05 October 2011 at 11:09am
Any news on this? 

To me it sounds like a bug that XTP_GN_PREVIEWAPPLY is not supported by the CXTPControlComboBoxGalleryPopupBar.  (Tested in 15.1.3.)


-------------
Windows 10, Visual Studio 20157, Toolkit Pro 18.3.0



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