Пример #1
0
//-----------------------------------------------------------------------------------------------
void CDataBrowser::setViewSize (const CRect& size, bool invalid)
{
	if (getViewSize () != size)
	{
		CScrollView::setViewSize (size, invalid);
		recalculateLayout (true);
	}
}
Пример #2
0
void StackedLayout::activateStackedLayout ()
{
#if 1
//  triggerAsyncUpdate ();
#else
  m_active = true;
  recalculateLayout ();
#endif
}
Пример #3
0
//-----------------------------------------------------------------------------------------------
bool CDataBrowser::attached (CView *parent)
{
	bool result = CScrollView::attached (parent);
	if (result)
	{
		recalculateLayout (true);
		db->dbAttached (this);
	}
	return result;
}
Пример #4
0
void ResizableLayout::componentMovedOrResized(Component& component,
  bool /*wasMoved*/,
  bool wasResized) {
  if (&component == m_owner) {
    if (wasResized) {
      recalculateLayout();
    }
  }
  else {
    updateLayoutFor(&component);
  }
}
Пример #5
0
void StackedLayout::handleAsyncUpdate ()
{
  m_active = true;
  recalculateLayout ();
}
Пример #6
0
void StackedLayout::resized ()
{
  recalculateLayout ();
}