GIDForums  

Go Back   GIDForums > Computer Programming Forums > MS Visual C++ / MFC Forum
User Name
Password
Register FAQ Members List Calendar Search Today's Posts Mark Forums Read

 
 
Thread Tools Search this Thread Rate Thread
  #1  
Old 25-Feb-2005, 04:51
njp01u njp01u is offline
New Member
 
Join Date: Jan 2005
Posts: 8
njp01u is on a distinguished road
Thumbs up

Updating CEdit Views


I have created an application using csplitterwnds. Now I would like the changes made to one of the splitterwnds (both ceditviews) to be recognised and propagated to the other view (i.e. if something is typed in one of the views I would also like to see it entered into the other view. I know how to change the views and use the UpdateAllViews(NULL) command to apply these changes. But the problem is recognising when a change is being made (i.e recognising when a character is entered into the editable pane) so I can call this function.

Thanks for any help received!
  #2  
Old 25-Feb-2005, 05:20
njp01u njp01u is offline
New Member
 
Join Date: Jan 2005
Posts: 8
njp01u is on a distinguished road
Or even better, is it possible to only show part of a document a window and hide other parts, but on saving the file the whole document is saved. (i.e. I am displaying a certain section of an XML document and use a tree display to view only a certain section. I want to be able to modify this section but when i hit save i want the changes to be saved to the whole document (including hidden parts), not just the displayed bit). Cheers
  #3  
Old 03-Mar-2005, 14:49
dotygr dotygr is offline
New Member
 
Join Date: Mar 2005
Posts: 6
dotygr is on a distinguished road

Potential solution


Try using the OnChar() override to detect when a character is entered into one pane. You can then make the necessary calls to update the other. Unfortunately, I have found that OnChar() override does not work with all types of controls, so this may not work for you.
 
 

Recent GIDBlogMeeting the local Iraqis by crystalattice

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
CEdit line retrieval aie0 MS Visual C++ / MFC Forum 4 30-Jan-2005 23:20
Problem with the function creating updating a linked list nkhambal C Programming Language 3 28-Oct-2004 20:45
Dialog based application : updating Frandy MS Visual C++ / MFC Forum 1 27-Sep-2004 07:48
kernel compiling & Geforce updating crystalattice Computer Software Forum - Linux 5 16-Jun-2004 07:38
Mozilla Views and alternate CSS styles JdS Computer Software Forum - Linux 0 06-Oct-2002 18:24

Network Sites: GIDNetwork · GIDWebHosts · GIDSearch · Learning Journal by J de Silva, The

All times are GMT -6. The time now is 06:25.


vBulletin, Copyright © 2000 - 2008, Jelsoft Enterprises Ltd.