Setting text to overflow into another text component in flex
This was pretty easy when I've done it in html but I can't find any info on how to incorporate this into flex. I want to get this sort of thing into my app where once the text reaches the bottom it wraps underneath the bottom of the left hand image the way it does in the top product here in this html site:-
http://www.imageproduct.co.uk/acatalog/glass_mirror_tvs.html
I've tried to emulate this and I have a top left container containing all my images which is within a hbox and also within this hbox on the right is my text. The text box has it's height and width set to 100 so it takes up 100% of the h box height wise and the remainder of the width left over from the product image which resizes based on what product is selected. The maxHeight of the h box is set to 400 (my images only go up to this size) but what I want is when the textbox exceeds this it will 'overflow' into another text box below the image/text like in that example. I have no clue how to implement this though.
Can anyone help me out?
Thanks coldMiner,
I tested that. I presume that it can be expanded to go
page1_txt, page2_txt, page3_txt (replacing test_txt and rest_txt)
and so on. And I can see how it works for the text string, but how
do I import an external text file to replace the string?
Thanks,
Art
Similar Messages
-
Calling a view into another Dynpro Component
Hi,
Could you please let me know the steps involved in calling one of the view into another abap webdynrpo applications.
Thanks,
KumarIf you want to use a view from another WD Component, then you have to have a Component Usage for that other view. Have you ever used the ALV Component? If so this is exactly the process that you would follow. You can read more about the techique here:
http://help.sap.com/saphelp_nw70ehp1/helpdata/en/a7/1d8b412bb5b35fe10000000a1550b0/frameset.htm -
Hello there! I need some help with effects in Flex but I
seriosly do not know how to approach this problem. I have two List
components both next to each other one on the left side of my
canvas one on the right. The left List (itemList1) has been
populated with an array of items from the server. The right List
(itemList2) is empty. I want to populate the right List with items
from the left List. I already have it so that its click and drag
and drop that's simple. What I want however is so that when you
just click on an item on the left List the item text, in a flex
effect (or even Flash animation), 'bounces' from the left List into
the right.
There is an example of this in this YouTube video of the
iphone iTunes application when you buy a song the song name bounces
from its position on the list into the 'downloads' section -> .
The desired effect takes place in the 30-34 second time frames.
Is this possible at all??? Any tips/help is greatly
appreciated.
http://youtube.com/watch?v=nKUdjNSGGb4I dont know of a way to do this programmatically without
having to code an animation. That being said, here's my initial
thinking on how I would approach it:
1) Fade the item on the source list out to alpha 0.
2) Display an animation (load a SWF and start its position at
the item in the source list) that moves to the target list.
3) Fade in the item in the target list.
Maybe others can chime in here and suggest alternative
methods.
hth,
matt horn
flex docs -
Embeding WebDynpro component into another webdynpro component
Hi,
I am trying to embed one (embeded) WebDynPro Component in to another(inner) . I have followed the tutorials for Server side eventing at
http://help.sap.com/saphelp_nw04/helpdata/en/24/243ca46e1c334f8a6f8b0792656bc7/content.htm
Here are the steps I did.
1) Created two WebDynpro component "embeded" and "inner" components in a project with two views embededView and innerView respectively.
2) Defined the component usage in "embeded" component.
3) created a viewset at "embeded" component. included embededView and innerView in the viewset.
4) Included required controllers at embededView.
5) Created two button at embededView and linked it to action and wrote code to create the componet using componentusage instance.
But unfortunately i could not able se to any component created i.e the view of inner component is not visible at all.
Could anybody have an answer to the above query.
Regards
AlokHi Alok,
As far i understood the scenario. You want to see/embed one webdynpro view inside another web dynpro view when you click some button in the outer web dynpro view.
Is it correct ?
I had the the following approach.
>created two wen dynpro component in a project.
>define the view for the inner component.
> In the Outer component, i added View Container.
> In the View Container, i embedded Interface View of inner component.
> write some code to view this in the on action event of the button used to display the inner view.
If you are working on the same scenario, it is one method to go
Rgds,
Vilish -
Feature Request: overflow text (threading text into another text box) as in InDesign
I would like to see overflow text (threading text into another text box) as in InDesign
Brilliant. Thanks for the reply. The file I'm using is the same one I've been using as a emplate for about 3 years now, but I've recently upgraded to Windows 8 and re-installed my copy of InDesign onto that, so I could have inadvertantly flicked one of these settings on during setup.
I'll look through the properties or something and see if I can find the language settings.
Thanks Steve, I appreciate your help. :-) -
Textbox shows xml text in working file but now when loaded into another SWF
Hi all,
I have downloaded an xml gallery (as2) as we needed one for an old as2 file. Now I mostly use as3 but thought as I only needed to tweak it there would be no probs. Of course, it rarely works out that way. The problem is, text loaded from the xml file is displayed with its corresponding image. This works fine in the file. When I load the SWF into another SWF however, it all works EXCEPT the text doesn't show at all?? Whoever made the gallery used 'device fonts' in the textbox, I don't know if this has anything to do with it. I tried changing the textbox to dynamic and embedding characters but still nothing.
This seems the key line -
_root.descmc.desc.htmlText = XMLdaten[number];
I have also tried
_root.descmc.desc.htmlText = XMLdaten[number].firstChild;
This traces out the correct xml data when tested so it is finding it okay.
Any help would be much appreciated.
ThanksThe problem might be in the use of the "_root" You probably need to set _lockroot = true; in the loaded swf, otherwise the _root is that of the loading swf, not the loaded one.
-
How do I get the results of 2 text fields and put the output into another ?
I have 2 text fields that multiply off of each other.
My question is, is there a way to get the result of this and put it into another text field? And from that result get another result? Or do I have to get the results from a textarea?I have 2 text fields that multiply off of each other.I assume this really means you want to have something else multiply the contents of the two text fields. When you are using an object-oriented language, it is helpful if you consider what objects are responsible for what actions. Loose descriptions lead to confusion.
My question is, is there a way to get the result of
this and put it into another text field? And from
that result get another result? Or do I have to get
the results from a textarea?Assuming that your "text field" is a Swing text component (and not, say, an HTML text field) then it has a getText() method that returns the contents as a String. If you plan to multiply this by something then you'll want to convert it to an int or a double or maybe a BigInteger or a BigDecimal object. Are we on the right track here? -
Hi there,
I am working on my thesis with several Pages documents (for the first time). And I really have searched all over the Internet to find an answer to exactly my question but I cannot find it.
First my question was: How can I import one Pages document into another one? I found the answer on that (I think) and there is nothing else than just make a new section and copy/paste it in.
But then another issue pops up: I cannot [cmd]+A my whole document including the texboxes to paste it in the other Pages document. Then the document will be paste without the textboxes (and I have quite a lot of them in that document) and the text will not be at the right place.
So please explain to me: How I can combine two Pages documents and keep them exactly the way they are? Is that even possible?
I thank you so much in advance!Hi Fruhulda,
I have already tried to mark the textboxes in line but that did not work, and besides then the text and the boxes won't be at the rigt places either. Thank you for your reply . -
Copying a standard text into another text in so10
Hello Gurus,
I have an issue where i need to track offer letter,i have a standard text which is been automatically used in pb40 while generating offer letter and that is ww-offer-contract in which i need to change the code ( in textid palt )but it is read only document. i need to copy the text into another text.So that i can do the changes required in that.
If i go with Utilities-->copy from client then it is allowing me to copy but not allowing me to change into it.it is giving me the dump.Since it is asking for the permission,i went for stop protection.but still it is giving me the dump.
Any one plzz help me out with this.
Thank you all.
Edited by: BHAVANI MADIREDDY on Feb 12, 2008 12:34 PMThere is a selection screen parameter
parameters: par_bi like rfpdo1-f100buch default ' '.
Comment this and declare a variable and pass 'X' or space into that as per the requirement. -
Acrobat X Pro makes text disappear from a page when I insert that page into another PDF
I printed a single page Microsoft Project schedule to PDF using Acrobat X Pro. All good. I then inserted that one page into another PDF document using Tools/Insert Pages/Insert from File. Much of the text in the inserted page goes missing after inserting that page into the other PDF document. How do I prevent this disappearing text problem?
Does the inserted page have a lot of markup? I do not think the markup will insert.
-
My Friend has a iphone and when i change the setting text messege into imessege it keeps saying text message, even though i changed it.
iMessage must be enabled on the sender and receivers iDevice.
-
Revision: 8024
Author: [email protected]
Date: 2009-06-19 16:59:25 -0700 (Fri, 19 Jun 2009)
Log Message:
Fixed an injection where setting the 'content' property of Spark text component to a TextFlow would cause you to get a TextFlow nested inside a TextFlow.
QE Notes: None
Doc Notes: None
Bugs: SDK-21906
Reviewer: Carol to review
Ticket Links:
http://bugs.adobe.com/jira/browse/SDK-21906
Modified Paths:
flex/sdk/trunk/frameworks/projects/flex4/src/spark/primitives/RichEditableText.as
flex/sdk/trunk/frameworks/projects/flex4/src/spark/primitives/RichText.asWell, I've already solved one of the two issues
In order to display the icons on my buttonbar buttons, I just needed to point at {hostComponent.data.data} instead of {hostComponent.data}. I'm not sure why, but {hostComponent.data} in my skin class is a handle on my instance of ButtonBarButton, not its "data" property. Any explanation is welcomed
I still have got the first issue though. Oddly enough my design works if I put an mx Image instead of the spark BitmapImage for the client logo. That will do the trick for the moment but I'd prefer to deliver a 100% pure spark component in my prototype, and I can see no reason why BitmapImage works inside my ButtonBarButtons and doesn't otherwise... -
Passing text component to methods
I have a method that reads a file and output puts it to a JTextArea. Everything is working fine but I am wondering if I can pass an object from a class above JTextArea (like TextComponent). Looking for a generic feel with whatever text based component I passed...will this make a difference with lightweight and heavyweigth components (swing vs. awt)? Or even streams for that matter? Will byte and character streams act differently?
What is the super class of all text based gui components?
What is the super class of all streams?
Yes I have read the java api doc on streams and using swing! ThanksYou have me until
Everything is working fine but I am wondering if I can pass an object from a class above JTextArea (like TextComponent).What are you asking for here?
You want to know if you can pass an object to a method? Yes.
You want to know if you can modify a class further up in JTextArea's hierarchy, so it has a method that passes an object to another method? Yes, by extending it and implementing the functionality you want.
Looking for a generic feel with whatever text based component I passed...will this make a difference with lightweight and heavyweigth components (swing vs. awt)?Not sure what you were asking for in the first place, so I'm unable to help you with this one.
Or even streams for that matter? Will byte and character streams act differently?If you're asking, "When I pass a stream through a method, will it act differently when I use it inside that method?", then I can answer no, it will not. You are passing your stream by reference.
class MyClass {
private Object anObject;
public MyClass() {
anObject = new Object();
MySecondClass secondClass = new MySecondClass(anObject);
class MySecondClass {
private Object theSameObject;
public MyClass(Object argument) {
theSameObject = argument;
}In the above example, anObject was created in MyClass, and passed to the constructor of MySecondClass. The field theSameObject in MySecondClass is set to point to the Object passed into its constructor, which just happens to be the Object anObject created in MyClass. anObject was created in MyClass. theSameObject is essentially the exact same Object in that it references (points to) anObject.
If I'm wrong feel free to call me on it, java gurus.
What is the super class of all text based gui components?AWT or Swing?
If it's AWT, look up the API for an AWT text component, try TextField, and look at the class hierarchy.
If it's Swing, do the same for JTextField. You can easily do some detective work and figure out the super classes of 'text based gui components'.
What is the super class of all streams?You can do the same as above for streams as well.
Yes I have read the java api doc on streams and using swing! ThanksIf you've read the API docs on streams and Swing, then why did you ask the last two questions? Not trying to offend, it just seems kind of wierd. -
Word processing within a text component
Although this is a potentially great application, I am at present prevented from using it to create a website due to the lack, as far as I can determine, of any form of processing individual text within the text components e.g. making individual words or word groups bold or italic or giving them COLORS.
I have large informatory text areas on my pages which need this sort of processing in order to avoid client eyestrain as well as my own.
Of course one can get around this to some extent by using multiple components but for long texts this quickly becomes very tedious and error prone, especially if one wants to copy from another source.
The Static Text component, which I presume is meant for this sort of text, in it's present simple form allows word wrap but no line formatting. The basic Text Area component (multiple lines) has no word wrap but does allow line formatting. However when one sets the Read Only property, it seems that any self created line formatting is duly destroyed. This is strangely not the case with the old Standard Mutliline Text Area component.
I may be missing something but if not I hope that these features may yet be incorporated.
Regards,
DaveYou can use static text to render pure HTML, just set "escape" property to false.
Note that the HTML text must be well former.
Regards. -
Work with JTable cell (check input, set text color)
I have a JTable with data
The task is:
User inputs some data into cell
I want to check his input string for equatily with other values in column
For example, I have these values in column:
1.example
2.exercise
3.execute
User inputs word "execution" in the same column
until user inputs "executi" his input string should be red.
What event I have to listen to if I want to get user input string?
Also a question:
Is there any opportunity to work with cell row (copy it to another JTable) ?
Message was edited by:
Holodi think you should use cell editor as textfield (although that is default for jtable) and then implements document listener and set text color in insert update method.
try this out :-)
Maybe you are looking for
-
Hey guys, quick question. I'm putting together something that is going to end up being 12 dvd's...all separate in their own right. Each dvd will share some of the same chapters...but will still be their own entity. I have all the clips that I'm using
-
I seem to have done something wrong and I'm not sure how to fix this, so any help would be great. I'm new to both Photoshop and Lightroom and am currently working through the Classroom in a Book titles for both applications. I have Lightroom 3.2 and
-
Switch to "full screen" mode is not working (only sound)
Hello, When i watch a video from internat sites and switch to full screen mode - i saw the picture for a moment and than "black screen" - by pressing ESC i returen to the site. Can you help ? Thanks, Itzik I use 3000 N200 Notbook running Vista
-
'Primary Only', I seem to be stuck in it...
I see that other people have had similar problems. I already got caught out by this feature because I didn't know it existed (I'm a newbie, working my way through the manual and a Learn: Aperture video series) - but this time, I do know it exists (th
-
Youtube on MacBook Pro.
I installed adobe flash player twice, and youtube still says I don't have it, but everything else says I do