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

Text will no longer return the placeholder #60

Conversation

wolframhaussig
Copy link
Contributor

  • instead of relying on the OOTB drawing and missusing the Text property, we custom draw the hint now
  • removed Hint and all hint-related code as we are now using the OOTB property PlaceholderText
  • removed TextForeColor as we can use ForeColor as usual again
  • renamed HintForeColor to PlaceHolderForeColor to align with PlaceholderText

- instead of relying on the OOTB drawing and missusing the Text property, we custom draw the hint now
- removed Hint and all hint-related code as we are now using the OOTB property PlaceholderText
- removed TextForeColor as we can use ForeColor as usual again
- renamed HintForeColor to PlaceHolderForeColor to align with PlaceholderText
Copy link
Contributor

@Nockiro Nockiro left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Some minor remarks, but tests look good functionally. 😄

README.md Outdated Show resolved Hide resolved
wolframhaussig and others added 2 commits February 27, 2024 18:20
Co-authored-by: Robin Freund <[email protected]>
Signed-off-by: wolframhaussig <[email protected]>
…-return-the-hint-when-no-text-is-entered

Signed-off-by: Robin Freund <[email protected]>
README.md Outdated Show resolved Hide resolved
Signed-off-by: Robin Freund <[email protected]>
@Nockiro Nockiro merged commit 9e6a598 into main Feb 27, 2024
@Nockiro Nockiro deleted the bug/59-bug-accessing-stylabletextboxtext-may-return-the-hint-when-no-text-is-entered branch February 27, 2024 18:22
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[BUG] Accessing StylableTextBox.Text may return the hint when no text is entered
2 participants