2 line SUI Button

Is the a way of haveing 2 lines of text in a button?
myButton = w.add ("button", [10,65,110,155], "Two\rLines")
Does not work.

Thanks John
Windows 7
I had tried \n, also didn't work
I also tried palette and dialog type windows

Similar Messages

  • Thin White Lines above Buttons

    On my published page, there are thin white lines at the tops of some of my hyperlink buttons & not others. iWeb doesn't show these lines, they appear to be added during publication.
    Come see: http://web.mac.com/tarpitboss
    They appear to be used as photo delimiters or ? They are ok added above some images but not these, & why on some of mine & not others??
    How do I turn them OFF?
    powerbook g4   Mac OS X (10.4.5)  

    I was looking for what caused this in the forums and I guess I just don't know what to search for
    I know one solution is to change the size of the problem .jpg's by one pixel on each side and it should render as a .png as your text is. This would solve the look, but I'd imagine if you made the decision to have them as .jpg's you'd probably like to keep them that way. Perhaps someone else has a solution to keep them as .jpg's.

  • Multi-line toggle button bar labels?

    I am trying to do a grid of buttons where only one button in a row can be "pressed".  Seems, based on suggestions here as well, the easiest way is one togglebuttonbar per row of a grid.
    Anyway, I need to have taller buttons with a few lines of text in each label (button).  Think of a table where the cells are selectable.
    I found a way to extend a simple button's label to make it multi-line, but not sure on how to do this for a togglebuttonbar:
    package tools
    import flash.text.TextFieldAutoSize;
    import mx.controls.Button;
    import mx.core.mx_internal;
    use namespace mx_internal;
    public class MultilineButton extends Button {
    public function MultilineButton()
    {super();}
    override protected function createChildren():void
    super.createChildren();
    textField.multiline = true;
    textField.wordWrap = true;
    textField.autoSize = TextFieldAutoSize.LEFT;
    override protected function updateDisplayList(unscaledWidth:Number, unscaledHeight:Number):void {
    super.updateDisplayList(unscaledWidth, unscaledHeight);
    textField.y = (this.height-textField.height)>>1;
    And then I call it with <t:MultilineButton label="four score and seven years ago" width="150" height="150" textAlign="left"/>
    Should I just use this single button in a Repeater?  Or is there a way to work with the togglebuttonbar?

    I tried that, I guess I am doing it wrong since it is still doing centered
    and bold:
    package tools
    import flash.text.*;
    import mx.core.mx_internal;
    use namespace mx_internal;
    public class MultilineToggleButtonBar extends ToggleButtonBar
    public function MultilineToggleButtonBar()
    super();
    override protected function createChildren():void
    super.createChildren();
    textField.multiline = true;
    textField.wordWrap = true;
    textField.autoSize = TextFieldAutoSize.LEFT;
    var format:TextFormat = new TextFormat();
    format.bold = false;
    format.align = "left";
    textField.defaultTextFormat = format;
    override protected function updateDisplayList(unscaledWidth:Number,
    unscaledHeight:Number):void {
    super.updateDisplayList(unscaledWidth, unscaledHeight);
    textField.y = (this.height-textField.height)>>1;

  • Tabstrip control  Tab line navigation button display issue

    I have a tabstrip that has more tabs than can be displayed at the top of the tabstrip control.  When this happens a navigation button appears on the far right of the tab line( the line that contains all the tabs).  This has been working fine for several years.  Recently I needed to increase the width of the tabstrip control so that it was 160 character wide.  Now when the tabstrip displays, the tab line stops displaying at around 130 characters so the navigation button no longer shows.  As it turns out, the button is still there and functions as normal, except that it cannot be seen even though there are still too many tabs to all be displayed. 
    This appears to me to be a bug in the tabstrip control, but before I start complaining to SAP I thought I would ask here to see if anyone else might know of a solution to this problem. 
    Thanks for looking.

    Hi,
    cresate a managed bean in viewScope within the parent page and pass it as an argument to the child task flow. The managed bean contains/exposes a method to hide the menu items you don't want to show (or just disable them). The child task flow then can call the managed bean (from its input parameter reference) and invoke the method (e.g. in a method call activity as the default activity of the task flow).
    See this blog entry for more details: http://one-size-doesnt-fit-all.blogspot.de/2010/09/master-child-btf-chaperone-contextual.html
    Frank

  • Selective ringing of FXO lines on line share buttons

    I have a customer that wants to have the UC540 emulate their existing Norstar KEY system.  They have 6 lines and 15 stations.  I have already setup and tested a hybrid KEY system in my lab with FXO's as shared lines https://supportforums.cisco.com/docs/DOC-15755 .  This works fine.  The only problem is ican not select several phones to ring and several phones not to ring when a call comes in to the FXO trunk.  Either all the phones have to ring or all the phones are silent ring, not a mix of both.  Is there a way around this?  Perhaps in CLI.                  

    You can comfigure individual phones sharing a DN, with 's' button for silent ring. Note this is a CLI command, I don't know and can't answer if that can be done using CCA.

  • Drawing line with button??

    Hi all.
    Why won't this class draw a line when i click the mouse button. Nothing happens when i click on the panel.
    import java.util.*;
    import java.awt.*;
    import javax.swing.JPanel;
    import javax.swing.*;
    import javax.swing.Action.*;
    import java.awt.event.*;
    import java.awt.event.MouseAdapter;
    public class DrawingPanel extends JPanel implements Observer
      private ViewableEtch etch;
      private ClearPanel clear;
      public DrawingPanel(ViewableEtch etch, ClearPanel clear)
        this.etch = etch;
        this.clear = clear;
       etch.addView(this);
        clear.addView(this);
        setLayout(new FlowLayout());
        setLayout(new GridLayout(200,200));
          //etch.addActionListener(this);
            DrawingControl dc = new DrawingControl();
        public void update(Observable obs, Object obj)
         Views v = (Views)obs;
         if (v.getSource() == etch)
         //etch.getLineColor();
           getGraphics().setColor(etch.getLineColor() );
           getGraphics().drawLine(etch.getStartX(), etch.getStartY(), etch.getEndX(), etch.getEndY());
         else
           v.getSource().equals(clear);
    public void mouseClicked(MouseEvent e)
    //etch.setLine(new etch(getStartX(), getStartY(), e.getEndX(), e.getEndY()));
    getGraphics().drawLine(etch.getStartX(), etch.getStartY(), etch.getEndX(), etch.getEndY());
    }thanx

    This should work
    public class MyPanel extends JPanel implements MouseListener {
       public MyPanel() {
          addMouseListener(this);
       public void mouseClicked(MouseEvent e) {
          // Add code here
       public void mouseEntered(MouseEvent e) {}
       public void mouseExited(MouseEvent e) {}
       public void mousePressed(MouseEvent e) {}
       public void mouseReleased(MouseEvent e) {}

  • How to make new line in JButton.setText()?

    how to make new line in JButton.setText()?
    I want to set the text of jbutton in tow line ,as follows
    | jbutton-line1 |
    | xxxxxxx-line2 |
    i konw i can jbtton.settext("<html>line1<br>line2</html>");
    but i find it's ugly using html,
    is there anyother way to create new line in JButton's Text

    As for the above comment....
    I thought the question was well purposed. Using HTML was not acceptable in this instance, which was made clear, so why critisize his comments? "Using HTML" is a poor solution, it does NOT work in many instances due to browser, OS variations. Usually the "common answer" is never a COMPLETE answer.
    Possible Solution:
    Use JLabels to render the text on the button.
    import javax.swing.*;
    import java.awt.*;
    public class ButtonMaker {
    public static void makeButton(JButton jb, String[] titleList) {
    jb.setLayout(new FlowLayout());
    for (int i = 0; i < titleList.length; i++) {
    JLabel tmpLabel = new JLabel(titleList);
    tmpLabel.setForeground(Color.black);
    jb.add(tmpLabel);
    public static void clearButton(JButton jb) {
    Component[] cList = jb.getComponents();
    for (int i = 0; i < cList.length; i++) {
    if (cList[i] instanceof JLabel)
    jb.remove(cList[i]);
    Known Limitations:
    1. Flowlayout does not work well with single line text buttons... perhaps another layout manager may work better for various buttonsizes-linenumber combos.
    2. Mac OSX : The default UI for Mac OS X (and above it seems), is to have rounded edged buttons. These rounded edges are destoryed when using JLabels, leaving a square, blocky button in its place.
    POSSIBLE SOLUTION:
    (this is ugly and time consuming)
    - create images of the button with text on them.

  • I want to read the contents of a file to a text item line by line dynamical

    I have created a timer
    tm_id := FIND_TIMER('LOG_READING_TIMER');
    If Id_Null(tm_id)
    then
    tm_id := create_timer('LOG_READING_TIMER', 1000, REPEAT);
    else
    set_timer (tm_id, 1000, REPEAT);
    end if;
    /* executed the shell script on application server */
    host(v_command,no_screen);
    and used below code for reading a file in when timer expired
    DECLARE
    v_file_name := '/home/log.txt' /* log created during running shell script */
    BEGIN
    v_infile := Text_IO.Fopen(v_file_name , 'r');
    loop
    Text_IO.Get_Line(v_infile,v_linebuf);
    :CONTROL.item:= :CONTROL.item||v_linebuf||chr(10);
    end loop;           
    WHEN no_data_found THEN
         Text_IO.Fclose(v_infile);
         delete_timer('LOG_TIMER');
    END
    I want to read a log file which is created while runnning shell script line by line
    dynamically
    Above code is reading the log filebut all the lines are shown at once.
    I have to display
    each line on the text item
    and the next line line by line
    Can anyone help me how to achieve this.
    Thanks,
    in advance

    In when-button-pressed trigger
    I have called a shell script on application server using host command
    HOST('Path of script',NO_SCREEN);
    Shell script writes some set of statements to log file on application server
    Problem is to read the log file on to the multiline text item each line simultaneosly
    while running the script.
    Below is the procedure i have written to achieve this but below code is writing all the lines at once
    after entire complete execution of shell script.
    for example
    shell script writes tolog file:
    1. 'Loading of tables';
    then loads the data
    2. 'emailing data';
    3. ...
    4. ...
    Below code writes
    all the 4 lines at once
    I want to see in frontend what is going on while running the script
    by reading the log file data line by line
    WHEN-BUTTON-PRESSED
    tm_id := FIND_TIMER('LOG_READING_TIMER');
    If Id_Null(tm_id)
    then
    tm_id := create_timer('LOG_READING_TIMER', 1000, REPEAT);
    else
    set_timer (tm_id, 1000, REPEAT);
    end if;
    /* executed the shell script on application server */
    host(v_command,no_screen);
    WHEN-TIMER-EXPIRED
    and used below code for reading a file in when timer expired
    DECLARE
    v_file_name := '/home/log.txt' /* log created during running shell script */
    BEGIN
    v_infile := Text_IO.Fopen(v_file_name , 'r');
    loop
    Text_IO.Get_Line(v_infile,v_linebuf);
    :CONTROL.item:= :CONTROL.item||v_linebuf||chr(10);
    end loop;
    WHEN no_data_found THEN
    Text_IO.Fclose(v_infile);
    delete_timer('LOG_TIMER');
    END
    While running the script on application server
    I want to see the data from log file simulataneously on to the form when the data is written on to the log file
    Please let me know if you need more details.
    Thanks,
    in advance

  • Line graph issue in web report

    Hi
    I have a 3 queries/reports on one page in my web report. I have 3 line graph buttons, one for each query.
    My issue is, in the report result or table, I have characteristic "Product" in rows and Key figures in Columns.
    Product                          Month 1     Month2      
    XYZ          Demand
                 On hand stock
                 Ending Inventory
    But when I hit the line graph button, it shows Product in the X (horizontal) axis and number ranges like 15000, 20000, 25000 in the Y axis.
    I need to swap the axes. I tried the "swap display axis" in the web items tab, but it didn't work.
    I read other threads on the same topic here and someone had suggested creating a query view, switching the columns and rows there and running the report to display the line graph as required.
    If I do that, won't the report result in the table also swap the rows and columns? I want the table to show Product in the Rows and KFs in the column as it is now, but I want the line graph to show Product in the Y axis and the Key figures in the Y axis.
    Any ideas on how to do that? Any help will be greatly appreciated. Thanks!
    Pooja

    This is what I did:
    1) In BEX Analyzer, I opened the local view of the Query and swapped the Key figures and Characteristics. I put the key figures in the columns and Characteristics in the Rows
    2) I ran my report and save it as a View
    3) In WAD, I assigned the Chart to the View.
    When i ran the report from WAD, it still shows the key figures or number ranges in the Y axis and Characteristics on the X axis again.
    I checked the "swap display axes" option in Web Item tab, but the line graph still remains the same.
    Is there another way to do this? Or am I missing something?
    Thanks
    Pooja

  • Can I hide the Address line through a URL?

    Can I hide the address line (and button bar, and menu bar) from a URL address? We are generating an Oracle report, and I was hoping to be able to hide the address bar when the report is opened in a new window. Since the report server creates the html to show the report I can't control it there (or can I?).
    Thanks,
    Jim

    Jim,
    the only way of achieving this is to call a Javascript function on teh page that initiates the Reports request. Thsi Javascript function would do a window.open() call where you specify the Reports request URL and all the browser window characteristics, like hiding the menu bar.
    Frank

  • How to trak button content?

    Hi Expert!,
                      in step loop i have created 6 buttons and i'm printing PO  number on the button insted of button text(Purchase order is printed as text label).Now i have been asked to retrieve the PO from selected button. I'm unable to retrieve value(PO number),where as if i would have taken input output field, I could retrieve PO number  easily through GET and Set CURSOR.
    button b1      0000000045 (on button as text in step loop)
    button b2      0000000046
    button b3      0000000047
    Now please help me out .
    Thanks In Advance.

    It would be better if you used a table control which has long since replaced step loop processing; then the GET CURSOR command would work and you could identify the table control, line, field (button name of clicked button), and value easily.  Otherwise, if SY-STEPL has the correct value when the button is clicked, you should be able to use DYNP_VALUES_READ to access the field name and value.

  • Buttons problem

    I have a problen with the buttons.
    I have made a button as a basis for all the other buttons (10) all these buttons must have a link to a object on the stage.
    I have 10 copies of the same basis button.
    When I import the object to button 1, all 10 have the same object.
    Must I create 10 seperate buttons?

    Thanks for your answer,
    I have changed the symbol name in “Button A” and for the second Button to B.
    But it gives the same result.
    The red object is in placed in the time line of Button A,
    I can’t understand way it also in button B, also the text of the button is connected.

  • RadioButtons some buttons and layout

    Hi,
    I try several times to create a particular layout with jsf using panelgrid and selectoneradio but after a lot of attempts I need hlp please.
    In practice I need to create a table where in each row there is a radio button, some text and a button image.
    I try in a way like this
    <h:panelGrid columns="2">
    <h:selectOneRadio ... >
    <f:selecitem itemLabel="..." itemValue="..."/>
    </h:panelGrid>
    <h:commandLink> <h:graphicImage value="/registration.jpg"/> </h:commandLink>
    </h:panelGrid>
    I try in many ways like add css style for vertical-align, for td height but I dont reach the goal to get and the same line radio button and text aligned with button image.
    Perhaps the problem is that the selectone radio create an html radio.
    Anyone has an idea?
    Thanks in advance

    Well if you are stuck with out of the box JSF components you will have to use the table and put the elements in columns to insure things line up.
    Look at the HTML source also for clues, it will absolutely create an HTML radio and I forget exactly what HTML panelGrid is using for layout

  • Wrong command button background color on web

    Hello.
    We have a problem with background color of command button.
    If we set background color to lime, only upper line of button is in lime color. Rest of the button is in default color.
    This happens when user runs application on web (standalone server and embedded).
    In jdeveloper button is in correct color (whole button in lime color).
    What could be the problem?
    Thanks.

    On debugging, i found that the commandButton is using background-image to show the silver/grey background.
    So, in order to modify it to other background color, you have set the background-image as none as follows:
    <af:commandButton text="commandButton 1" id="cb1"
    inlineStyle="background-color:red; background-image:none"/>
    Thanks,
    Navaneeth

  • WSH DELIVERY LINE STATUS에 대한 해석

    제품 : MFG_SE
    작성날짜 : 2003-11-20
    WSH DELIVERY LINE STATUS에 대한 해석
    ====================================
    PURPOSE
    Delivery line status는 현재 진행중인 shipping process가 어떤 상태인지를
    보여준다.이 status를 잘 인식하고 있으면 shipping process에 문제가 발생할
    경우 여러 도움을 줄 수 있다.
    Explanation
    Delivery line의 released status는 진행중인 shipping process의 progress
    를 나타낸다.이 released status는
    Oracle Shipping Execution Shipping Transactions window나,
    Oracle Order Management Order window/Actions button, Additional
    information, Delivery tab에서 조회할 수 있다.
    Delivery line status를 조회하기
    1. Navigate to the Query Manager window, delivery lines를 찾으면 이
    delivery lines이 Shipping Transactions 화면에 조회된다.
    2. Line을 선택하고 Detail button을 click하면 Pick Status field에
    조회된 delivery line의 현재 status를 보여준다.
    3. Main tab으로 이동하기 위해 Done button을 click 한다.
    4. Main tab에서 Pick status column이 보이도록 right scroll을 사용한다.
    Delivery line statuses의 차이점
    ===============================
    -.Not Applicable (Code: X)
    : delivery line이 invoice 생성은 가능하나 non-shippable.
    ex) service line, warranty line
    -.Not Ready for Release (Code: N)
    : delivery line이 pick release를 할 수 있는 상태가 아님.
    이런 상태는 보통 order line이 Import Delivery Line Concurrent process
    를 이용하여 manual하게 Shipping Execution에 import된 경우이다.
    이는 Awaiting Shipping workflow acrivity에 도달하지 못함을 의미한다.
    -.Ready for Release (Code: R)
    : pick release가 가능한 delivery line.
    Order line이 Awaiting Shipping workflow activity에 닿아 있는 상태.
    (Booked, Scheduled)
    -.Submitted to Warehouse (Code: S)
    : Pick release가 delivery line을 진행시켰으며, move order header, line
    을 생성, available qty를 찾아 inventory allications을 생성.
    Pick confirm은 아직 하지 않은 상태이나, 만약 pick release시 auto-pick
    confirm을 사용했다면 status를 release에서 Staged로 바꾼다.
    Auto-pick confirm을 사용하지 않았고 delivery line을 계속 진핼시키려면
    Inventory Move Order Transaction 화면에서 pick confirm을 manual하게
    실행한다.
    -.Staged (Code: Y)
    : delivery line은 pick confirm 되었고,inventory는 storage subinv에서
    staging subinv으로 transfer 되어진 상태.
    ship confirm 실행 전까지는 staged 상태로 남아 있다.
    -.Backordered (Code: B)
    : Pick release가 delivery line을 진행시켰으나 entire 수량을 찾지
    못했을때 -Inventory에 충분한 material이 없거나 inventory balance가
    안 맞을때- backordered 상태가 된다.
    -.Shipped (Code: C)
    : delivery line의 delivery가 ship confirm 되고, OM/INV interface
    processes가 완료되었으며 trip 또한 closed 된 상태이다.
    -.Cancelled (Code: D)
    : delivery line에 연결되어 있는 order line이 cancelled 된 상태이다.
    Example
    Reference Documents
    Note 205708.1

Maybe you are looking for