Login  
Search All Forums
Dart Home | PowerWEB TextBox for ASP.NET | Custom Development Reply | PowerWEB TextBox for ASP.NET Topics | Forums   
AuthorForum: PowerWEB TextBox for ASP.NET
Topic: Text automatically justified in Textbox with no Toolbar
Daniel.Clar@supelec.fr
Daniel.Clar@supelec.fr

From: Gif-sur-Yvette, France
Posts: 4
Member Since: 01/28/07
posted March 8, 2008 12:44 PM

I use an HtmlBox with the toolbar not visible.

I want that the text entered in the Textbox should be automatically justified.

Which attribute should be set/modified ?

Thank you for your help

Daniel
K M Drake



From: Utica, NY USA
Posts: 3406
Member Since: 07/14/00
posted March 10, 2008 12:50 PM

Hi Daniel,
There is no property you can set to do this.

However, if you always want to text to be right-justified, you could overwrite the control's client-side focus event to call the function that right-justifies.

For example, if you add this script after the control on the page:

<script>
pwCurHtmlBox.oldFocus = pwCurHtmlBox.focus;
pwCurHtmlBox.focus = function(){this.oldFocus();pwFormatRightJustify();}
</script>

Hope it helps,
-ken
Daniel.Clar@supelec.fr
Daniel.Clar@supelec.fr

From: Gif-sur-Yvette, France
Posts: 4
Member Since: 01/28/07
posted March 11, 2008 2:28 PM

Thank you.

is pwFormatjustify() the right function for both left and right justification ?

Regards

Daniel
K M Drake



From: Utica, NY USA
Posts: 3406
Member Since: 07/14/00
posted March 11, 2008 4:27 PM

Hi Daniel,

pwFormatJustify()

This should work.
The text must span multiple lines to see the effect.
-ken
Reply | PowerWEB TextBox for ASP.NET Topics | Forums   
This site is powered by PowerTCP WebServer Tool PowerTCP WebServer for ActiveX