Improve wxRadioBox width on wxMSW
Do not use 'RADIO_SIZE 20' as the fixed width of the radio button, but use the actual width as returned by wxRendererNative. wxRendererNative has no GetRadioButtonSize, so for now use GetCheckBoxSize. It returns the same sizes. Also add a half character width to account for the space between the button and the label. There is no need to add extra width to the label of the static box. Closes #18010.
This commit is contained in:
@@ -100,7 +100,6 @@ WXDLLIMPEXP_BASE void wxSetInstance(HINSTANCE hInst);
|
||||
#define CHECK_IS_FAFA FALSE
|
||||
#define RADIO_CLASS wxT("BUTTON")
|
||||
#define RADIO_FLAGS (BS_AUTORADIOBUTTON|WS_CHILD|WS_VISIBLE)
|
||||
#define RADIO_SIZE 20
|
||||
#define RADIO_IS_FAFA FALSE
|
||||
#define PURE_WINDOWS
|
||||
#define GROUP_CLASS wxT("BUTTON")
|
||||
|
Reference in New Issue
Block a user