CategoryListForm::CreateCategoryPopup(void)
{
__pCreatePopup = new (std::nothrow) Popup();
- __pCreatePopup->Construct(true, Dimension(600, 300));
+ __pCreatePopup->Construct(true, Dimension(600, 250));
__pCreatePopup->SetTitleText(L"Create Category");
Button* pButtonCancel = new (std::nothrow) Button();
- pButtonCancel->Construct(Rectangle((GetClientAreaBounds().width - 440) / 4, 140, 220, 74), L"Cancel");
+ pButtonCancel->Construct(Rectangle((GetClientAreaBounds().width - 440) / 4, 90, 220, 74), L"Cancel");
pButtonCancel->SetActionId(ID_BUTTON_CANCEL_POPUP);
pButtonCancel->AddActionEventListener(*this);
__pCreatePopup->AddControl(*pButtonCancel);
Button* pButtonSave = new (std::nothrow) Button();
- pButtonSave->Construct(Rectangle((GetClientAreaBounds().width - 430) / 4 + 240, 140, 220, 74), L"Save");
+ pButtonSave->Construct(Rectangle((GetClientAreaBounds().width - 430) / 4 + 240, 90, 220, 74), L"Save");
pButtonSave->SetActionId(ID_BUTTON_SAVE_POPUP);
pButtonSave->AddActionEventListener(*this);
__pCreatePopup->AddControl(*pButtonSave);
Label* pNameLabel = new (std::nothrow) Label();
- pNameLabel->Construct(Rectangle(30, 20, 150, 74), L"Name: ");
+ pNameLabel->Construct(Rectangle(30, 10, 150, 74), L"Name: ");
pNameLabel->SetTextHorizontalAlignment(ALIGNMENT_LEFT);
__pCreatePopup->AddControl(*pNameLabel);
__pNameEditField = new (std::nothrow) EditField();
- __pNameEditField->Construct(Rectangle(170, 20, 350, 74), EDIT_FIELD_STYLE_NORMAL, INPUT_STYLE_OVERLAY);
+ __pNameEditField->Construct(Rectangle(170, 10, 350, 74), EDIT_FIELD_STYLE_NORMAL, INPUT_STYLE_OVERLAY);
__pNameEditField->SetGuideText(L"Group Name");
__pNameEditField->AddActionEventListener(*this);
__pCreatePopup->AddControl(*__pNameEditField);