m_pImgDouble = m_rFont.drawString( doubleStringWithSep, m_color );
// Update the current image used, as if the control size had changed
- onChangePosition();
+ onPositionChange();
if( m_alignment == kRight && getPosition() &&
getPosition()->getWidth() < m_pImg->getWidth() )
}
-void CtrlText::onChangePosition()
+void CtrlText::onPositionChange()
{
if( m_pImg && getPosition() )
{
}
+void CtrlText::onResize()
+{
+ onPositionChange();
+}
+
+
void CtrlText::CmdToManual::execute()
{
EvtMouse *pEvtMouse = (EvtMouse*)m_pParent->m_pEvt;
void adjust( int &position );
/// Update the behaviour of the text whenever the control size changes
- virtual void onChangePosition();
+ virtual void onPositionChange();
+ /// Update the behaviour of the text whenever the control size changes
+ virtual void onResize();
};