Display a text in multiple lines inside a button

I have a toggle button bar containing many buttons as follows:
<mx:ToggleButtonBar id="menu"               
     itemClick="clickButton(event)"
     styleName="myToggleButtonBarStyle"/>
The styles apllied are :
<mx:Style>
          .myToggleButtonBarStyle {
               button-style-name: "buttons";  
               vertical-center:0;
     .buttons {
          text-selected-color: #14476c;
          text-roll-over-color: #14476c;
          up-skin: Embed(source="/phase_grey.png");
          over-skin: Embed(source="/phase_blue.png");
          down-skin: Embed(source="/phase_blue.png");
          selected-up-skin: Embed(source="/phase_blue.png");
          selected-over-skin: Embed(source="/phase_blue.png");
          selected-down-skin: Embed(source="/phase_blue.png");
          padding-left:45;
          padding-right:30;
     </mx:Style>
My problem is that when I have a long text, it is displayed in one ligne so the button get larger. I do not want my button to get larger it has to keep the initila size (my button is an image). I want indeed to display the text in multiple lines rather than only one.
How to do this?
Thank's in advance

These links on multi-line buttons in Flex should answer your question:
http://blogs.adobe.com/aharui/2007/04/multiline_buttons.html
http://www.igorcosta.org/?p=73
http://www.nabble.com/Is-it-possible-to-make-multiline-Button--td7508988.html
http://electro-bunny.blogspot.com/2009/02/creating-multiline-button-in-flex.html
If this post answers your question or helps, please mark it as such.

Similar Messages

  • Display a text with many lines

    is within WD UI Element availablw where by I can display a text with many lines ?
    Regards
    Marco M

    Hi,
    TextEdit uielement is available, which is like a text area; user can enter free text in para's,multiple lines ,etc.
    Steps:
    Like any other uielement, right click and insert the textedit uielement on your view.
    Create an attribute 'CA_TEXT'  type string and bind it with the value property of your text edit. 
    Change the cols and row property to adjust your text edit width and height.
    Use the following code to read the contents entered in the test edit,
    Data: l_elem type ref to if_wd_context_element.
    Data: l_text type string.
    l_elem = wd_context->get_element( ).
    l_elem->get_attribute( exporting name = 'CA_TEXT'
    importing value = l_text }. "l_text will now have  the contents of your text edit.
    Regards,
    Radhika.

  • Display Promoted links in Multiple Lines

    Hi,
    I am trying to Display Promoted links in Multiple Lines in sharepoint Online and used the following link for reference:
    http://www.rbradbrook.co.uk/Blog/Post/14/Displaying-Promoted-Links-on-Multiple-Lines
    When editing the webpart I am getting things correct as below:
    Once I save this , its showing as list.
    Any suggestions or help in this.
    Thanks in advance

    Hi,
    The solution you mentioned did not work form me either. I digged through the internet and something else worked:
    On a single page add a Script Editor Web Part and paste the following code in the source:
    <style type="text/css">
    .ms-promlink-body {width:100%}
    .ms-promlink-header {visibility:hidden}
    < /style>
    Works perfectly for me!
    The source of this code:
    Sharepointkevin.com

  • Printing Text with multiple Lines

    Hello,
    i want to print a list and in that is text with multiple lines.
    In the PrintPreview and in the Printout i get only one line.
    How is the best way to do this?
    Thank you,
    Markus
    Private Function Print_Remarks_Control_Get(ByVal pstrText As String) As TextBox
    Dim TextBox_Out As New TextBox
    With TextBox_Out
    .Text = pstrText
    .HorizontalAlignment = Xaml.HorizontalAlignment.Left
    .VerticalAlignment = Xaml.VerticalAlignment.Top
    .FontSize = 16
    .Margin = New Thickness(15)
    .AcceptsReturn = True
    .MinWidth = 800
    .MinHeight = 600
    End With
    Return TextBox_Out
    End Function
    Sub PrintPageList_Prepare()
    Dim i As Integer
    Dim objVM As clsTextVM
    Dim lstText_List As ObservableCollection(Of clsText)
    Dim ctrPrint_StackPanel As StackPanel
    Dim ctrPrint_Title As TextBox
    Dim ctrPrint_Description As TextBox
    Dim ctrPrint_Remarks As TextBox
    Dim objText As clsText
    mPrintPageList.Clear()
    objVM = DirectCast(Me.DataContext, clsTextVM)
    lstText_List = objVM.CustomClass_List
    ctrPrint_StackPanel = Print_StackPanel_Get()
    For i = 0 To lstText_List.Count - 1
    objText = lstText_List.Item(i)
    If objText.Name.Length > 0 Then
    ctrPrint_Title = Print_Title_Control_Get(objText.Name)
    ctrPrint_StackPanel.Children.Add(ctrPrint_Title)
    End If
    If objText.Description.Length > 0 Then
    ctrPrint_Description = Print_Description_Control_Get(objText.Description)
    ctrPrint_StackPanel.Children.Add(ctrPrint_Description)
    End If
    If objText.Remarks.Length > 0 Then
    ctrPrint_Remarks = Print_Description_Control_Get(objText.Remarks)
    ctrPrint_StackPanel.Children.Add(ctrPrint_Remarks)
    End If
    Next
    mPrintPageList.Add(ctrPrint_StackPanel)
    End Sub
    Private Sub OnGetPreviewPage(sender As Object, e As GetPreviewPageEventArgs)
    ' Das ist die MessageBox
    ' Windows.UI.Popups.MessageDialog()
    PrintPageList_Prepare()
    mPrintDok.SetPreviewPage(e.PageNumber, Me.mPrintPageList(e.PageNumber - 1))
    End Sub

    Yes, not only RichEditBox but also RichTextBlock can also do this. Besides TextBox also have TextWrapping functionality.
    -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.

  • Scripts : want to display the text in one line

    Dear Friends,
    i want to dispaly the below text in one line,but its displaying in next line.
    ITEM   MATERIAL  DESCRIPTION ORDERQTY  UNIT PricePerUnit NETVALUE
    i am using the following code
    IL           <K>Item,,Material,,Description ,,  Order qty.  ,,Unit   ,,    Price per unit   ,, Net value </>
    Thanks & Regards
    Shaik

    Hello Hussain,
    Remove the TAB Spacing ',,'. Instead u give the Space.
    Reduce the length of fonts.
    These are the ways to display the text in a line.
    If useful reward points.
    Regards,
    Vasanth

  • Trying to create multiple lines of radio buttons on the same page. how do i do that??

    Greetings. I'm brand new to this, and am trying to create a form with multiple lines of radio buttons on a single page to send to my students.  How can I do this??  I currently have a table that I want the students to fill out and return, but every time I put radio buttons in, the form only allows selection of one of the 12 - I want students to be able to select one on each row.........

    Each group of three radio buttons for a row should have the same field name and different "Radio Button Choice" (see Options tab). So if you copy & paste the first row, be sure to rename the new ly added radio buttons.

  • Text with multiple lines limit each line to 10 digits

    Im trying to create a Numeric Field with multiple lines and limit the character per line to 10
    ideally I want the users to be able to paste in a 10 digit number similar to this:
    0001234567
    0001234568
    0001234569
    I can set my pattern to num{zzzzzzzzzz} but not sure how to allow multiple lines
    Im using Adobe LC ES2 Verison 9.0
    Thanks!

    better option is to use INCLUDE statement in SCRIPTS. its a script control command and you no need to use READ_TEXT and to loop it and send each line to script.
    if you use the above INCLUDE control command, SAP will take care of printing total text of that Object.
    here is the syntax :
    <b>/: INCLUDE name [OBJECT o] [ID i] [LANGUAGE l] [PARAGRAPH p] [NEW-PARAGRAPH np]</b>
    here /: indicates its an Control command.
    you have to use NAME, ID, LANGUAGE adn OBJECT here.
    if you give these details in the Text editor of script layout,automatically data will be printed on the screen.
    ex:
    /: INCLUDE &EKKO-EBELN& OBJECT EKKO ID X LANGUAGE E
    Hope you got the Idea.
    <b>here is brief help about INCLUDE:</b>
    Use INCLUDE to include the contents of another text into your text. The text to be included exists separately from yours and is only copied at the time of the output formatting. With INCLUDE, since the text is only read and inserted during the output formatting, the most current version of the required text is always available.
    and IF you are very specific about using READ_TEXT to display the contents,
    then you have to LOOP that table and call the WRITE_FORM to print the line on the layout.
    LOOP AT IT_TDLINES.
      CALL FUNCTION 'WRITE_FORM'
    ENDLOOP.
    Regards
    Srikanth
    Message was edited by: Srikanth Kidambi

  • Problem in displaying total text in total line

    Hi...I am facing problem in displaying total text in first column of total line. Width of first column is sufficient to display text "TOTAL". But somehow its not getting displayed....Please Help...?
    code is as follows:
    ls_layout TYPE  slis_layout_alv .
    ls_layout-totals_text       = 'TOTAL'.
      ls_layout-colwidth_optimize = 'X'.
      ls_layout-no_vline          = 'X'.
      ls_layout-no_hline          = 'X'.
    CALL FUNCTION 'REUSE_ALV_GRID_DISPLAY'
        EXPORTING
          i_callback_program     = gv_repid            " Report ID
          i_callback_top_of_page = 'TOP_OF_PAGE'
          is_layout              = ls_layout
          it_fieldcat            = gt_fieldcat         " Field Catlog
        TABLES
          t_outtab               = gt_cost_output      " Output Table

    hi me to i have the same problem
       FORM create_layout .
      data: text(20) TYPE c.
      it_layout-window_titlebar   = text.
      it_layout-colwidth_optimize = 'X'.
      it_layout-totals_text       = text-013."'Totals'(013).
      it_layout-cell_merge        = 'X'.
      it_layout-zebra             = 'X'.
    ENDFORM.         
    but no output total in alv
    also i had another broplem i had unit i wanna show it in total line and calc value in header

  • PDF - Text on multiple lines become seperate objects - is there a way to prevent this?

    I'm exporting to PDF from inDesign with the idea that the text would be editable with Acrobat Pro.
    However, when opening the PDF in Acrobat Pro, each line is a seperate instance / object.
    Is there a way around this?
    I imagine I can recreate the text in Acrobat Pro - but it would be good if there was a way round from inDesign - as i imagine it would be better for SEO and screen readers. Also, i've uploaded PDFs to sites before like Slideshare, yudu, issuu which create a text only version - only the text only version is scr*wed up due to the above problemo.
    Help much appreciated or even to know if its not possible. Thanks.

    Not really sure what SEO has to do with it? But I think  you're talking about "Accessibility"
    When a PDF is created that's what happens. You can't export it and have paragraphs of text editable. PDFs are meant to be FINAL files.
    For accessiblity follow these tips -
    http://www.adobe.com/accessibility/products/acrobat/
    http://tv.adobe.com/watch/accessibility-adobe/preparing-indesign-files-for-accessibility/
    http://tv.adobe.com/watch/accessibility-adobe/acrobat-tagging-pdf-content-as-a-table/
    http://indesignsecrets.com/creating-accessible-pdf-documents.php

  • Y-Axis Axis Text on Multiple Lines

    Hello,
    Is it possible to get the y-axis text in a Report for a 2D axis system to go onto two different lines instead of one?  In other words, I would like to add a carriage return/line feed (CRLF) in the y-axis text between the channel name and the units.  Is it possible to do this with the x-axis text?
    I am using DIAdem 10.1.  Let me know what else you need to know, and thanks for any and all assistance.
    Thanks.

    Hello InternationAL!
    Just add a @@vbCRLF@@ expression for every new line.
    Example: @@ChnName(CurrChnNo)@@ [@@ChnDim(CurrChnNo)@@]@@vbCRLF@@My second line
    Matthias
    Matthias Alleweldt
    Project Engineer / Projektingenieur
    Twigeater?  

  • How to display multiple lines for texarea

    I have a textarea where user can type in several lines of code. I am storing it in varchar2(2000).
    When I display that textarea, it gets displayed in 1 single line that drags all the way to the right. I want it to display the text in multiple lines where each line containing no more than lets say 7 or 8 words.
    How can I do that.
    Thanks for your help

    First, expecting an answer here in just a couple hours is optimistic to say the least (and possibly pushy at most).
    To your question: You don't say which browser you're using, which could be an issue.
    Since you said the user is entering lines of code, I'll assume there are spaces between the values? If not, for example, they're entering a URL, it won't wrap the line.
    But I just edited a sample editable tabular form of mine and set the Element Width = 60 and Element Height = 10 and it worked as expected. My point being, you might want to try setting the Width, not just the height.
    Hope this helps,
    Stew
    My Oracle Community blog:
    http://www.oraclecommunity.net/profiles/blog/list?user=stewstryker

  • How can i make the input/output field to a multiple lines in ModulePool...

    hi all...
    can any one please let me know, is there any possibility thru Module Pool program where i can make the input/output field to a multiple lines...
    say, when we drag & drop the input/output field on the screen - it'll come with single line display. so, how to make the same field to multiple lines field.
    rather i can say my question like, how to increase the height of the input/output field.
    Desired Functionality:
    • The user wants to display a long text.
    • now the input/output field should not display the record as a single line, now the field has to display the text in multiple lines (something like wrap option in ms excel).
    hope u got my question...
    please help me in this regards...

    hi Rengith, i'm not using Text Field, i'm using Inpu/Output Field to display the long text.
    If u mean text field as input/output field then can u let me know the process for this, how to do the same thru module pool program...
    Edited by: murashali on Mar 18, 2008 1:36 PM

  • How to display TEXT more than 500 char in a report as multiple lines.

    Hi Friends,
    i have a requirement like i should display Texts of length more than 500 Characters in a report( ALV LIST) as multiple lines
    I am fetching the data Using FM READ_TEXT
    the output im currently geeting with 150 Char in lenth as a single line
    How we can split the text into multiple lines in a report
    first i would like to know is it possible? if possible please give your valuable suggitions if not is there any alternative way to do this task.
    Thanks & regards
    kumar.

    Hi,
    This is possible but the Solution might not look Standard/Appropriate to you.
    In ALV, you can have Multiple Line Output...There is a Field in the Field Catalogue..called as Row_position...this is by default 0...which means Single row/Line ALV output....You can have this Value in the Range of 0 to 3.......A ALV field with row_position 1, will be displayed in the second line for every record...i.e. you will have multiple line for a single record of ALV.
    In your case......you can use this but you need to split your field in two fields.....but you may end up spliting a single word....but for that also you can design the logic of splitting the Fiel value at SPACE only......
    This may work.......and Sorry if not work......

  • Text Field with multiple lines

    I am trying to create a text field in the selection screen where it can insert a text with multiple lines for instance those text fields which you can see online where you can key in text lines after lines.
    How do you do that in ABAP?

    Hi
    See any Std program code for CREATING long Text lines
    See any application document HEADER or ITEM text and copy that code
    first declare a field with some table field
    like
    PARAMETERS: p_text like Tline-tdname.
    then keep a button (for Long text) and in the program write a code such that when you press on that line it will take you to text ediotr
    using the CREATE_TEXT fun module
    copy it from a std program text..
    <b>Reward points for useful Answers</b>
    Regards
    Anji

  • Text Fields of an External Content Type come across as Multiple Line of Text

    In SharePoint 2013 I have an external content type that consists of a couple of short (nvarchar)  fields (no more that 15 characters). When I use this ECT in a custom list the fields from the ECT end up as a "Note" type instead of "Text".
    I am not sure how this happens. I have verified this by accessing the list via poweshell where I see the Type being as "Note" and also the SchemaXml showing the colName attribute as "ntext".
    The strange thing is that initially when I created the web application and built my lists this was working.
    Any ideas or pointers would be appreciated.
    Thanks

    Hi,
    Based on your description, my understanding is that When you use the ECT in a custom list the fields from the ECT end up as a "Note" type instead of "Text".
    Have you ever changed column types from "Single line of text" to "Multiple Lines of Text" in list?http://www.sharepointdiary.com/2013/09/change-column-type-in-list-using-powershell.html
    External content types are made up of fields whose types are a subset of the primitive types of .NET. For each such .NET type, a rudimentary mapping to SharePoint’s field controls exists, describing a field’s visual appearance. Fields of type string for
    instance will, on the new and edit forms, render as a single-line text field.
    Besides, check whether the following link is useful:
    https://social.technet.microsoft.com/Forums/sharepoint/en-US/0fcb5a9f-8445-4a37-9e60-ac5e9e14e8f1/sharepoint-designer-external-content-type-shows-single-line-text?forum=sharepointgeneralprevious
    Best Regards,
    Lisa Chen
    Forum Support
    Please remember to mark the replies as answers if they help and unmark them if they provide no help. If you have feedback for TechNet Subscriber Support, contact
    [email protected]
    Lisa Chen
    TechNet Community Support

Maybe you are looking for