Improvements for BaseTable:

- Separator colour can be set
- Fixed column length calculation
- checkboxes are now possible

git-svn-id: https://ja2svn.mooo.com/source/ja2/trunk/GameSource/ja2_v1.13/Build@8802 3b4a5df2-a311-0410-b5c6-a8a6f20db521
This commit is contained in:
Flugente
2020-05-17 14:13:57 +00:00
parent 04a66f8b7c
commit 952408b961
3 changed files with 64 additions and 60 deletions
+9
View File
@@ -204,6 +204,7 @@ public:
CDP_DEFAULT = 0,
CDP_MILITIA_LIST,
CDP_MILITIADETAIL,
CDP_TOGGLE,
} CDP_CALLBACKTYPE;
typedef enum
@@ -355,6 +356,12 @@ public:
void CalcRows();
/*
* Color of separating line element
*/
void SetColorSeparator( UINT16 aCol ) { mColorSeparator = aCol; }
UINT16 GetColorSeparator() { return mColorSeparator; }
private:
void CreateScrollAreaButtons( );
@@ -375,6 +382,8 @@ private:
UINT32 mFirstEntryShown;
UINT32 mLastEntryShown;
UINT16 mColorSeparator;
std::vector<ColumnDataProvider> mColumnDataProviderVector;
};