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 14-Jun-2005, 04:01
Sadia Sadia is offline
New Member
 
Join Date: May 2005
Posts: 4
Sadia is on a distinguished road

Restricting text modifications in text area


I have created a text area using CEdit class in my program.I am dispalying some output in this area.How can I restrict user from modifying this output.
I have disabled insertion in text area by using SetLimitText function.But still user can delete text by using delete or backspace keys and he can also get delete option by right clicking the mouse.What should i do now.Can somebody guide me.Thanks in advance.
  #2  
Old 17-Jun-2005, 19:59
Error's Avatar
Error Error is offline
Junior Member
 
Join Date: May 2005
Posts: 42
Error is on a distinguished road
Why not just use a label?
  #3  
Old 23-Jun-2005, 22:08
Janakiraman Janakiraman is offline
Junior Member
 
Join Date: Apr 2005
Location: Chennai - India
Posts: 47
Janakiraman is on a distinguished road
Hi,

Just use the function

CPP / C++ / C Code:
BOOL SetReadOnly( BOOL bReadOnly = TRUE );

u can use this function using the CButton Object... like mentioned below

CPP / C++ / C Code:
edt.SetReadOnly(TRUE);

//TRUE sets the state to read-only &
//FALSE sets the state to read/write.

Best Regards,
Janakiraman
Last edited by LuciWiz : 26-Jun-2005 at 02:45. Reason: Please insert your C++ code between [c++] & [/c++] tags
  #4  
Old 23-Jun-2005, 22:09
Janakiraman Janakiraman is offline
Junior Member
 
Join Date: Apr 2005
Location: Chennai - India
Posts: 47
Janakiraman is on a distinguished road
Sorry...!! not CButton Object... it is CEdit object..... plz correct it...
 
 

Recent GIDBlogProblems with the Navy (Enlisted) 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
CD Burner Help - Power Calibration Error.... JonBoy420 Computer Hardware Forum 111 19-Feb-2009 03:54
saving html text dopee MySQL / PHP Forum 1 17-Jan-2005 04:15
CD burner wont burn!! robertli55 Computer Hardware Forum 1 18-Jun-2004 10:53
writting text to the view area in mfc vadharah MS Visual C++ / MFC Forum 6 16-Jun-2004 19:29
Yet another CD burner problem: Lite-On LSC-24082K Erwin Computer Hardware Forum 1 22-May-2004 11:28

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

All times are GMT -6. The time now is 18:04.


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