bool ShowDialog() { UpdateBorderSize(); UpdateSecondColumnPosition(); int Result = DoShowDialog(); if (Result == OKButtonID) { SaveValues(); return true; } return false; }
intptr_t ShowDialogEx() { UpdateBorderSize(); UpdateSecondColumnPosition(); intptr_t Result = DoShowDialog(); if (Result >= 0 && Result != m_CancelButtonID) { SaveValues(); } if (m_FirstButtonID >= 0 && Result >= m_FirstButtonID) { Result -= m_FirstButtonID; } return Result; }
intptr_t ShowDialogEx() { UpdateBorderSize(); UpdateSecondColumnPosition(); intptr_t Result = DoShowDialog(); if (Result == OKButtonID) { SaveValues(); } if(Result >= OKButtonID) { Result -= OKButtonID; } return Result; }