Print Page | Close Window

UpdateAllViews called when deleting characters

Printed From: Codejock Forums
Category: Codejock Products
Forum Name: Syntax Edit
Forum Description: Topics Related to Codejock Syntax Edit
URL: http://forum.codejock.com/forum_posts.asp?TID=19013
Printed Date: 25 April 2024 at 10:30pm
Software Version: Web Wiz Forums 12.04 - http://www.webwizforums.com


Topic: UpdateAllViews called when deleting characters
Posted By: Fredrik
Subject: UpdateAllViews called when deleting characters
Date Posted: 04 October 2011 at 5:55am
I have an application with multiple views where one is a CXTPSyntaxEditView.  When testing v15.1.3 I noticed (for me) an unwanted behaviour: 

If you press backspace to delete a character ALL my views are being updated - for every character you delete. 

This is because when you delete a character range CXTPSyntaxEditCtrl::InvalidateAll() will be called. This function in turn calls

pParentWnd->GetDocument()->UpdateAllViews(NULL, xtpEditHintInvalidate);

which causes all my views to update. 

Of course I could check if lHint == xtpEditHintInvalidate, however this value is 10 which happens to be a value that I also use. 

Version 15.0.2 did not have this behaviour. 

Is this 'as designed' and will not change in future implementation or will there be another fix for it? 

Thanks, 
Fredrik


-------------
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