Skip to content

This PR fixes some bugs, and adds some nice-to-have features#282

Open
PeteJobi wants to merge 13 commits intoPavelTorgashov:masterfrom
PeteJobi:master
Open

This PR fixes some bugs, and adds some nice-to-have features#282
PeteJobi wants to merge 13 commits intoPavelTorgashov:masterfrom
PeteJobi:master

Conversation

@PeteJobi
Copy link

  • Double-click + drag can now select multiple words, just like it works in notepad. Thanks to this stackoverflow answer.
  • If AllowSeveralTextStyleDrawing is true, applying a style to characters will stack over whatever style was there before (as intended by original author), but if false, applying a style will override whatever style was there before. This fixes styling bugs I encountered.
  • The auto-complete menu can now wrap around when navigating i.e if you press down when you're on the last item, you go to the first item. If you press up when you're on the first item, you go to last item.
  • You can now set ToolTipDuration to 0 to show a tooltip indefinitely.
  • You can choose to use a solid brush for the selected auto-complete item instead of the default gradient brush.
  • You can remove the spacing for icons in the auto-complete menu by setting NoSpacingForIcons to true.
  • If you want the auto-complete menu to show up again automatically after the user selects an item, set ReShowMenuAfterSelected to true.
  • Fixed bug where tooltip shows up for items that don't have tooltips specified.
  • If AutoWidth is set to true, the auto-complete menu will automatically resize its width to fit the items. Use AutoWidthExtraPadding to put some spacing between the right edge of the menu and the widest item. If any tooltip is shown while the menu resizes, it is reshown to adjust its position.
  • Fixed bug with MaxToolTipSize. Before now, the MaxToolTipSize actually sets the width and height of the tooltip, even when the tooltip size is smaller than MaxToolTipSize. Now, MaxToolTipSize only limits the size of the tooltip when it would otherwise exceed it, and the tooltip text wraps around as expected.

PeteJobi added 13 commits March 16, 2026 10:53
…rs will stack over whatever style was there before, but if false, applying a style will override whatever style was there before
… press down when you're on the last item, you go to the first item. If you press up when you're on the first item, you go to last item
…lects an item, set ReShowMenuAfterSelected to true
…y resize its width to fit the items. Use AutoWidthExtraPadding to put some spacing between the right edge of the menu and the widest item. If any tooltip is shown while the menu resizes, it is reshown to adjust its position
…y sets the width and height of the tooltip, even when the tooltip size is smaller than MaxToolTipSize. Now, MaxToolTipSize only limits the size of the tooltip when it would otherwise exceed it, and the tooltip text wraps around as expected
This fork fixes various bugs and enhances features in the original FastColoredTextBox component, including improved selection, styling, auto-complete behavior, and tooltip management.
@PeteJobi PeteJobi changed the title This PR fixes some bugs in the original repo, and adds some nice-to-have features This PR fixes some bugs, and adds some nice-to-have features Mar 16, 2026
@Hexman768
Copy link
Collaborator

There is quite a lot to review here, you'll have to give me some time to go through everything, and we may break it up into separate PRs depending on what features we want.

Thanks for your contribution!

@PeteJobi
Copy link
Author

It's indeed a lot. In retrospect, I should have made separate PRs for each fix/feature.
Take your time and please don't feel pressured to even accept anything. My fork serves my needs.

@Hexman768
Copy link
Collaborator

@PeteJobi Would you be able to provide a link to your project that consumes this component?

I'm planning on putting a link to all project consumers in the README to show all the cool stuff people have done with Pavel's tool!

@PeteJobi
Copy link
Author

PeteJobi commented Mar 17, 2026

Sure! The project is Regexer, a find-and-replace tool. I use the component to highlight matches and the custom pattern syntax. Also for auto-complete menu.

@Hexman768
Copy link
Collaborator

Super cool, Im always curious to see how other people used this control, thanks for providing the link, I'll hopefully have the README updated this weekend.

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.

2 participants