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]: Label "Back Color" needed in State#### Designer control(s) #296

Closed
sdreb3421 opened this issue Aug 26, 2021 · 9 comments
Labels
answered This question has been adequately answered. enhancement New feature or request wontfix This will not be worked on

Comments

@sdreb3421
Copy link

All controls in the Standard Toolkit allow setting back color, with the exception of KryptonLabel and KryptonTrackBar. The back color of these items can only be configured via the global palette style, which does not give control over individual items. The default WinForms Label and Trackbar both allow setting back color, so the Krypton versions ideally would too.

@PWagner1
Copy link
Contributor

Hi @sdreb3421

Have you tried editing the StateCommon properties?

@sdreb3421
Copy link
Author

There are no StateCommon properties for back color. For example, the trackbar only has color properties for the track, the slider and the ticks. This is in contrast to the StateCommon properties of all other Krypton controls.

@PWagner1 PWagner1 added enhancement New feature or request new feature A new feature has been requested. labels Aug 26, 2021
@PWagner1 PWagner1 changed the title Label / Track Bar Back Color [Feature Request]: Label / Track Bar Back Color Aug 26, 2021
@Smurf-IV Smurf-IV changed the title [Feature Request]: Label / Track Bar Back Color [Feature Request]: Label "Back Color" needed in State#### Designer control(s) Aug 30, 2021
@Smurf-IV Smurf-IV self-assigned this Aug 30, 2021
@Smurf-IV Smurf-IV added the under investigation This bug/issue is currently under investigation. label Aug 30, 2021
@Smurf-IV
Copy link
Member

Smurf-IV commented Aug 30, 2021

Question:
@Wagnerp @sdreb3421 If this is implemented, then should the Checkbox, LinkLabel, WrapLabel (Maybe others) Also need to have the backcolour styles added ?

"Krypton Components" are normally expected to be placed onto a KryptonPanel so that the theme background is used.. What is the purpose of having even more background control for these small areas.

@PWagner1
Copy link
Contributor

@Smurf-IV That is true, implementing such feature may break other controls, unless the KLabel can be changed to behave more like the Checkbox, LinkLabel & WrapLabel?

@sdreb3421
Copy link
Author

For example, we want to add TrackBars to different areas of our UI where the back color is not identical. And there are areas in our UI where we let the user set the panel BackColor.

If the change was implemented, maybe the default back color could be set to Transparent so it doesn't break anything.?

@sdreb3421
Copy link
Author

@Smurf-IV After reviewing the issue, I think you were right to make the TrackBar back color its own issue. Even though the other controls (Label, CheckBox, etc) don't have a back color setting, they are transparent and take on the color of their parent control.

However, the TrackBar is different. It is not transparent, doesn't have a back color setting, and the global palette BackStyle cannot be set transparent. So maybe close this issue and just continue with #304 .

@Smurf-IV
Copy link
Member

I'm confused.
If the KryptonLabel (And in the example below a KCheckbox) are on a panel, and it has colour gradients etc.
Then by default, those panel colours show through:
image

Have you explicitly set the BackColor of those controls so that it bypasses Kryptons drawing ?
Or, Are you not using a KryptonPanel as the control(s) owner ?

@sdreb3421
Copy link
Author

Your totally right. Check out my previous comment. I believe the only issue is with the TrackBar.

@Smurf-IV Smurf-IV removed their assignment Aug 31, 2021
@Smurf-IV Smurf-IV added answered This question has been adequately answered. wontfix This will not be worked on and removed new feature A new feature has been requested. under investigation This bug/issue is currently under investigation. labels Aug 31, 2021
@Smurf-IV
Copy link
Member

Ok, Closing this, Switching to #304

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
answered This question has been adequately answered. enhancement New feature or request wontfix This will not be worked on
Projects
None yet
Development

No branches or pull requests

3 participants