Comments (2)
I Implemented this fix. In file TextBox.cs in function DeleteText at line 477.
Modified CursorPos = m_CursorPos - length to the below. This seems more
sensible. Length often results in a negative index to the string - which is no
good.
public virtual void DeleteText(int startPos, int length)
{
String str = Text;
str = str.Remove(startPos, length);
SetText(str);
if (m_CursorPos > startPos)
{
CursorPos = m_CursorPos - startPos;
}
CursorEnd = m_CursorPos;
}
Original comment by [email protected]
on 4 Aug 2012 at 2:20
from gwen-dotnet.
This change causes strange behavior when you use delete/backspace in the middle
of text.
Original comment by [email protected]
on 11 Aug 2012 at 12:33
from gwen-dotnet.
Related Issues (20)
- Add better constructors for controls HOT 1
- TextBox doesn't accept special characters on FI / Swe keyboard. HOT 4
- OpenTK Unit Tests broken. HOT 3
- Consider adding VerticalSplitter and HorizontalSplitter (source added) HOT 2
- Default skin not loaded HOT 4
- Add MultilineTextBox HOT 3
- 'SFML.LoadingFailedException' occurred in sfmlnet-graphics-2.dll HOT 5
- Patch for OpenTK renderer
- SFML renderer broken HOT 3
- OpenTK render throwing System.Runtime.CompilerServices.ExtensionAttribute exception on mono
- Table layout only works with Labels
- Can't load fonts with SFML Renderer
- Resize arrow are avaible on MessageBox and don't works HOT 1
- Button clicks do not register when clicking on image set by Button.SetImage HOT 1
- Mutliselect Listbox Uses Wrong Texture Offset HOT 1
- UpdateColors inside of Label.cs overwrites custom draw color. HOT 1
- Textboxes cursor incorrectly positioned when using SFML Renderer HOT 1
- Incorrect text rendering
- Tooltip disabling is not working properly.
- Unable to Run Sample SFML
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from gwen-dotnet.