Possibility to disable scrolling in a Table
This commit is contained in:
+4
-4
@@ -70,8 +70,8 @@ class Table: public Window {
|
|||||||
friend class Table;
|
friend class Table;
|
||||||
|
|
||||||
public:
|
public:
|
||||||
Body(Table * parent, const rect_t & rect):
|
Body(Table * parent, const rect_t & rect, WindowFlags windowFlags):
|
||||||
Window(parent, rect, OPAQUE),
|
Window(parent, rect, windowFlags),
|
||||||
columnsWidth(parent->columnsWidth)
|
columnsWidth(parent->columnsWidth)
|
||||||
{
|
{
|
||||||
}
|
}
|
||||||
@@ -134,12 +134,12 @@ class Table: public Window {
|
|||||||
};
|
};
|
||||||
|
|
||||||
public:
|
public:
|
||||||
Table(Window * parent, const rect_t & rect, uint8_t columnsCount):
|
Table(Window * parent, const rect_t & rect, uint8_t columnsCount, WindowFlags windowFlags = OPAQUE):
|
||||||
Window(parent, rect),
|
Window(parent, rect),
|
||||||
columnsCount(columnsCount),
|
columnsCount(columnsCount),
|
||||||
columnsWidth(columnsCount, width() / columnsCount),
|
columnsWidth(columnsCount, width() / columnsCount),
|
||||||
header(this, {0, 0, width(), 0}, columnsCount),
|
header(this, {0, 0, width(), 0}, columnsCount),
|
||||||
body(this, {0, 0, width(), height()})
|
body(this, {0, 0, width(), height()}, windowFlags)
|
||||||
{
|
{
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user