}
-void CtrlSliderCursor::notifyLayout( int width, int height, int xOffSet, int yOffSet )
-{
- if( width > 0 && height > 0 )
- {
- CtrlGeneric::notifyLayout( width, height, xOffSet, yOffSet );
- }
- else
- {
- onPositionChange();
-
- const Position *pPos = getPosition();
- CtrlGeneric::notifyLayout( m_currentCursorRect.width,
- m_currentCursorRect.height,
- m_currentCursorRect.x - pPos->getLeft(),
- m_currentCursorRect.y - pPos->getTop() );
- }
-}
-
-
void CtrlSliderCursor::onUpdate( Subject<VarPercent> &rVariable, void *arg )
{
(void)rVariable; (void)arg;
/// Method called when the control is resized
virtual void onResize();
- /// Method called to notify are to be updated
- virtual void notifyLayout( int witdh = -1, int height = -1,
- int xOffSet = 0, int yOffSet = 0 );
-
-
/// Get the text of the tooltip
virtual UString getTooltipText() const { return m_tooltip; }