Overview
Examples
Screenshots
Comparisons
Applications
Download
Documentation
Tutorials
Bazaar
Status & Roadmap
FAQ
Authors & License
Forums
Funding Ultimate++
Search on this site
Search in forums












SourceForge.net Logo
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 Go to previous messageGo to previous message
bytefield is currently offline  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

 
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: Margin / Spacing of buttons
Next Topic: A main modeless window
Goto Forum:
  


Current Time: Tue Aug 05 15:11:47 CEST 2025

Total time taken to generate the page: 0.03299 seconds