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:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user