Text alignment inside custom text frame

I created a custom text frame by combining a triangle and a rectangle using Pathfinder->Add but when I added text, this is how it looked --  but I wanted it to look this way.

Ketchapay2 wrote:
Thanks! I'll try that now. UPDATE: When I applied rounded corners, it also rounded the pointer which is supposed to be sharp.
Well, that used to work, I think.
In any case, I just tried something else and it seems to work. Make the round corner text frame and the the triangle as you did before. Put the triangle BEHIND the text frame and make the shape. There is however, another potential problem to this technique -- the text will want to flow into the triangle area. I don't think this is escapable without either putting the text into a seond rectangular frame in front, or adding an empty frame in the triangular area and applying text wrap to push the text back into line.
Peter

Similar Messages

  • Rich Text Editor with Custom Text Attribute

    Hello All,
    We are using the latest version of Oracle Portal 10G. I have a need to create custom Attributes of the type text to let people enter a lot of text. But when User are in edit mode of an item where this custom attribute is used, the Rich Text Editor is not shown for entering the Text for the Custom Text Attribute. It shows a normal html text area. Has anyone ever used RTE with Custom Attribute?
    I request you guys for help.
    Thanks.

    The Problem with the Custom Attribute is not solved, but I have now compromised with the Situation and now I am not using a Custom attribute.
    Rather, Now I am creating a Custom Item Type using Base Text Type (earlier i wanted to create custom item type at my own without any base item type). In this case now I will not be able to change the Lable of the RTE (that is "Text", when the Custom Item is in Edit Mode), but I hope that my users can understand that much.
    I have created a template for portal pages. In the Template I can edit the Region Properties. When I edit the Region property of the region where I want to display my Custom Items. I get two Tabs on the top, Main and Attributes/Style. ON the main tab I can tell what type of region it should be, width etc, in my case it is item type region. And on the Attributes/Style tab, I can select from the availabe Attributes as which all Attributes I want to display. Here if i select only "Associated Functions" Attribute then normally portal should not render anything by default on the Page. It should rather make a call to the procedure which is associated with the Custom Item and as when I was creating the custom item type, I had clicked on "Display Procedure Results With Item", so portal should now display the result of my Procedure. So far it works without problem.
    But the problem is that the Portal displays the text at its own also. As i have written that Portal should not display anything at its own, this doesn't work in this version of Portal for a Custom Item Type that is made using Base Text Item Type. For all others it has worked till now (I have create 50s of Custom item types).
    You can better understand by going to the following URL. Just have a look between the two dotted lines (Dotted line is also a seperate Custom Item Type). Between the two Dotted Lines is a custom item, in general it would be a Custom News Item having title, image and so on.
    http://sunnode1.edvz.sbg.ac.at:7778/portal/page?_pageid=79,56047&_dad=portal&_schema=PORTAL
    I have really programmed a lot with portal but now at this stage where I am near to end, I am getting problems which are coming from Product. I request you for help.

  • How can i put text/chars inside a text area inside a JScrollPane?

    ive tried:
    receipt.setText("blah blah") // but it does not work. all i get is still a blank text area inside a JScrollPane
    JTextArea receipt;
    JScrollPane sp;
    receipt = new JTextArea();
    sp = new JScrollPane(receipt,JScrollPane.VERTICAL_SCROLLBAR_ALWAYS,JScrollPane.HORIZONTAL_SCROLLBAR_NEVER);

    mstrnew = new JButton //this should clear receipt
    if(evnt.getSource()==mstrnew)
                  order.setText("");
                  price.setText("");
                  total.setText("0.0");
                  cash.setText("");
                  change.setText("");
                  mstrtotal = 0;
                  JOptionPane.showMessageDialog(null,"              Starting New Transaction...","",JOptionPane.PLAIN_MESSAGE);    receipt.setText("");}
    else if(evnt.getSource()==vm1)
                  generate("           2pc. Chicken Strips Meal\n");
                  order.setText("2pc. Chicken Strips");
                  price.setText("61.0");
                  mstrtotal = Double.parseDouble(price.getText()) + Double.parseDouble(total.getText());
                  total.setText(String.valueOf(mstrtotal));
    // scrollpane part
                 receipt = new JTextArea();
                 receipt.setEditable(true);
                 //receipt.setLineWrap(true);
             up = "\n          YUM! Brands Corporation, Kentucky Fried Chicken ?\n                       KFC LaSalle Branch, Taft Ave., Manila\n\n           88788   TIN-209-670-390-002   REG VAT   POS#113\n           SN:41-HK170 All prices were subjected of 12% VAT.";
             mid = "\n\n";
             down = "\n";
             complete = up+mid+down;
             receipt.setText(complete);
             sp = new JScrollPane(receipt,JScrollPane.VERTICAL_SCROLLBAR_ALWAYS,JScrollPane.HORIZONTAL_SCROLLBAR_NEVER);
    public void generate(String z)
             mid += z;
             complete = up+mid+down;
        }Message was edited by:
    ice3d

  • Threading text boxes inside of text boxes

    I'm currently working on a book where the client has requested that certain sections of text are inside a gray box. I figured I could but that text inside a text box and place that text box inside the main body of text, so the box is uniform and not a floating shape behind the text box that I need to worry about during editing. However, I run into issues when the gray box text spans more than one page. Is there a way to thread text boxes that are placed inside another text box? The little box is there on the corner of the gray text box but I cannot click it to thread it to another 'placed' gray text box. I'm also open to other solutions.
    I'm currently working with Adobe InDesign CS6.

    Unfortunately, no.

  • How can I embed a text field inside a text object in a fillable form?

    I am a new user of LiveCycle and am slowly figuring things out.  I don't really understand any of the scripts-- thatlevel is way beyod me.  I am hoping that someone can tell me an easy way to insert a fillable text field into a text object.  I have been assigned a huge project of converting some very old Word forms into fillable PDF forms.  I have done okay with many of them, but ran into a snag with some of the form letters that our employees need to fill out.  Basically, there is a block of text (the body of the letter) in which employees will need to be able to type in a date that the recipient of the letter must respond by.  I have read up on floating fields and thought that was the solution to my problem, but it seems that floating fields are really just meant to be filled from a data source rather than having info typed into them.
    Can anyone help-- I am desperate at this point. There has to be an easy way to insert a fillable text field object or a Date/Time object into a block of text so that the surrounding text will expand and contract around the length of the date entered (this is important, as many of these letters pertain to legal matters and cannot have blank spaces in them).

    Hi,
    You can split your text object into different parts and place text fields inbetween the parts. With a little manuvering, you can make it look good.
    An alternative is to place text field(s) outside the letter body (and set the visibilaty to screen only). Use these to populate the floating field.
    or
    script the external text fields (or the subform containing them) to be "hidden" using the "Preprint" event, then revealing them ("visible") again using the "Postprint" event.
    Hope this helps, good luck!
    Stephen

  • Find the width of a text string inside a text box?

    Hi,
    I have a text box with a long text string in it. I would like to know what the width of the text string is so that I can scroll it inside the textbox using the text box scrollviewer.
    var sv = this.foodieItemText.GetFirstDescendantOfType<ScrollViewer>();
    sv.ScrollToHorizontalOffsetWithAnimation(this.foodieItemText.Width, 20);
    The scrolling works fine but I don't know what value to use for the width offset in the first argument to ScrollToHorizontalOffsetWithAnimation. For my purposes I want it to scroll the full length of the text string (which is longer than the actual with of
    the text box). Any ideas?

    Hi duffybr,
    Yes, there is a ScrollViewer inside TextBox template and we could scroll to the specific position as we need, however there is no direct way to get the string width in TextBox, however we could get the width in TextBlock, by measure method.
    See this discussion for more information:
    http://stackoverflow.com/questions/9126076/how-can-i-calculate-the-width-of-a-string-in-metro-without-displaying-it
    Besides, there are some third party libraries help us get the String width.
    --James
    We are trying to better understand customer views on social support experience, so your participation in this interview project would be greatly appreciated if you have time. Thanks for helping make community forums a great place.
    Click
    HERE to participate the survey.

  • Text align bottom, fill text upwards

    Hi,
    Is it possible to align text within a textbox to the bottom and fill it upwards?
    Serge.

    I know exactly what you are trying to achieve but really can't find the option to do so..? Like I said in my first post, Adobe says it does but I just cant find it as an option. Sorry.
    The only other way you could achieve this is to adjust the baseline shift...

  • Is it ossible to have FF support DHTML? AND also change it so that it would open a 'text area' INSIDE another 'text area? Anyway, how come it lack support for DHTML?

    When I opened a walkthrough on the game 'Thief', it was written with DHTML, and the author correctly warned me that my browser, i.e. FireFox5, does not support DHTML, and that was the reason I was reading ALL of the hyperlinked paragraphs at once, instead that having them collapsed and only expanded when I clicked the links; not much of a problem; but he warned me that also some of the links redirected to material in other pages, so I was unable to access them, for the same reason: FireFox does not support DHTML. It seem odd to me, given that DHTML is a fairly common script, and old too! Is there any particular reason for this lacking? And there is some other one? I noticed that also with other not so common features, Firefox is missing something, sometime. Thanks so much for any response, and also I would like to see some sort of tech manual on this and other issues, explained.
    All the best, apart from these problems, FF is really stunning.

    When I opened a walkthrough on the game 'Thief', it was written with DHTML, and the author correctly warned me that my browser, i.e. FireFox5, does not support DHTML, and that was the reason I was reading ALL of the hyperlinked paragraphs at once, instead that having them collapsed and only expanded when I clicked the links; not much of a problem; but he warned me that also some of the links redirected to material in other pages, so I was unable to access them, for the same reason: FireFox does not support DHTML. It seem odd to me, given that DHTML is a fairly common script, and old too! Is there any particular reason for this lacking? And there is some other one? I noticed that also with other not so common features, Firefox is missing something, sometime. Thanks so much for any response, and also I would like to see some sort of tech manual on this and other issues, explained.
    All the best, apart from these problems, FF is really stunning.

  • How to print text or field (inside a rep fram)on the last page in report 6i

    Hi Everyone,
    I want to print the text on the last page.
    my text is inside a repetating frame.
    as i want to display page no in the filed
    and if it is a last page, display page number appended with Last
    so it will look like
    for 3 pages
    on the first page
    1
    on second page
    2
    and on last page it should display
    3 Last

    You cannot know if you are on the last page or not. See this similar thread: Get value of total pages variable
    Why not put the page number in the margin like this:
    Page 1 of 3
    Page 2 of 3
    Page 3 of 3
    You do that by creating a text field in the margin. Enter this text:
    Page &<PhysicalPageNumber> of &<TotalPhysicalPages>

  • Text Align and Other annoyances

    I have upgraded from CS3 to CS5 and while i am mostly happy there are some really annoying bugs, features, or pieces of ill thought out logic in Dreamweaver.
    I might be wrong but by default Dreamweaver is a a WYSIWYG editor. Therefore this should make it ideal for editing websites which have text in them. Lets assume that websites include single email campaigns, small static HTML brochure sites, through to large scale CMS websites. In each of these cases i might have the need to align a single piece of text to the right.
    Now DW suggests everything like this should be driven by CSS. In in 90% of cases for general text layout i would agree i.e. default paragraph text size, default alignment, default line spacing, etc. These can then easily be adjusted throughout the website large or small by changing a simple bit off CSS in your style sheet.
    But what if you just need 1 line of text to be different from "default" - CSS is not approrpiate here, and infact it would result in more code to achieve the same goal. why should i have to write a new style into my style sheet, and then link it with a class name, when a simple align="right" will work in that instance. In fact in all instances the chances are that piece of code will be shorter than the class="text-right" definition to apply the CSS (ignoring the CSS code too).
    So why take the align buttons off the property inspector bar? Why make the developers life harder when he is using a tool to make it easier?
    Another issue - which probably is more of a bug than anything. In code, Shift + Tab should outdent the code right. Highlight a block of code and this works. Why then does doing this for a single line of code delete the code?
    I upgraded from CS3 because i was told that was the worst performing version of creative suite out there. And it was buggy as hell. But i am now finding that CS5 is not a great deal better - this applies through the other products too with Illustrator crashing as much as it ever did, il thought out removed features, etc. I am appalled by the quality of the new CS5 - especially as in my upgrade the fee was a good 30% more expensive than the american alternative.
    And before you ask - the machine where i am experiencing this is more than adequate, Quad Core, 6gig of Ram, and on a fresh install of Windows 7.
    An unhappy customer.

    You may need to adjust your workflow to get the most out of CSS.
    I find it works much better to identify the CSS IDs, selectors and class names I will be using in the site.  This bit of pre-planning gives me a basic stylesheet from which I can grab styles at will and add more to as needed.
    /**BASIC LAYOUT**/
    #wrapper { }
    #header { }
    #content { }
    #footer { }
    /**TEXT STYLES**/
    #header h1 { }
    #content h2 { }
    #content h3 { }
    #content p { }
    #footer p { }
    /**RE-USABLE CLASSES**/
    .floatLt {float:left; width: 40%;}
    .floatRt {float:right; width: 40%}
    .clearing {clear:both}
    .center {text-align:center}
    .right {text-align:right}
    /**LINKS**/
    a { }
    a:link { }
    a:visited { ]
    a:hover,
    a:active,
    a:focus { }
    And if you plug all this into an external CSS file to which your HTML documents are linked, sitewide style changes take a minute or two instead of weeks and hours.
    Nancy O.
    Alt-Web Design & Publishing
    Web | Graphics | Print | Media  Specialists
    http://alt-web.com/
    http://twitter.com/altweb

  • How can I align two different text row in the same table in two different way (one centered and the other one on the left)?

    Hi,
    I want to center two different text row that are in the same table but one on the center and the other one on the left. I put a <span> tag hoping that it has been overwhelmed the table's class properties The .bottomsel's font-family and the .Cig84's font-family and colour work but the text-align don't: they're both on the left.
    These are my source and CSS codes:
    Source:
    <table width="600" border="0">
      <tr>
        <td class="bottomref"><p><span class="bottomsel">| <a href="index.html" target="_self">Main</a> | <a href="about.html" target="_self">About</a> | <a href="clients.html" target="_self">Clients</a> | <a href="contact.html" target="_self">Contact</a> |</span><br />
          <span class="credits">Credits: <span class="Cig84">Cig84</span></span></p></td>
      </tr>
    </table>
    CSS:
    .bottomsel {
      text-align: center;
      font-family: Georgia, "Times New Roman", Times, serif;
    .credits {
      text-align: left;
    .Cig84 {
      color: #F00;
      font-family: "Comic Sans MS", cursive;

    Use paragraph tags with CSS classes.
    CSS:
         .center {text-align:center}
         .left {text-align:left}
    HTML:
    <table width="600" border="0">
      <tr>
        <td class="bottomref">
              <p class="center">This text is center aligned</p>
              <p class="left">This text is left aligned</p>
        </td>
      </tr>
    </table>
    Nancy O.

  • Customizing Text

    Anyone ever experience problems when customizing text. I am renaming a column header in the Daily Report and it accepts it in the 'customize text' module, but does not reflect the change on the form.
    This column has been revised once....is the database doing something (or not) on this one?
    Rick

    I know that CM 13 has a weird behavior when customizing text. The customized text is stored in the database.
    During customization if you revise your entry after applying it, it is recorded as another custom text. You revised two times then you will see two different custom text for the same label in the database. Once you have a couple of different records CM picks one. This could be the right or wrong one.
    Unfortunately you need to "restore default values" and lose all your changes to clear this mess or go to the database table and do a manual clean up.

  • Issue passing values to text symbols in Dynamic text PDF forms

    Hello Everyone,
    I am facing a problem related to Dynamic texts in Adobe PDF forms (Text node of type include text). I am able to pass the dynamic values to the Text node properties but i am not able to pass the values to Text symbols inside the Text node. When tested it says the field not found. I have the same structure and field in the CONTEXT as that of the text symbol. The problem i see is because in PDF the field names have $record.(fieldname) ?
    Please share your thoughts if anyone has faced similar problem or know how to handle it.
    Thanks a million in advance,
    Chandu

    Open the report up in the Designer and Click on Edit, Subreport Links. Likely what you can do is use Shared Variables to pass values from the main report to the subreport.
    You need to do this in the report first. If you are using RAS then you can at runtime. If RAS is not available to you then no way in code.
    See these samples:
    Root Page
    http://wiki.sdn.sap.com/wiki/display/BOBJ/BusinessIntelligence%28BusinessObjects%29+Home
    Enterprise Samples (including managed and unmanaged ras)
    http://wiki.sdn.sap.com/wiki/display/BOBJ/BusinessObjectsSDKSampleApplications
    Non-Enterprise Samples
    http://wiki.sdn.sap.com/wiki/display/BOBJ/CrystalReportsSDKSampleApplications
    Exporting Samples (RAS)
    http://wiki.sdn.sap.com/wiki/display/BOBJ/NETRASSDK+Samples#NETRASSDKSamples-Exporting%2FPrinting
    Also refer to the DSK help files for the Engine or RAS and search on the subreportcontroller.
    If you are using RAS I'll move your post to the SDK forum.
    Thank you
    Don

  • JTable text alignment issues when using JPanel as custom TableCellRenderer

    Hi there,
    I'm having some difficulty with text alignment/border issues when using a custom TableCellRenderer. I'm using a JPanel with GroupLayout (although I've also tried others like FlowLayout), and I can't seem to get label text within the JPanel to align properly with the other cells in the table. The text inside my 'panel' cell is shifted downward. If I use the code from the DefaultTableCellRenderer to set the border when the cell receives focus, the problem gets worse as the text shifts when the new border is applied to the panel upon cell selection. Here's an SSCCE to demonstrate:
    import java.awt.Color;
    import java.awt.Component;
    import java.awt.EventQueue;
    import javax.swing.GroupLayout;
    import javax.swing.JFrame;
    import javax.swing.JLabel;
    import javax.swing.JPanel;
    import javax.swing.JTable;
    import javax.swing.border.Border;
    import javax.swing.table.TableCellRenderer;
    import javax.swing.table.TableColumn;
    import sun.swing.DefaultLookup;
    public class TableCellPanelTest extends JFrame {
      private class PanelRenderer extends JPanel implements TableCellRenderer {
        private JLabel label = new JLabel();
        public PanelRenderer() {
          GroupLayout layout = new GroupLayout(this);
          layout.setHorizontalGroup(layout.createParallelGroup().addComponent(label));
          layout.setVerticalGroup(layout.createParallelGroup().addComponent(label));
          setLayout(layout);
        public Component getTableCellRendererComponent(JTable table, Object value, boolean isSelected, boolean hasFocus, int row, int column) {
          if (isSelected) {
            setBackground(table.getSelectionBackground());
          } else {
            setBackground(table.getBackground());
          // Border section taken from DefaultTableCellRenderer
          if (hasFocus) {
            Border border = null;
            if (isSelected) {
              border = DefaultLookup.getBorder(this, ui, "Table.focusSelectedCellHighlightBorder");
            if (border == null) {
              border = DefaultLookup.getBorder(this, ui, "Table.focusCellHighlightBorder");
            setBorder(border);
            if (!isSelected && table.isCellEditable(row, column)) {
              Color col;
              col = DefaultLookup.getColor(this, ui, "Table.focusCellForeground");
              if (col != null) {
                super.setForeground(col);
              col = DefaultLookup.getColor(this, ui, "Table.focusCellBackground");
              if (col != null) {
                super.setBackground(col);
          } else {
            setBorder(null /*getNoFocusBorder()*/);
          // Set up our label
          label.setText(value.toString());
          label.setFont(table.getFont());
          return this;
      public TableCellPanelTest() {
        JTable table = new JTable(new Integer[][]{{1, 2, 3}, {4, 5, 6}}, new String[]{"A", "B", "C"});
        // set up a custom renderer on the first column
        TableColumn firstColumn = table.getColumnModel().getColumn(0);
        firstColumn.setCellRenderer(new PanelRenderer());
        getContentPane().add(table);
        pack();
      public static void main(String[] args) {
        EventQueue.invokeLater(new Runnable() {
          public void run() {
            new TableCellPanelTest().setVisible(true);
    }There are basically two problems:
    1) When first run, the text in the custom renderer column is shifted downward slightly.
    2) Once a cell in the column is selected, it shifts down even farther.
    I'd really appreciate any help in figuring out what's up!
    Thanks!

    1) LayoutManagers need to take the border into account so the label is placed at (1,1) while labels just start at (0,0) of the cell rect. Also the layout manager tend not to shrink component below their minimum size. Setting the labels minimum size to (0,0) seems to get the same effect in your example. Doing the same for maximum size helps if you set the row height for the JTable larger. Easier might be to use BorderLayout which ignores min/max for center (and min/max height for west/east, etc).
    2) DefaultTableCellRenderer uses a 1px border if the UI no focus border is null, you don't.
    3) Include a setDefaultCloseOperation is a SSCCE please. I think I've got a hunderd test programs running now :P.

  • How to give Bold style inside Single Text Frame

    Hi
    I created a text frame with some text in it. It comes in three paragraphs. First para is the title with two words and below two are small description. All the text is kept in single textframe and I need that to be in single frame only. NOW, I need to bold the first para that is the title with two words. How can I write the code to give bold style to the first paragraph inside that frame? Do I need to take different frame? I want all in single actually. Also I want the entire text frame to give my customized text color.
    Hoping a valuable suggestion
    Thanks in advance.
    Regards
    P

    Dave, Good questions(s)!!! Details below...
    It's CS2. I need to put some text in all (many) documents I work regularly. Instead of copying from the previous file or any other source, as the text is same for all, I thought of writing the script with the text itself. Running that will create text frame and write the text. Got almost but was unable to bold the title of the text which I mentioned earlier as a first paragraph with two words.
    Also I couldn't give the my color swatch to the text.
    Here is my script:
    var myTextFrame = app.activeWindow.activePage.textFrames.add()
    var myParagraph = myTextFrame.paragraphs.item(0)
    var myFont = app.fonts.item("Arial")
    myTextFrame.geometricBounds = ["11.2in", "6in","9.57in","0.5in"];
    myTextFrame.contents = "First Paragraph"
    myTextFrame.parentStory.insertionPoints.item(-1).contents = "\r This is Second paragraph.";
    myTextFrame.parentStory.insertionPoints.item(-2).contents = "\r\rHere comes the Third Paragraph with extra para space";
    myParagraph.parentStory.appliedFont = myFont
    myParagraph.parentStory.pointSize = 8
    myParagraph.paragraphs.item(-1).spaceAfter = "0.05in"
    myTextFrame.fit(FitOptions.frameToContent)
    Hope this answers all your questions. Waiting for valuable solution. Have another question will ask after I got this. For now, two questions 1) making bold first two words 2) font color

Maybe you are looking for

  • Few Issues as a beginer on 'Variables' and  'Web Interface'

    Very very new to BPS.. Dear Friends, I have the following 2 issues ( Actually many.. but this post has restricted to only 2..   ) 1) I have created a Characteristic 'Variable' with User Exit and filled by using FM ZXXXX to with some value on Planning

  • FCP X not recognising .fcpproject or .fcpevent files

    I am unable to open .fcpproject or .fcpevent files using the trial version of FCPX. All the project files were copied onto a Mac (retaining folder structure) from an external hard drive, and now the files are not recognised by the software. Any ideas

  • Cannot export photos from Elements so they will sync on ITunes to IPad

    After I have edited my photos in Photoshop Elements the export button is grayed out so I cannot export my photos like I used to in Lightroom. I can save them but when I try to sync the photos using ITunes to my IPad. the photos are not imported. I ju

  • MAX keep dense function

    Hi Everyone, Rod West explained to me about MAX keep dense here: function:   row_number I have another query to do that could use MAX, so tried this: MAX(Status) KEEP(DENSE_RANK LAST ORDER BY ID||Status ) I want the max status for a student (where a

  • 4.1 update took 5,2 GB

    Anyone else that seen this? When I updated my iPhone from 4.0.1 to 4.1 I lost 5,2GB of free space. Where has this gone?? Help!