CodePudding user response:
Inventory is estimated two methods,1, modify cxCalcEdit source, cxMinCalcBtnWidth
The unit cxCalc;
{$I cxVer. Inc}
Interface
USES the
Types, Windows, Messages,
SysUtils, Classes, Graphics, Controls, Forms, StdCtrls, Clipbrd,
CxClasses cxControls, cxContainer cxGraphics, cxDataStorage, cxDataUtils,
CxButtons cxEdit, cxDropDownEdit cxEditConsts, cxFormats, cxLookAndFeelPainters,
CxTextEdit, cxFilterControlUtils dxFading;
Const
CxMaxCalcPrecision=cxEditDefaultPrecision;
CxDefCalcPrecision=cxMaxCalcPrecision;
//the Size
CxMinCalcFontSize=8;
CxCalcMinBoldFontSize=10;
CxMinCalcBtnWidth=28;
CxMinCalcBtnHeight=22;
CxMinCalcLargeBtnWidth=Integer (Trunc (1.7 * cxMinCalcBtnWidth));
CxMinCalcXOfs=3;
CxMinCalcYOfs=3;
CxMinCalcWidth=(cxMinCalcXOfs + cxMinCalcBtnWidth) * 6 + cxMinCalcXOfs * 3 + 3;
CxMinCalcHeight=(cxMinCalcYOfs + cxMinCalcBtnHeight) * 5 + cxMinCalcYOfs + 3;
2, custom PopupControl