color.SetAlpha(0);
__pDrawingPanel->SetBackgroundColor(color);
SetControlAlwaysAtBottom(*__pDrawingPanel, true);
- int panelHeight = GetClientAreaBounds().height - __pCommentPanel->GetBounds().height - __pDatetimePanel->GetBounds().height;
- __pDrawingPanel->SetSize(GetClientAreaBounds().width, panelHeight);
+ if (__pCommentPanel != null)
+ {
+ int panelHeight = GetClientAreaBounds().height - __pCommentPanel->GetBounds().height - __pDatetimePanel->GetBounds().height;
+ __pDrawingPanel->SetSize(GetClientAreaBounds().width, panelHeight);
+ }
}
__pCanvas = new (std::nothrow) Canvas();
if (__pSelectedPopUpPanel != null)
{
__pSelectedPopUpPanel->SetBackgroundColor(panelColor);
- __pSelectedPopUpPanel->SetPosition(GetClientAreaBounds().x, __pFormFooter->GetBounds().y - __pSelectedPopUpPanel->GetHeight());
+ if (__pFormFooter != null)
+ {
+ __pSelectedPopUpPanel->SetPosition(GetClientAreaBounds().x, __pFormFooter->GetBounds().y - __pSelectedPopUpPanel->GetHeight());
+ }
}
__pSelectedPopUpLabel = static_cast<Label*>(GetControl("IDC_LABEL_SELECTED_POPUP", true));
if(__pMemoListView != null)
{
pLayout->SetRelation(*__pMemoListView, __pSearchBar, RECT_EDGE_RELATION_TOP_TO_BOTTOM);
+ __pMemoListView->ScrollToItem(0);
+ __pMemoListView->SetEnabled(false);
}
__isSearchRegistered = true;
__pFormFooter->SetShowState(false);
- __pMemoListView->ScrollToItem(0);
- __pMemoListView->SetEnabled(false);
__pSearchBar->ShowKeypad();
}
- __pMemoListView->Invalidate(false);
+ if(__pMemoListView != null)
+ {
+ __pMemoListView->Invalidate(false);
+ }
__pFormFooter->Draw();
return;
}