mirror of
https://github.com/ultimatepp/ultimatepp.git
synced 2026-07-11 22:03:01 -06:00
RichTextView::NoLazy avoids lazy update of images
git-svn-id: svn://ultimatepp.org/upp/trunk@1061 f0d560ea-af0d-0410-9eb7-867de7ffcac7
This commit is contained in:
parent
925006ab77
commit
b5978f3937
3 changed files with 8 additions and 1 deletions
|
|
@ -26,6 +26,7 @@ private:
|
|||
int highlight;
|
||||
int sell, selh;
|
||||
int cursor, anchor;
|
||||
bool lazy;
|
||||
|
||||
void EndSizeTracking();
|
||||
void SetSb();
|
||||
|
|
@ -88,6 +89,8 @@ public:
|
|||
RichTextView& AutoHideSb(bool b = true) { sb.AutoHide(b); return *this; }
|
||||
RichTextView& HyperlinkDecoration(bool b = true) { hldec = b; Refresh(); return *this; }
|
||||
RichTextView& NoHyperlinkDecoration() { return HyperlinkDecoration(false); }
|
||||
RichTextView& Lazy(bool b) { lazy = b; return *this; }
|
||||
RichTextView& NoLazy() { return Lazy(false); }
|
||||
|
||||
void operator=(const char *qtf) { SetQTF(qtf); }
|
||||
|
||||
|
|
|
|||
|
|
@ -242,7 +242,8 @@ void RichTextView::EndSizeTracking()
|
|||
|
||||
void RichTextView::Layout()
|
||||
{
|
||||
if(IsOpen()) {
|
||||
sizetracking = false;
|
||||
if(IsOpen() && lazy) {
|
||||
sizetracking = true;
|
||||
KillTimeCallback(TIMEID_ENDSIZETRACKING);
|
||||
SetTimeCallback(250, THISBACK(EndSizeTracking), TIMEID_ENDSIZETRACKING);
|
||||
|
|
@ -392,6 +393,7 @@ RichTextView::RichTextView()
|
|||
SetFrame(ViewFrame());
|
||||
AddFrame(sb);
|
||||
NoWantFocus();
|
||||
lazy = true;
|
||||
}
|
||||
|
||||
RichTextView::~RichTextView() {}
|
||||
|
|
|
|||
|
|
@ -37,6 +37,7 @@ Size MakeLogo(Ctrl& parent, Array<Ctrl>& ctrl)
|
|||
w.PageWidth(2900);
|
||||
w.NoSb();
|
||||
w.SetFrame(NullFrame());
|
||||
w.NoLazy();
|
||||
parent.Add(w.TopPos(isz.cy + 3, 99).LeftPos(0, isz.cx));
|
||||
return sz;
|
||||
}
|
||||
|
|
@ -87,6 +88,7 @@ struct AboutDlg : TopWindow {
|
|||
about.RightPos(0, 1000 - isz.cx).VSizePos();
|
||||
about.HMargins(4);
|
||||
about.SetFrame(NullFrame());
|
||||
about.NoLazy();
|
||||
Background(PaintRect(ColorDisplay(), SColorPaper()));
|
||||
Add(about);
|
||||
Title("About TheIDE");
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue