Home » U++ Library support » U++ Widgets - General questions or Mixed problems » DocEdit without end line  
	
		
		
			| Re: DocEdit without end line [message #15697 is a reply to message #15695] | 
			Sun, 04 May 2008 21:48    | 
		 
		
			
				
				
				
					
						  
						bytefield
						 Messages: 210 Registered: December 2007 
						
					 | 
					Experienced Member  | 
					 | 
		 
		 
	 | 
 
	
		There isn't such an option, but simply comment out line 155 from DocEdit.cpp from CtrlLib package. 
Or you can edit DocEdit and add such and option, and in Paint function to check if line under the last line is enabled. 
 
e.g. 
//TextEdit.h
class DocEdit : public TextCtrl {
 ...
bool haveunderline;
DocEdit& HaveUnderline(bool underline = true)
{
    haveunderline = underline;
    return *this;
}
 
 
// DocEdit.cpp
void DocEdit::Paint(Draw& w) {
 ...
// line 155
if (haveunderline)
    w.DrawRect(1, y++, cx, 1, SColorShadow);
 
 
Edit:(u++ core dev's) Shouldn't be there such an option? 
 
Andrei
		
		
  cdabbd745f1234c2751ee1f932d1dd75
		[Updated on: Sun, 04 May 2008 21:51] Report message to a moderator  
 |  
	| 
		
	 | 
 
 
 |  
  
 
Goto Forum:
 
 Current Time: Tue Nov 04 05:53:15 CET 2025 
 Total time taken to generate the page: 0.05110 seconds 
 |