I 'm looking for a way to enlarge the width of a TcxSpinEdit spin buttons to make them usable for touch UI. The spin edit is drawn skinned using a derivate of Office2013White skin.
A fisrt step was to set spin buttons position to sbpHorzLeftRight. But also this cannot be handled fine by touch, so I looked for a way to modify the width of the buttons. But whatever I did, it does not worked: spin buttons hold their size. What steps are needed on skin definition to enlarge the width of the buttons? Or more better, can this be done by code (as the width has to adjust in hidh DPI systems too)?
You can change the width of the TcxSpinEdit's spin buttons using the following approach:
with <AcxSpinEdit>.Properties.Buttons do begin Items.Width := <New width>; Items.Width := <New width>; end;
I hope that this information is helpful.
If you wish to enlarge spin buttons in the TcxSpinEdit controls when the TcxSpinEdit.SpinButtons.Position property is sbpHorzLeftRight, you need to create an editor's descendant and override the TcxSpinEditViewData's CalculateButtonsBounds procedure. Please take a look at the attachment.