Adding buttons on title line

I am relatively new to Flex and I have run into a slight
problem that I that I think is because of lack of experience. I
have a panel and I have set the title attribute but now I am
required to add buttons to the right of the title. I am not sure
what the best way to do this is or even if it is viable. I have
read in other places throughout the internet that it is possible to
add buttons to the title of an object, but I do not know how to do
to proceed. I have thought about it and I think making an HBox and
adding a label for the title and then the required buttons might
work, but when it compiles it leaves a blank space above my new
HBox that just does not look good. Is there someway to override the
title of the panel or set its height to 0, or better yet some way
to add buttons to the title line of the panel? Any help would be
appreciated.

Check out post...
http://www.adobe.com/cfusion/webforums/forum/messageview.cfm?forumid=60&catid=585&threadid =1271263&highlight_key=y&keyword1=button

Similar Messages

  • Creating buttons on title bar using alv

    hi all good morning,
    can any one help me in making a button on title bar of ALV report. Till now i have used only one function of ALV i,e REUSE_ALV_GRID_DISPLAY. it is showing proper out put but i want to make some action using my own button on the final ALV result displayed like save change etc.

    Hi,
    How to add button to ALV toolbar using REUSE_ALV_LIST_DISPLAY?
    In the program which calls ALV using REUSE_ALV_LIST_DISPLAY,
    I have to add a new button.
    I saw the demo program BCALV_GRID_08, which is written using ABAP-Controls.
    In that example, the button is added using TOOLBAR event of cl_gui_alv_grid.
    Could you help me to implement the same logic using REUSE_ALV_LIST_DISPLAY parameters.
    you should copy the 'STANDARD' GUI status from program SAPLKKBL using transaction SE90 >Programming SubObjects> Gui Status.
    Execute this transaction to get to next screen. select status using checkbox. click on GUI Status --> Copy.
    Enter your Z program name and the name you what for this status - you can keep it as 'STANDARD' to be simple.
    Then you can edit the new status to add or delete buttons. This will also bring in the standard SAP ALV functionality such as sorting/subtotaling etc...
    When you call 'REUSE_ALV_GRID_DISPLAY' make sure you pass it the new status name.
    an example of one of mine:
    call function 'REUSE_ALV_GRID_DISPLAY'
    EXPORTING
    i_callback_program = 'ZSDBOLST_REPORT'
    i_callback_pf_status_set = 'STANDARD' <----
    i_callback_user_command = 'USER_COMMAND'
    i_structure_name = 'I_BOLACT'
    i_grid_title = 'BOL Action Report'(031)
    is_layout = gs_layout
    it_fieldcat = gt_fieldcat[]
    i_save = 'A'
    is_variant = v_variant
    TABLES
    t_outtab = i_bolact
    EXCEPTIONS
    program_error = 1
    others = 2.
    I just tried the same procedure ,but my entire application toolbar disappeared and a lock icon appears next to the application toolbar in my copied pf-status.
    Could you advice what might have gone wrong ?
    As identified with the FM's help you can do the following.
    1). Using SE80 (I think) you can copy a GUI status from one program to another. It mentions which one in the FM's help.
    2). Create a form named like so:
    Code:
    Form Set_pf_status
    Notes: Called by FM REUSE_ALV_GRID_DISPLAY
    FORM set_pf_status USING rt_extab TYPE slis_t_extab.
    SET PF-STATUS 'ZSTANDARD'.
    ENDFORM. "Set_pf_status
    In the above case the GUI status copied was named ZSTANDARD and adjusted accordingly, adding and removing the desired buttons. A button was added called '%DELETE'.
    3). Create the following report:
    Code:
    Form User_command
    Notes: Called by FM REUSE_ALV_GRID_DISPLAY
    Detects whether the icon/button for
    'Return Tag Deletion' has been pressed. If it has then
    detect whether any rows have been highlighted and then
    set the delete flag.
    FORM user_command USING r_ucomm LIKE sy-ucomm
    rs_selfield TYPE slis_selfield.
    DATA: li_count TYPE I.
    IF r_ucomm EQ '%DELETE'.
    LOOP AT %g00 WHERE mark EQ 'X'.
    ADD 1 TO li_count.
    ENDLOOP.
    IF li_count GT 0.
    gc_delete_flag = 'X'.
    r_ucomm = '&F03'. "Back arraow
    ELSE.
    MESSAGE W000 WITH 'Please highlight the rows to be deleted!'.
    ENDIF.
    ENDIF.
    ENDFORM. "User_command
    As I've added an extra button to indicate which records should be deleted I need to identify a form to be called to process when this button is chosen.
    Then when you call the ALV function you to specify the following extra details:
    Code:
    call function 'REUSE_ALV_GRID_DISPLAY'
    exporting i_callback_program = gc_repid
    I_CALLBACK_PF_STATUS_SET = 'SET_PF_STATUS'
    I_CALLBACK_USER_COMMAND = 'USER_COMMAND'
    i_grid_title = lc_grid_title
    is_layout = lc_layout
    it_fieldcat = gt_fieldcat
    it_sort = sort
    i_save = l_save
    is_reprep_id = l_bbs_id
    is_variant = l_variant
    tables t_outtab = %g00
    exceptions program_error = 1
    others = 2.
    The parameters in capitals are the extra ones that need to be added.
    Regards,
    Satish

  • Adding Buttons to a ScrollPane??

    Hello Swing people,
    I have had this problem now for quite some time and still have had no luck in getting it right. I am coding an ordering system and on this form is a Jtable displaying product details. Beside the Jtable are category buttons one after the other in a vertical line and there are 18 of them - meaning they cannot fit on the screen!! Therefore i want these buttons to be in some kind of scollpane or list so they can all be viewed.
    I thought this would be a simple matter of adding buttons to a scrollpane and then to the panel but this has proved not the case! Does anyone know how i could do this as i have been trying this for too long without the help of you geniuses???
    To give u an idea of what i was trying here is a snippet of my code:
    import javax.swing.*;
    public class junk2 extends JFrame{
         junk2()    {
         JPanel panel = new JPanel();
         panel.setLayout(new java.awt.GridLayout(0, 1) );
         JButton []button = new JButton[20];
         for(int i=0; i<button.length; i++) {
              button=new JButton(""+(i+1) );
              panel.add(button[i]);
         JScrollPane scroll = new JScrollPane(panel);
         getContentPane().add(scroll, java.awt.BorderLayout.CENTER);
         setSize(50, 100);
         setDefaultCloseOperation( EXIT_ON_CLOSE );
         public static void main(String []args) {
              new junk2().show();
    This code is fine and puts buttons in a vertical line but the buttons only have numbers on them from 1-20, i want the names of the buttons i have declared to be in here - therefore allowing the action performed on these buttons to be recognised and therefore work too! - anyone know how to get around this??
    Also the scrollpane with these buttons in apears in a whole new frame being that it is a small test program but does anyone know how to ensure the buttons appear in the scrollpane only and not in a new frame??
    all 25 dukes if someone can sort this long problem out!!!

    Hi guys thanks a lot for your replies, i compiled both of them and they are fine! the first reply is more what i am looking for but there is still a problem, i am finding it difficult to incorporate this piece of code into my order form class.
    Im trying to take out the current declarations of my JButtons and replace it with the code i was given (reply 1) and obviously keep my action performed methods there as they will be the same but cant seem to do this!
    If anyone can add in the code from reply 1 into my code below or at least help me i will give u the 25 dukes, taking into consideration i still want the form (panel) to be displayed as well as the panel or scrollpane containing the JButtons???
    Can u help - cheers in advance!!
    Pc
    public class OrderForm extends JFrame implements ActionListener {
         private JPanel panel;
         private JButton saveArchive,unCompleted,submitOrder,checkSheet,clear,exit,bread,fruit,dairy,
    salads,cakes,frozen,meat,cheeses,sauces,dry,drinks,soup,cleaning,boxes,cups,cutlery,lids,misc,stick,soup2;
         private JScrollPane pane;
         private JTextField textorderno,textorderdate,textdelivdate,textemp,textshop,textsupp;
         private JLabel heading1,heading2,orderno,orderdate,delivdate,emp,shop,supplier;
         private String todaysDate, deliveryDate;
         private ResultSet result;
         private ResultSet shops;
         private int column_count;
         private JComboBox combobox;
         ResultSetTableModel model = new ResultSetTableModel();
         Result rs = new Result(); 
         Orders orderSaving = new Orders();
         ProductOrders tableSaving = new ProductOrders();
         private boolean save;
         JTable table;
         public OrderForm()throws SQLException {
              displayForm();
              displayFields();//Have not provided coz it aint needed for this
              displayButtons();//Wont need this anymore i dont think
              getContentPane().add(panel);
              setVisible(true);
         public void displayForm() throws SQLException{
              setTitle("Pret Ordering System");
              setSize(700,600);
              // Center the frame
              Dimension dim = getToolkit().getScreenSize();
              setLocation(dim.width/2-getWidth()/2, dim.height/2-getHeight()/2);
              //Creates the coloured bored around the panel
              panel = new JPanel();
              panel.setLayout( null );
              Border paneltitled = BorderFactory.createLineBorder(Color.red.darker().darker(),10);
              panel.setBorder(paneltitled);
              ResultSet result = rs.setBreadProds();
              model.fillTableModel(result);
              table = new JTable(model);
              for(int i = 0; i < column_count; i++) {          
                   table.getColumnModel().getColumn (i).setPreferredWidth (200);                   
              table.setSelectionForeground( Color.white );
              table.setSelectionBackground( Color.red.darker().darker() );
              pane = new JScrollPane(table);
                  pane.setBounds(190, 230, 440, 200);
                  panel.add(pane);
              combobox = new JComboBox();
              ResultSet shops = rs.getSupplierNames();
              while(shops.next()){  
                   combobox.addItem(shops.getString("supplier_name"));
    //Hope you can help - cheers

  • Adding Button to titlebar

    I just want to ask that is there any way to add button on the title bar, with those three buttons on a right, i.e, Close, Maximize, Minimize. Is there any way for it?

    In general, it is very bad practice to access internal structures of UI delegates. Every time you find yourself casting getUI() result to a specific class and accessing the internal components, you are digging a very nasty hole. In this case, just adding the button is not enough - the internal frame title pane has a custom layout manager that knows nothing about it.
    You will have to dig much deeper and create your own UI delegate for internal frames to handle all the cases (including theme support, rollover effects, layout and RTL). Another option is to use Substance LAF that provides an API to add custom buttons to title panes [1]. This example shows how to do this for top-level frames, but the same would work for internal frames as well.
    [1] https://substance.dev.java.net/docs/api/SetRootPaneCustomTitleButtons.html

  • PF Status Buttons in Multiple lines?

    Hello Everyone,
    I have a Screen in my program and there are some buttons added to the PF Status of this screen. Now, i want to divide these buttons into two lines, some of these buttons to appear in the first line and some of them in the second line. Is it possible??
    Best regards,
    rama

    No big deal then. Simply put separator on applicaton toolbar. This is vertical line which separates set of options in nice way. If I remember correctly in PF status, expand area where you add buttons on toolbar, right click, choose add separator .
    Two lines are obviously not possible, but this solution is also better as the customer must have got used to standard SAP look and feel (where separator is used). Wouldn't he be confused once he see two-line toolbar:) So keep it simple adhering to standard.
    Regards
    Marcin

  • The source code for my website shows up wrong for title line in firefox but not in other browsers-how can i correct it? My ranking depends on this.

    My title line is correct when I check the source code in Google Chrome. Why is it coming out differently in Firefox?

    Works here.<br />
    I see the same "Accent and English Skills Training for Success" title in Firefox as in Google Chrome although the title tag has a different value: &lt;title&gt;EnglishWorks.us&lt;/title&gt;
    Is that title set via JavaScript?
    Reload web page(s) and bypass the cache to refresh possibly outdated or corrupted files.
    *Press and hold Shift and left-click the Reload button.
    *Press "Ctrl + F5" or press "Ctrl + Shift + R" (Windows,Linux)
    *Press "Command + Shift + R" (MAC)

  • Dreamweaver has added thousands of blank lines to my code

    I installed creative cloud and dreamweaver - I edited a few PHP  / HTML  / javascript  files on my server - now dreamweaver had added thousands of blank lines to my code. It will take days to clean them out and I can't seem to find a "find and replace" or "regular expression" to remove these... first of all... THANKS SO MUCH FOR GIVING ME THIS HEADACHE... and now.... HOW THE FRIG DO I GET RID OF THESE???
    It is dreamweaver that did it...
    I just tested and proved it.
    Took a well formatted html doc....
    Edited it (remotely) with two different software -
    Then connected Dreamweaver Edited it again... and WHAMO!
    11,0000 lines of new blank lines.
    Dreamweaver is for sure confusing something as a new line.
    Undoubted there is a reason for this... but it is for sure Dreamweaver the culprit for actuating it.
    The files are of course downloaded as temp files - edited - and then uploaded at save....
    So my tests are true and consistent.
    Three different editing software all performing the exact same steps.
    Yet - Dreamweaver adds thousands of blank lines.
    It looks to me as though it is adding the line where there was a return. Somehow interpreting it as 2 line returns.
    Whatever is happening - is happening inside dreamweaver, while using its "files connect to remote server" function.
    These are live websites with custom PHP, PHP frameworks, MySQL calls, Javascript and...
    I have been using the "Switch Design View To Live View" to test the PHP changes I make right in DreamWeaver.in Dreamweaver, how to prevent it, or how to get rid of the 10's of thousands of returns once they have been added.
    If anyone has any actual answers as to why this is happening …. Please let me know.
    I am not interested in assumptions from the many here who tend to waste a lot of space and time convoluting these forms.
    This is a real problem and has already been proven to be actuated by Dreamweaver... So please... Only answers that may help sort out why or how this is happening within Dreamweaver.
    Thank you.
    Regards,
    Ken

    Ken, I just posted a potential solution.
    Here is my post:
    For people having issues with DW (or any other ftp app) adding extra blank lines: changing the ftp mode to BINARY probably solves this behaviour. It happened once to me when using Filezilla ftp.
    Dreamweaver automatically uses ASCII to transfer readable text based files (like html and php). To change this transfer mode to BINARY, open FTPExtensionMap.txt (WIndows in AppData\Roaming\Adobe\Dreamweaver CS6\en_US\Configuration) and edit that file in a text editor.
    Then change the appropriate mappings.
    Hope that helps fix the problem.It's a known problem in certain cases, though I haven't experienced it a lot (just once a few years ago in Filezilla, actually). It has to do with how a Windows system and certain Linux systems might interpret CR LF and LF line endings.
    Read more here: https://wiki.filezilla-project.org/Data_Type

  • Inserting an additional and constant title line in a query result

    Hi experts,
    My problem is as follow :
    I have a result table in a web template in which I would like to add a constant-values line between the title line and the data lines :
    example
    before :
    ........................... total incomes ($)
    Business unit .......     100.000
    After
    ........................... total incomes ($)
    ..............................(xxxxxx)
    Business unit.......... 100.000
    xxxxx is the constant text I want to display.
    Is it possible ? If so, how to do it ?
    Best regards
    fred
    Edited by: Christophe BELIN on Oct 29, 2008 4:48 PM

    it might be possible in Report Designer

  • Adding button to a groupbox

    I need to be able to dynamically add buttons to a groupbox. When I use the DockStyle.Top; it puts them  in the right place but in the wrong order.
    Is there another way??
    private void add_button(string title, string order, string group)
    Button button = new Button();
    button.Click += new EventHandler(run_program);
    button.Text = title;
    button.Height = 50;
    button.Dock = DockStyle.Top;
    if (group == "1") this.groupBox1.Controls.Add(button);//-----this is specific
    if (group == "2") this.groupBox2.Controls.Add(button);//-----this is specific
    if (group == "3") this.groupBox3.Controls.Add(button);//-----this is specific

    Hi CanAnn,
    Did you mean that you add button to the groupbox, but the button were in reverse order? Based on your code, I found you have three groupbox, and I did not see you have defined the x and y of the button. Could you share us how you call the “add_button” event
    and a screenshot of your groupbox.
    In addition, if you want to add button and other controls, I would recommend you use FlowLayoutPanel which is recommended by Viorel. It is much convenience. The link below might be useful to you:
    # FlowLayoutPanel Class
    https://msdn.microsoft.com/en-us/library/system.windows.forms.flowlayoutpanel(v=vs.110).aspx
    Best Regards,
    Edward
    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.

  • How to change color in the title line?

    Hi experts, How to change color in the title line, i show an image for explained better
    !http://img688.imageshack.us/img688/9259/imagenjar.png!
    thanks

    in Views.css file
    file below object.and change border-color as you desired to reflect.
    .TitleTable {
         font-family: arial, helvetica, sans-serif;
         border-width: 0 0 4px 0;
         border-style: solid;
         border-color: #6666cc; ----> change here.
    hope this helps !
    -Niranjan K

  • Overflow in EXCEL title line routine - Error while posting FI document

    Hi All -
       We are getting an "Overflow in EXCEL title line routine" error message while posting SAP FI document thru FB01 transaction code. We are getting this error message while entering the coding block, can anyone please explain how this error message is coming and how to rectify it.
    Thanks in advance.
    Rds,
    K

    Hi,
    Thanks for the reply.
    The interesting part is, it is a standard message and there is no message class ZKV available in the system.  We have gone live only six months back and not done a single enhancement in HR module till now.
    As far as FICO is concerned, we have an internal control that we will not enhance any of the FI transactions in view of data accuracy and integrity.  We don't have enhancements running in FI & CO modules also.
    I am sure that it is a standard message.  This message is arising out of the function module 'AC_DOCUMENT_CREATE' called internally in the program associated with posting run transaction.
    Please hint, what could be the problem.
    Regards,
    Hema

  • Problems adding an image title?

    Hi,
    When I place an image in Muse I'm having problems adding an image title. When I Control click the image in Design view the choices I get at the bottom of the pop up menu are
    Edit original
    Edit Image Properties
    When I looked it up in help it tells me I should also see another item "Add Title" but I don't get that as a choice. When I click on "Edit Image Properties" I get a choice of Tooltips or Alt Text but no place for a title.
    Thanks,
    Bill

    This is the page
    http://www.adobekb.com/strategies_for_seo.html#addingmetadata
    To be clear when I right click on an image I only get the choice of "Edit Original" & "Edit Image Properties". When I click on "Edit Image Properties" I only get a choice of Tooltips or Alt Text, nothing for title
    Thanks,
    Bill
    Adding titles and alternative text to images
    After you place images on a page, you can access the Image Properties dialog box to set both a title and alternative text (also sometimes called alt text) that is assigned to the image.
    Here's a brief description of each property:
    Title: In many browsers, the title is displayed in addition to the image, typically as a tooltip that appears when a cursor hovers over it.
    Alternate text: If the image file cannot be shown, this text is displayed in place of the image. Alternate text is also used to describe images to visually impaired visitors using assistive technologies to access page content.
    It is ideal to set titles and alternative text for every site asset, to ensure that visitors have the best experience when navigating your site. Tooltips are helpful for including additional information about graphics and alternative text makes pages more accessible for screen readers that verbally present graphic content.
    To add titles and alternative text, follow these steps:
    1. Select a placed image.
    2. Right-click on the image and select Add Title or Add Alternative Text from the context menu that appears (see Figure 3).

  • Captiave 2 - Adding Buttons to Question Slides

    I need to use the Captivate Question Slide "maker" to create
    interactive questions with navigation back to the "Jeopardy-esque"
    main page. When doing so, the question slide maker prevents adding
    buttons/navigation, etc.
    Any work arounds, hints, suggestions?
    Thanks...

    Hi Beta Bob and welcome to our community
    As you have seen, you cannot insert interactive objects
    (Buttons, Click Boxes or Text Entry Boxes) on Question slides.
    The only workaround I can think of is to sort of simulate the
    question slide using these objects on a standard slide.
    Cheers... Rick

  • Dreamweaver had added thousands of blank lines to my code

    I installed creative cloud and dreamweaver - I edited a few php / html / javascript  files on my server - now dreamweaver had added thousands of blank lines to my code. It will take days to clean them out and I can't seem to find a "find and replace" or "regular expression" to remove these... first of all... THANKS SO MUCH FOR GIVING ME THIS HEADACHE... and now.... HOW THE FRIG DO I GET RID OF THESE???

    LOL... HAHA Yes... and magic pixie dust and tooth fairies...
    Hog Wash!
    It is dreamweaver that did it...
    I just tested and proved it.
    Took a well formatted html doc....
    Edited it (remotely) with two different software -
    Then connected Dreamweaver Edited it again... and WHAMO!
    11,0000 lines of new blank lines.
    Dreamweaver is for sure confusing something as a new line.
    Undoubted there is a reason for this... but it is for sure Dreamweaver the culprit for actuating it.
    As for people like Ben Pleysier and Nancy O. ...
    It is really dangerous to give advice about things that you do not know to be true.
    You really should not offer speculation as truth... that is harmful to people... not helpful.
    It would be one thing to say "could be anything" but to defend dremweaver as "NOT the cause" and sight magic pixie dust and mysticism of editing "remotely" (Remotely... oh?! heaven help us : 0 )
    is just completely ridiculous. You are only proving here how little you know and how little you are willing to accept.
    I have found other people complaining about the same thing... Dreamweaver adding thousands... and in some cases 10's of thousands of blank lines.
    It is not magic pixie dust people... It is Dreamweaver that is doing this under specific conditions.
    It is Dreamweaver that did it...
    You guys want to gather around Hogwarts and talk about the mystical reasons this must have happened. Go ahead.. say hi to Harry and Hermione for me : )
    Just more proof how inept and ridiculousness a place like this is.
    How is this helpful to me as a customer?
    When what I need is a solution to the problem... a way to fix it or to save myself hours pof headache and lost time....
    Nope... instead I get the witches of Adobe conjuring up their mysticism...
    Really.... Really... If you cant nbe helpful... why just waste more time and precious data space on the internet with your rhetoric...
    Anyone have any >>>>>>>real<<<<<<< answers that are not delusional???

  • Standard buttons not displaying ALV when added button by creating PF status

    Hi  All,
    I have added a button(using SE41) in application toolbar for ALV grid using Factory method.But the problem is I am unable to see the standard tool bar buttons(Layout,Download,Mail etc).
    Even I tried adding buttons(using standard FCODES) to the PFstatus.Now the buttons are visible but the functionality is not working for all buttons.Its working only for Graphic and Change layout buttons.
    Can any one suggest...??
    -Phaniram

    Disregard DKS's response...that's the older stuff and you're using NetWeaver ALV.
    In SALV you can cause those buttons to appear, but you may need to copy the SALV_STANDARD GUI from one of the SALV* named program using SE80...sounds like you have that part, but you may need to turn functions ON...
    Perhaps something like this would help:
    data:  gr_f_list  type ref to cl_salv_functions_list,
             gr_alv     type ref to cl_salv_table,
    SALV toolbar & GUI functions
      gr_f_list = gr_alv->get_functions( ).     "Get Toolbar functions
      gr_f_list->set_all( abap_true ).          "All On
      gr_f_list->set_view_lotus( abap_false ).  "Lotus 123 off
      gr_f_list->set_view_excel( abap_false ).  "Excel in Place Off
      gr_f_list->set_graphics( abap_false ).    "Graph tool off
    For undesired buttons, set each tool OFF after turning all ON.

Maybe you are looking for

  • DataBase Adapter Issue

    Hi all, When i try to query the table using the Database adapter , i m getting the following error message *" ORA-04030 : out of process memory when trying to allocate 2024 bytes( kxs-heap-c,kghsstk)* " Experts please post the possible resolution for

  • Renaming a file in Finder changed with Snow Leopard somehow?

    I've used an AppleScript for ages to: 1. choose a file (a screenshot) 2. prompt for a new name 3. File is renamed by Finder with new name 4. compose a command to copy it to another server It seems Finder is not updating the "alias" to the file since

  • 'Package' command not working in Indesign CS5.5

    Hi Everyone. I am using Indesign CS5.5, and cannot create a 'Package' folder that collects all fonts and graphic assets used in a document I am working on. Using File>Package, the progress bar hurries through very quickly (way too quickly for a 80Mb

  • Arithmetic operators

    Hi experts, I need this : I have my variable num_pack = 0,04 type i.                    I need my variable becomes 1.                    Which operator do I need ( if exists ) ? Thanks in advance. Marco

  • Upconvert from LabVIEW 4.02 to LabVIEW 2011

    Wiii, my university library finally managed to find the missing disk from the book "LabVIEW power programming". Now I just wanted to check it out but all the VI's are to old. Can someone of NI upconvert them? I uploaded the .zip (with password) conta