GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — GitHub - DebugST/STTextBox: STTextBox is a pure GDI-drawn WinForm control, which can support transparent colors and Emoji, etc., and can customize the display style of text through the text style monitor.

BranchesTags
Open more actions menu

Latest commit

 

History

37 Commits
37 Commits

Folders and files

NameName
Last commit message
Last commit date
External
External
 
 
ST.Library.Drawing
ST.Library.Drawing
 
 
ST.Library.UI.STTextBox
ST.Library.UI.STTextBox
 
 
STTextBox.Tests
STTextBox.Tests
 
 
STTextBox
STTextBox
 
 
demos_bin
demos_bin
 
 
.gitignore
.gitignore
 
 
.gitmodules
.gitmodules
 
 
LICENSE
LICENSE
 
 
README.CN.md
README.CN.md
 
 
README.md
README.md
 
 
STTextBox.sln
STTextBox.sln
 
 

Repository files navigation

.Net35 LICENSE

简体中文

STTextBox

STTextBox is a pure GDI-drawn WinForm control, which can support transparent colors and Emoji, etc., and can customize the display style of text through the text style monitor.

STTextBox is a WinForm control drawn by me and my friend tpbeldie using GDI.

We adopt the MIT open source license, and the code is built with .Net3.5 + vs2010, so it is compatible with almost all VS versions. Two open source projects were also generated during the design process:

emoji-svg-render, STGraphemeSplitter

Because of our limited capabilities, many functions are not well implemented, so we modified the core functions into independent interfaces, So that other developers can implement it independently without having to find and modify the code in the entire control.

Emoji

You can use Emoji in STTextBox in the demos_bin we used twemoji. And for more info, you can see: emoji-svg-render

Alpha

In STTextBox all the color you can use alpha, Of course his efficiency is also very slow. We can't solve it well for now.

Style

You can also customize text styles, by implementing the ITextStyleMonitor interface, we have four realities built in. KeyWorldStyleMonitor CSharpStyleMonitor LinkStyleMonitor SelectionStyleMonitor.

Note: The rendering speed of STTextBox has nothing to do with the content, but is related to the number of characters that need to be drawn in the current UI. For some reasons, we use character-by-character drawing. In order for the colors to use the Alpha channel, we don't cache what's being drawn, since the background may change. And doing caching is also a hassle. So we have not considered the rendering speed of extreme cases for the time being.

About Author

  • Github: DebugST
  • Blog: Crystal_lz
  • Mail: ([email protected])
  • TG: DebugST

About

STTextBox is a pure GDI-drawn WinForm control, which can support transparent colors and Emoji, etc., and can customize the display style of text through the text style monitor.

Topics

controlemojigditextboxwinform

Resources

Readme
MIT license
Activity

Stars

33 stars

Watchers

3 watching

Forks

17 forks
Report repository

Releases

Packages

Used by

Contributors

Languages

You are visitor 01402503 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.