git-svn-id: https://192.168.0.254/svn/Componentes.Terceros.DevExpressVCL@31 05c56307-c608-d34a-929d-697000501d7a
33 lines
1.2 KiB
C++
33 lines
1.2 KiB
C++
//---------------------------------------------------------------------------
|
|
|
|
#include <vcl.h>
|
|
#pragma hdrstop
|
|
|
|
#include "RibbonNotepadDemoGallerySetup.h"
|
|
//---------------------------------------------------------------------------
|
|
#pragma package(smart_init)
|
|
#pragma resource "*.dfm"
|
|
TColorDialogSetupForm *ColorDialogSetupForm;
|
|
//---------------------------------------------------------------------------
|
|
__fastcall TColorDialogSetupForm::TColorDialogSetupForm(TComponent* Owner)
|
|
: TForm(Owner)
|
|
{
|
|
}
|
|
//---------------------------------------------------------------------------
|
|
bool __fastcall TColorDialogSetupForm::GetSettings(bool &RemoveHorizontalItemPadding,
|
|
bool &RemoveVerticalItemPadding)
|
|
{
|
|
chkRemoveHorizontalItemPadding->Checked = RemoveHorizontalItemPadding;
|
|
chkRemoveVerticalItemPadding->Checked = RemoveVerticalItemPadding;
|
|
|
|
bool Result = ShowModal() == 1;
|
|
|
|
if (Result)
|
|
{
|
|
RemoveHorizontalItemPadding = chkRemoveHorizontalItemPadding->Checked;
|
|
RemoveVerticalItemPadding = chkRemoveVerticalItemPadding->Checked;
|
|
}
|
|
return (Result);
|
|
}
|
|
//---------------------------------------------------------------------------
|