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

[Feature Request]: Track Bar "Back Color" needed in State#### Designer control(s) #304

Closed
Smurf-IV opened this issue Aug 30, 2021 · 8 comments
Labels
completed This issue has been completed. enhancement New feature or request new feature A new feature has been requested. suggestion A suggestion has been requested.

Comments

@Smurf-IV
Copy link
Member

Smurf-IV commented Aug 30, 2021

Splitting this off from #296 to allow focused delivery of component functionality

image

@Smurf-IV Smurf-IV added enhancement New feature or request new feature A new feature has been requested. suggestion A suggestion has been requested. labels Aug 30, 2021
@Smurf-IV Smurf-IV changed the title [Feature Request]: [Feature Request]: Track Bar Back Color [Feature Request]: Track Bar Back Color Aug 30, 2021
@Smurf-IV Smurf-IV changed the title [Feature Request]: Track Bar Back Color [Feature Request]: Track Bar "Back Color" needed in State#### Designer control(s) Aug 30, 2021
@Smurf-IV
Copy link
Member Author

Or "Should be transparent" like the KLabel / KCheckbox (etc.) controls

@Smurf-IV Smurf-IV self-assigned this Aug 31, 2021
@Smurf-IV Smurf-IV added the under investigation This bug/issue is currently under investigation. label Aug 31, 2021
@sdreb3421
Copy link

Making it transparent like KLabel would work. Or handle transparency for the TrackBar.BackStyle palette definition.

@Smurf-IV
Copy link
Member Author

There is a "Hidden" public field

        public Form1()
        {
            InitializeComponent();
            this.kryptonTrackBar15.DrawBackground = false;
        }

I will be making this "public in the designer";

But you can start to use it straight away 👍

@Smurf-IV
Copy link
Member Author

image

@sdreb3421
Copy link

I don't have that property in the designer or programmatically. I checked in the stable and canary versions just to be sure. ???

image

@Smurf-IV
Copy link
Member Author

It is (Was) set to not be browsable, so will not show up in intellisense:

[EditorBrowsable(EditorBrowsableState.Never)]
        [Browsable(false)]
        public bool DrawBackground
        {
            get => !_drawTrackBar.IgnoreRender;
            set => _drawTrackBar.IgnoreRender = !value;
        }

Just type it in and set it.

@sdreb3421
Copy link

Beautiful! I didn't realize intellisense could be set up to hide a public property.

@Smurf-IV
Copy link
Member Author

Done:
image

@Smurf-IV Smurf-IV added this to the November 2021 (Version 6) milestone Aug 31, 2021
@Smurf-IV Smurf-IV added completed This issue has been completed. and removed under investigation This bug/issue is currently under investigation. labels Aug 31, 2021
@Smurf-IV Smurf-IV removed their assignment Aug 31, 2021
Smurf-IV added a commit to Krypton-Suite/Standard-Toolkit-Demos that referenced this issue Aug 31, 2021
- Update Trackbar test app
- Update example image
- Allow rResharper to set body Expressions
for Krypton-Suite/Standard-Toolkit#304
Smurf-IV added a commit that referenced this issue Aug 31, 2021
Smurf-IV added a commit to Krypton-Suite/Standard-Toolkit-Demos that referenced this issue Oct 10, 2021
- Update Trackbar test app
- Update example image
- Allow rResharper to set body Expressions
for Krypton-Suite/Standard-Toolkit#304
Smurf-IV added a commit to Krypton-Suite/Standard-Toolkit-Demos that referenced this issue Oct 10, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
completed This issue has been completed. enhancement New feature or request new feature A new feature has been requested. suggestion A suggestion has been requested.
Projects
None yet
Development

No branches or pull requests

2 participants