Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Themes (via KryptonManager design option) should have option to resepect Current Metrics for Form Border widths #139

Closed
Smurf-IV opened this issue Jun 4, 2021 · 1 comment
Labels
area:themes All things to do with themes. completed This issue has been completed. enhancement New feature or request
Milestone

Comments

@Smurf-IV
Copy link
Member

Smurf-IV commented Jun 4, 2021

This is where that property is

[DllImport("user32.dll")]
static extern int GetSystemMetrics(92);

CXPADDEDBORDER = 92, // 0x5C

Originally posted by @lorinkundert in #114 (comment)

Other values to consider:
https://pinvoke.net/default.aspx/Enums/SystemMetric.html

/// <summary>
        /// The width of a window border, in pixels. This is equivalent to the SM_CXEDGE value for windows with the 3-D look.
        /// </summary>
        SM_CXBORDER = 5,
/// <summary>
        /// This value is the same as SM_CXFIXEDFRAME.
        /// </summary>
        SM_CXDLGFRAME = 7,
/// <summary>
        /// The width of a 3-D border, in pixels. This metric is the 3-D counterpart of SM_CXBORDER.
        /// </summary>
        SM_CXEDGE = 45,

        /// <summary>
        /// The thickness of the frame around the perimeter of a window that has a caption but is not sizable, in pixels.
        /// SM_CXFIXEDFRAME is the height of the horizontal border, and SM_CYFIXEDFRAME is the width of the vertical border.
        /// This value is the same as SM_CXDLGFRAME.
        /// </summary>
        SM_CXFIXEDFRAME = 7,
@Smurf-IV Smurf-IV added enhancement New feature or request area:themes All things to do with themes. labels Jun 4, 2021
@Smurf-IV Smurf-IV self-assigned this Jul 25, 2021
@Smurf-IV Smurf-IV added the under investigation This bug/issue is currently under investigation. label Jul 25, 2021
@Smurf-IV Smurf-IV removed their assignment Jan 9, 2022
@Smurf-IV Smurf-IV removed the under investigation This bug/issue is currently under investigation. label Jan 9, 2022
@Smurf-IV Smurf-IV self-assigned this Dec 24, 2023
@Smurf-IV Smurf-IV added the in progress A fix for this issue is in the works. label Dec 24, 2023
@Smurf-IV
Copy link
Member Author

example

Smurf-IV added a commit that referenced this issue Dec 24, 2023
…om `Current Metrics`

- Fix fallout from changes
- A few nullables
- KryptonManager designer `IsDefault` visibility fix
- Update "Breaking Changes"

#139
#124
Smurf-IV added a commit to Krypton-Suite/Standard-Toolkit-Demos that referenced this issue Dec 24, 2023
@Smurf-IV Smurf-IV removed their assignment Dec 24, 2023
@Smurf-IV Smurf-IV added completed This issue has been completed. and removed in progress A fix for this issue is in the works. labels Dec 24, 2023
@Smurf-IV Smurf-IV added this to the Version 90 milestone Dec 24, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area:themes All things to do with themes. completed This issue has been completed. enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant