• Problem with size of custom MFC control when Language is set to Japanes

    From David Partridge@21:1/5 to All on Sat Nov 4 04:14:40 2023
    I look after the DeepSkyStacker application.

    If the system language is set to English, then DeepSkyStacker sets its own language to English, and its "Processing" panel (on the right) is displayed correctly:

    English (how to attach image here)

    If the system language is set to Japanese, then DeepSkyStacker sets its own language to English as there's no Japanese translation done, its "Processing" panel is then displayed incorrectly:

    Japanese (how to attach image here)

    Specifically the "Gradient" slider controls are displayed with a height of 51 pixels whereas when the language is set to English they are only 46 pixels high:

    English Gradient control (how to attach image here)

    Has anyone got any idea what could cause this?

    The dialog definition reads:

    IDD_RGB DIALOGEX 0, 0, 164, 126
    STYLE DS_SETFONT | WS_POPUP | WS_CAPTION
    CAPTION "RGB/K Levels"
    FONT 8, "MS Shell Dlg 2", 0, 0, 0x1
    BEGIN
    CONTROL "Gradient",IDC_REDGRADIENT,"MFCGradientCtrl",WS_TABSTOP,16,3,148,30,WS_EX_CLIENTEDGE
    CONTROL "Gradient",IDC_GREENGRADIENT,"MFCGradientCtrl",WS_TABSTOP,16,35,148,30,WS_EX_CLIENTEDGE
    CONTROL "Gradient",IDC_BLUEGRADIENT,"MFCGradientCtrl",WS_TABSTOP,16,67,148,30,WS_EX_CLIENTEDGE
    PUSHBUTTON "Reset",IDC_RESET,116,112,48,14
    PUSHBUTTON "Apply",IDC_PROCESS,0,112,48,14
    CONTROL "Linked settings",IDC_LINK,"Button",BS_AUTOCHECKBOX | WS_TABSTOP,3,100,63,10
    PUSHBUTTON "",IDC_UNDO,57,112,16,12
    PUSHBUTTON "",IDC_REDO,95,112,16,12
    PUSHBUTTON "",IDC_SETTINGS,76,112,16,12
    PUSHBUTTON "",IDC_RED_HAT,2,5,14,27
    PUSHBUTTON "",IDC_GREEN_HAT,2,37,14,27
    PUSHBUTTON "",IDC_BLUE_HAT,2,69,14,27
    END

    David

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From David Partridge@21:1/5 to All on Sat Nov 4 04:23:16 2023
    English image: <http://perdrix.co.uk/pix/DSS_EN.png>
    Japanese image <http://perdrix.co.uk/pix/DSS_JP.png>
    English gradient control image: <http://perdrix.co.uk/pix/DSS-Gradient.png>

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)