Added SetMaxTextLength method to text widget and textarea widget.

git-svn-id: svn://10.0.0.236/trunk@559 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
kmcclusk
1998-04-23 20:21:24 +00:00
parent cc196705ed
commit 1c46487c8b
7 changed files with 25 additions and 3 deletions

View File

@@ -994,6 +994,7 @@ int APIENTRY WinMain(HINSTANCE hInstance, HINSTANCE hPrevInstance, LPSTR lpszCmd
textWidget->SetFont(font);
nsString initialText("0123456789");
textWidget->SetText(initialText);
textWidget->SetMaxTextLength(12);
NS_RELEASE(textWidget);
y += rect.height + 5;