Window::setInsideParentScrollingArea added
This commit is contained in:
+12
@@ -294,6 +294,18 @@ bool Window::isChildVisible(const Window * window) const
|
|||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
void Window::setInsideParentScrollingArea()
|
||||||
|
{
|
||||||
|
Window * parent = getParent();
|
||||||
|
while (parent && parent->getWindowFlags() & FORWARD_SCROLL) {
|
||||||
|
parent = parent->parent;
|
||||||
|
}
|
||||||
|
if (parent) {
|
||||||
|
parent->scrollTo(this);
|
||||||
|
invalidate();
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
void Window::paintChildren(BitmapBuffer * dc, std::list<Window *>::iterator it)
|
void Window::paintChildren(BitmapBuffer * dc, std::list<Window *>::iterator it)
|
||||||
{
|
{
|
||||||
coord_t x = dc->getOffsetX();
|
coord_t x = dc->getOffsetX();
|
||||||
|
|||||||
+2
@@ -337,6 +337,8 @@ class Window
|
|||||||
return parent && right() >= parent->getScrollPositionX() && left() <= parent->getScrollPositionX() + parent->width();
|
return parent && right() >= parent->getScrollPositionX() && left() <= parent->getScrollPositionX() + parent->width();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
void setInsideParentScrollingArea();
|
||||||
|
|
||||||
void drawVerticalScrollbar(BitmapBuffer * dc);
|
void drawVerticalScrollbar(BitmapBuffer * dc);
|
||||||
|
|
||||||
void drawHorizontalScrollbar(BitmapBuffer * dc);
|
void drawHorizontalScrollbar(BitmapBuffer * dc);
|
||||||
|
|||||||
Reference in New Issue
Block a user