mirror of
https://github.com/ultimatepp/ultimatepp.git
synced 2026-08-30 23:02:39 -06:00
EditField: fixed underline issue
git-svn-id: svn://ultimatepp.org/upp/trunk@5932 f0d560ea-af0d-0410-9eb7-867de7ffcac7
This commit is contained in:
parent
f0fde76705
commit
2ede346178
3 changed files with 2 additions and 6 deletions
|
|
@ -15,11 +15,7 @@ static bool StdDisplayErrorFn(const Value& e)
|
|||
return false;
|
||||
String s = GetErrorText(e);
|
||||
#ifdef PLATFORM_WIN32
|
||||
#ifdef PLATFORM_WINCE
|
||||
MessageBox(NULL, ToSystemCharset(s), ToSystemCharset(GetExeTitle()), MB_OK | MB_ICONQUESTION);
|
||||
#else
|
||||
MessageBox(NULL, s, GetExeTitle(), MB_OK | MB_ICONQUESTION);
|
||||
#endif
|
||||
#else
|
||||
fputs(String().Cat() << GetExeTitle() << ": " << s << '\n', stderr);
|
||||
#endif
|
||||
|
|
|
|||
|
|
@ -83,7 +83,7 @@ bool PassWindowsKey(int wParam);
|
|||
LRESULT Ctrl::WindowProc(UINT message, WPARAM wParam, LPARAM lParam) {
|
||||
GuiLock __;
|
||||
eventid++;
|
||||
ASSERT_(!painting, "WindowProc invoked while in Paint routine");
|
||||
ASSERT_(!painting || IsPanicMode(), "WindowProc invoked for " + Name() + " while in Paint routine");
|
||||
// LLOG("Ctrl::WindowProc(" << message << ") in " << ::Name(this) << ", focus " << (void *)::GetFocus());
|
||||
Ptr<Ctrl> _this = this;
|
||||
HWND hwnd = GetHWND();
|
||||
|
|
|
|||
|
|
@ -326,7 +326,7 @@ void EditField::Paint(Draw& w)
|
|||
w.DrawImage(x, (fcy - nullicon.GetHeight()) / 2, nullicon);
|
||||
x += icx + 4;
|
||||
}
|
||||
Paints(w, x, fcy, txt, nullink, paper, nulltext.GetLength(), false, nullfont, false, false);
|
||||
Paints(w, x, fcy, txt, nullink, paper, nulltext.GetLength(), false, nullfont, Null, false);
|
||||
}
|
||||
else {
|
||||
const wchar *txt = text;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue