[19 Feb 2010] Modifing/reading TextOut-Objects

Contains all messages from the Hollywood mailing list between 01/2006 and 08/2012
Locked
nexus
Posts: 150
Joined: Sun Mar 07, 2010 11:54 am

[19 Feb 2010] Modifing/reading TextOut-Objects

Post by nexus »

Note: This is an archived post that was originally sent to the Hollywood mailing list on Fri, 19 Feb 2010 10:41:35 -0000

Is it possible to get the text as string from a layer which is a "TextOut"-Object? GetAttribute() seems not to give me that information, does it? I want to "click" on a TextOut-Object and then edit its text. Editing/Changing the text is possible, but not retrieving its original text, is it?

Is it possible to change the automatic word wrapping for "TextOut"-Objects? SetLayer(id, {RightMargin=XXX}) does not do the trick? At least, I can't see any affect with RightMargin, so actually, I don't know what it is good for. :-) I want to zoom-in/-out in groups of layers with TextOut-Objects. Zooming in TextOut-Objects is done by changing the fontsize but then, i also need to change the automatic word-wrapping, which can be set during the creation of TextOut-Objects. How can I change its settings for word-wrapping again?

Andreas: Thanks a lot for your permanent work on Hollywood! Also, I felt somehow "guilty" by seeing my real name here in the list because, then, obviously it was me who "forced" you to further enrich Hollywood with new features! (and I feel always uncomfortable by seeing my full real name in the world wide spam web. ;-) )

regards, Tom
User avatar
airsoftsoftwair
Posts: 5830
Joined: Fri Feb 12, 2010 2:33 pm
Location: Germany
Contact:

[20 Feb 2010] Re: Modifing/reading TextOut-Objects

Post by airsoftsoftwair »

Note: This is an archived post that was originally sent to the Hollywood mailing list on Sat, 20 Feb 2010 18:41:38 +0100
Is it possible to get the text as string from a layer which is a "TextOut"-Object? GetAttribute() seems not to give me that information, does it? I want to "click" on a TextOut-Object and then edit its text. Editing/Changing the text is possible, but not retrieving its original text, is it?
It is, use #ATTRTEXT on the layer to get the current text of a text layer.
Is it possible to change the automatic word wrapping for "TextOut"-Objects? SetLayer(id, {RightMargin=XXX}) does not do the trick? At least, I can't see any affect with RightMargin, so actually, I don't know what it is good for. :-)
RightMargin is only recognized by #PRINT layers. But you're right... this should be possible for text out layers, too. I'll add this functionality.
I want to zoom-in/-out in groups of layers with TextOut-Objects. Zooming in TextOut-Objects is done by changing the fontsize but then, i also need to change the automatic word-wrapping, which can be set during the creation of TextOut-Objects. How can I change its settings for word-wrapping again?
You might try Print() instead of TextOut(). Then RightMargin should work.
Andreas: Thanks a lot for your permanent work on Hollywood! Also, I felt somehow "guilty" by seeing my real name here in the list because, then, obviously it was me who "forced" you to further enrich Hollywood with new features! (and I feel always uncomfortable by seeing my full real name in the world wide spam web. ;-) )
Oops, sorry :)
nexus
Posts: 150
Joined: Sun Mar 07, 2010 11:54 am

[22 Feb 2010] Re: Modifing/reading TextOut-Objects

Post by nexus »

Note: This is an archived post that was originally sent to the Hollywood mailing list on Mon, 22 Feb 2010 15:22:10 -0000
It is, use #ATTRTEXT on the layer to get the current text of a text layer.
Ah, very good :-) Then, only the documentation is incomplete here because for TextObjects "#ATTRTEXT" is not mentioned. After explicitely looking for "#ATTRTEXT" I found it beneath "#DISPLAY" with a reference to #TEXTOUT for further explanations :-) (which are missing then ;-) )
RightMargin is only recognized by #PRINT layers. But you're right... this should be possible for text out layers, too. I'll add this functionality.
In that case, the documentation is wrong for #TEXTOUT-objects, because SetLayerStyle() claims that "RightMargin can also be used for text objects and #TEXTOUT objects" and only "LeftMargin is only used for layers of type #PRINT. :-)

Thanks, Tom
User avatar
airsoftsoftwair
Posts: 5830
Joined: Fri Feb 12, 2010 2:33 pm
Location: Germany
Contact:

[26 Feb 2010] Re: Re: Modifing/reading TextOut-Objects

Post by airsoftsoftwair »

Note: This is an archived post that was originally sent to the Hollywood mailing list on Fri, 26 Feb 2010 22:04:19 +0100
Ah, very good :-) Then, only the documentation is incomplete here because for TextObjects "#ATTRTEXT" is not mentioned. After explicitely looking for "#ATTRTEXT" I found it beneath "#DISPLAY" with a reference to #TEXTOUT for further explanations :-) (which are missing then ;-) )
Oops, corrected :)
In that case, the documentation is wrong for #TEXTOUT-objects, because SetLayerStyle() claims that "RightMargin can also be used for text objects and #TEXTOUT objects" and only "LeftMargin is only used for layers of type #PRINT. :-)
The documentation is more advanced than the program :) Of course #TEXTOUT should support RightMargin. I'll add this so the doc finally makes sense :)
Locked