give TextEdit new abilities.

This commit is contained in:
Jim Saxton
2015-10-31 12:25:57 -07:00
parent a922aea5b7
commit 9ab5e3addd
4 changed files with 12 additions and 2 deletions

View File

@@ -3796,7 +3796,11 @@ void YabInterface::TextSet(const char* title, const char* option, int value)
myText->SetCaseSensitive((bool)value);
else if(tmp.IFindFirst("tabwidth")!=B_ERROR)
myText->SetTabWidth(value);
else if(tmp.IFindFirst("curser")!=B_ERROR)
myText->Select(value, value);
else if(tmp.IFindFirst("textwidth")!=B_ERROR)
{
// BRect txtframe = myText->TextRect();
// txtframe.right = txtframe.left + value;
@@ -4126,6 +4130,8 @@ int YabInterface::TextGet(const char* title, const char* option)
}
else if(tmp.IFindFirst("countlines")!=B_ERROR)
ret = myText->CountLines();
else if(tmp.IFindFirst("countphysicallines")!=B_ERROR)
ret=myText->CountPhysicalLines();
else if(tmp.IFindFirst("textlength")!=B_ERROR)
ret = myText->TextLength();
else if(tmp.IFindFirst("haschanged")!=B_ERROR)