CWinCtrlContainer¶
Script: CONTAINER
It is a control for grouping multiple controls .
Size of the container is determined by the SIZE. The size of the virtual screen is determined by CONTENTS_SIZE.
When virtual screen size is larger than the display size , it is possible to scroll the controls included area.
Callbacks arriving at :class:`CWindowBase<CWindowBase>`
void onDrag(CWinCtrlBase cCtrl,Vector2 pos,Vector2 dragVelocity)
Called when you scroll . Even if you lock the scroll , this callback is called .
void onDrop(CWinCtrlBase cCtrl,CWindowBase cDragWindow,CWinCtrlBase cDragCtrl)
Example of use
// get control
CWinCtrlContainer ctnMap = find<CWinCtrlContainer>(CONTAINER_Map);
// Get TEXTURE(Map) from within content
// Content in the container can be accessed by find as follows
CWinCtrlTexture txMap = find<CWinCtrlTexture>(TEXTURE_Map);