|
@@ -155,11 +155,11 @@ Zeichnung *UIMLView::parseElement( XML::Element *e )
|
|
|
{
|
|
|
TextFeld *t = init.createTextFeld( init.initParam );
|
|
|
if( e->getName().istGleich( "textfield" ) )
|
|
|
- t->setStyle( TextFeld::Style::TextFeld );
|
|
|
+ t->addStyle( TextFeld::Style::TextFeld );
|
|
|
if( e->getName().istGleich( "text" ) )
|
|
|
- t->setStyle( TextFeld::Style::Text );
|
|
|
+ t->addStyle( TextFeld::Style::Text );
|
|
|
if( e->getName().istGleich( "textarea" ) )
|
|
|
- t->setStyle( TextFeld::Style::TextGebiet );
|
|
|
+ t->addStyle( TextFeld::Style::TextGebiet );
|
|
|
t->setText( e->getText() );
|
|
|
if( e->hasAttribute( "font-size" ) )
|
|
|
t->setSchriftSize( (unsigned char)(int)e->getAttributeValue( "font-size" ) );
|
|
@@ -362,6 +362,10 @@ void UIMLView::layout( XML::Element *e, int pWidth, int pHeight )
|
|
|
y = (int)( ( pHeight / 100.0 ) * y );
|
|
|
}
|
|
|
z->setPosition( x, y );
|
|
|
+ if( e->getName().istGleich( "textarea" ) )
|
|
|
+ {
|
|
|
+ ( (TextFeld*)z )->zTextRenderer()->textFormatieren( ( (TextFeld*)z )->zText(), z->getInnenBreite() );
|
|
|
+ }
|
|
|
}
|
|
|
if( z )
|
|
|
{
|
|
@@ -536,4 +540,18 @@ void UIMLView::render( Bild &rObj )
|
|
|
z->render( rObj );
|
|
|
}
|
|
|
}
|
|
|
+}
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
+XML::Element *UIMLView::zDom() const
|
|
|
+{
|
|
|
+ return dom;
|
|
|
+}
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
+XML::Element *UIMLView::getDom() const
|
|
|
+{
|
|
|
+ return dom ? dom->getThis() : 0;
|
|
|
}
|