CComponentsItem/Form: add var for real item position

If items are used in forms it can be usefully to have a variable
which contains the real position on screen.
This can happen e.g. if an item contains separate render methods, because within forms
usual x/y values related to form dimensions and be converted.
This commit is contained in:
2013-04-10 17:49:48 +02:00
parent 546b04b846
commit 62efe2cb59
3 changed files with 13 additions and 2 deletions

View File

@@ -54,6 +54,7 @@ void CComponentsItem::initVarItem()
//CComponents
initVarBasic();
cc_item_index = CC_NO_INDEX;
cc_item_xr = cc_item_yr = -1;
}
// Paint container background in cc-items with shadow, background and frame.