Two buttons in the title bar

Hello

Please, I need a help. I want to put two buttons in the title bar, but I can't (sorry, is my first application using Cascades).

Can you help me with the code for the QML file?

PS: Sorry, but my English is basic

It's really easy to make!

here:

    titleBar: TitleBar {
        title: "Title"

        dismissAction: ActionItem {
            title: "Cancel"
            onTriggered: {
                // cancel code
            }
        }

        acceptAction: ActionItem {
            title: "Save"
            onTriggered: {
              // save action
            }
        }

    }

Don't forget to mark as resolved and like my post if it worked!

Tags: BlackBerry Developers

Similar Questions

  • I have an iMac (2015).  When I open Garageband, there are only two buttons on the control bar, play and stop.  No record button, rewind or ff.  Where are they and how can I make it appear?

    I have an iMac (2015). When I open Garageband, there are only two buttons on the control bar, play and stop. No record button, rewind or ff. Where are they and how can I make it appear?

    Try to enlarge the GarageBand window by dragging the corners of resizing.

    If she looks like this, your window is small:

    You can also try to click the double arrow at the end of the toolbar to reveal more options.

  • FF9 - hide window control buttons in the title bar (min, max, close) with userchrome.css?

    I use FF9. I userscript.css hide app titlebar button and orange, but the buttons control window always visible! I can't find the script working.

    I don't need min-max-closing button and used to hide if possible without extension.

    Here's screenshort:
    http://s018.Radikal.ru/i522/1201/50/f6a6ea445507.jpg

    If you use the full screen mode and you have these buttons on the Navigation bar, then you should use this code.

    #window-controls { display:none!important; }
  • Button in the title bar of a report

    Hello

    I use a report where the first column is a

    apex_item. CheckBox (1, "TBL_WERKNEMERS". "" WERKNEMERID","CHECKED")" "

    But in this case the heading above this column is an empty string. What I want is a check box as in tabular forms which can select/deselect all items in the report. How can I place a checkbox with this feature in the title bar?

    Thanks in advance.

    Bram.
  • How to move the buttons to the title bar firefox (closing/max/min) from left to right?

    Note that windows normally on the right side title bar buttons, but firfox is on the left side

    I just found the solution:

    Reach

    Subject: config

    Search
    Intl.uidirection.ar

    change it from RTL to LTR
    

    THX 4 all your help and answers or even that it does not work xD

  • How to restore the title bar? Title of the page displays only the tabs - this is not good enough

    I'm used to be able to see the title of the page in the title bar. Firefox has removed this feature, and now I have to mouse over the tab to display the title of the page. It is another example of extracting the characteristics that people use for reasons that I don't understand. So far, I had to install two 'add ons' to restore the common features on previous versions - and always on IE and Chrome.

    1. Right-click on a zone empty of the tab bar and select Customize.
    2. Click the button on the title bar in the lower left corner.
    3. Click the Customize output button when finished.
  • I want the tabs in the title bar on FF6.

    In FF 4, 5 and 6, until today, the tabs were in the title bar where I want them to be. They are now under the title bar. How to make their return in the title bar? About: config, browser.tabs.drawInTitlebar; value of true.

    The tabs are only in the title bar if the window is maximized (Alt + space or the button in the title bar).

  • Two monitors: right of the title bar part cannot be moved

    Hi Ho

    When I use two monitors in landscape mode (monitor extends the desktop of the screen from left to right), a part of the title bar of the program and windows Explorer is not responding. This does not happen when I use a single monitor. Since I use windows explore pillar-shaped, it is quite annoying, because I need to aim the small area that is still sensitive to drag a window exactly.

    The area on which is the upper right, just next door to reduce, enlarge, close buttons. Note that the thin strip under these buttons is responive above the entire title bar. Here is a picture of clarification:

    http://S27.postimg.org/kvhswknoz/windows_title_bar.jpg

    I've marked the sensitive area with the blue wire, the area on which the red. My windows are much thinner. The area on which remains the same size, regardless of the width of the window.

    I use Windows 7 pro, with almost the latest updates.  My left monitor is plugged as number 2, but is set as the main monitor. This is why the task bar on the left monitor.

    OK, I found the culprit.

    Is AMD Hydravision (the title of the Startup items) that is causing the problem. But I had to disable the Catalsyst control center as well, because this would reactivate Hydravision automatically during startup.

    Thank you, Sandy, for your help.

    To resolve the problem, run msconfig, activate the Startup tab and disable the AMD Hydravision and Catalyst Control Center.

  • Firefox on Mac used to have a button toggle toolbar on the title bar. Can I get it back?

    What happened to the button toggle tool bar that used to be on the far upper right side of the title bar? FF4 on a Mac.

    This?

  • A region at the only border only no title or the title bar

    Hello Expert,

    I'm trying to create a border around the region, essentially a region with just the bar border and no title or title. There are no simple approach available for this option. Anyone can shed light on this question.

    APEX Version: 4.1.0.00.32

    Theme: Builder 2 blue (I guess that's the theme 2 in the APEX)

    I tried various option using the model of the region without border, report region, region of report without title, without model, etc. as well as a style following CSS code, I've added in the header section of the Page.

    This option creates the border on top of the elements of the region, but do not cover the elements of the region as the elements, who was also in the model without button nor titles

    < style type = "text/css" >
    #CRR {border-style: solid;-CRR is a static ID for the region}
    border-width: 1px ;}
    < / style >

    I also tried to create a model with a new region and removed from the class title and the button class, which has created a region without borders, but there is no line on top than on the sides, which looked so weird. I don't know what is the right solution, but a solution with the new model of the region which does not create that border and no title and the title bar is good.

    Kindly please let me know an approach if everyone is aware.

    Thank you
    CP

    cpora007 wrote:

    Is certainly useful, it does not create the border, but the border is created for both regions.

    It is not the case. It applies only to the #CRR region.

    I have four total regions. At the top is breadcrumb area, below which is region report showing details of base. The third region is a region list waith browser tab only and it is a region without borders. Regions of fourth has all the elements of the form for which I wan the border only. With your suggestion, I am able to get the border, but it covers now the two region 3 and 4. I just only on the 4th region. The model region of fourth, that I modified to 'Region without button or title' the way you suggested.

    Region 3 is cut off from normal flow by excess of s floatthis theme inexplicably applies to virtually everything. This causes the region 4 up and region 3 is rendered in its box.

    Try to make the region 3 model No., or using this to clear the floating region:

    #CRR {
      clear: both;
      border: 1px solid;
    }
    #CRR .bl-body {
      float: none;
      padding: 10px;
    }
    

    The region 3 and region 4 same class .bl-body, hjowever I did not have any static id for region 3. I tried with the static id in region 3 of naming with different name, but that has not changed anything.

    None of this has to do any (other than this class .bl-body is floating).

    Ideally I would prefer a new model of the region, so I can use it for several pages.

    You probably want to create your own model of region from scratch, something like:

    #BODY#

    with a stylesheet as:

    .bordered-region {
      clear: both;
      border: 1px solid;
      padding: 10px;
    }
    
  • Is there a way to put the system buttons in the tab bar?

    I want to get the most out of the size of my screen, so I want the buttons triple system (minimize, maximize and close) to go even when I am running FF on my tab bar - windowed. Firefox (v37.0.2 on Win7) does this automatically when it is enlarged, so this should be possible, I guess. I did some screen shots to clarify what I'm talking about.
    I tried to turn off the title bar in customize and gave me some of my height screen back but unfortunately does not solve this problem.

    Thanks for reading and any help would be greatly appreciated!
    bad1080

    In theory, you can use the custom style rules to raise the bar of tabs, but if an add-on is working, it would be much easier. Maybe this one?

    https://addons.Mozilla.org/firefox/addon/hide-caption-titlebar-plus-SMA/

    The title of this one is promising, but opinions are very mixed recently, maybe because it was updated in 2012:

    https://addons.Mozilla.org/firefox/addon/tabs-always-in-titlebar/

  • The title bar does not appear, it is not a menu option view

    I remember I once a title bar above the horizontal list of tabs, which shows the title of the currently opened tab. But it is not there now; and there is no option in the menu 'View' (which is, I think that I've seen it before) to add. What happens, and how to get the title bar back?

    You have this option on Mac in the palette to customize?

    You can enable or disable switch title bar via the "Title bar" button at the bottom left in the palette to customize window.

    Make sure that you run not Firefox mode full screen (press F11 or Fn + F11 to toggle; Mac: Command + SHIFT + F).

  • I'm visually impaired, and due to changes in UI v29, I see is no longer the menu bar where it is hidden in the title bar. How can I move it back to where it belongs?

    I have two computers at home and their improved to 29 of Firefox not knowing it contained UI heavy Exchange. I use the menu, bar and it is now superimposed on the title bar, where due to a visual disability, I can no longer see. Both systems have contrasting colors lit (white on a black background - forget Aero and trick themes), and Firefox is configured to use the system colors.

    Prior to version 29, the menu bar has white text on a black background. now it's on a background of colorful and almost completely invisible to me. The expansion is via the Windows Magnifier and Magnifier added to some Microsoft mouse top of range.

    As you can see on a brand new Virgin of installation of Firefox, no addons, no pre-existing profile, version 29 puts the menu bar on the taskbar. And Firefox, set up as I have, on a configured system with contrasting colors (black in my case) enabled, Firefox is unthemeable.

    But no matter, I Solver this myself. I started in XP and not update Firefox to find a new addon named "Classic theme restaurant" Who did the trick. This mark as resolved. But...

    I wish (not just Firefox) developers who want to fancy to the top of their interfaces would think how it would affect people with visual impairments. We use computers too.

  • Why there is no site title in the title bar of Firefox?

    I ' v just upgraded to Firefox 5, and there is no site title in the title bar of Firefox, as it used to be in point 3.6. What I have to turn somewhere in the options, or is it something else?
    Thanks in advance!

    You don't see the title in the title bat if the menu bar is hidden (view > toolbars) and the Firefox orange button.

    • Press F10, or press the Alt key to bring up the 'Menu Bar' temporarily if the menu bar is hidden.
    • Use "Firefox > Options ' if the menu bar is hidden.

    You can watch this extension.

  • Right-clicking on the title bar stops Ethernet

    I have an application that receives a stream of messages 19 ter by Ethernet to 12.8 kHz. Breast of 19 b, I have a meter to verify the integrity of the message, ensuring that I don't miss any messages. The data flow works and my application can process the information, but it is not robust. If no title bar (of my app running) user clicks, it causes the Ethernet traffic to stop for the duration of the click; That is to say. now the right button, the lights on my switch to solids instead of Flash. Due to the higher frequency, several messages are not received by my computer and the integrity meter is off, that sends a message of 'kill stream' to the other device. There are occasional problems with moving the panels around, but I turned off ATTR_MOVABLE and ATTR_CAN_MINIMIZE with SetPanelAttribute() for the Panel that initiates the flow, and I hide all the other panels, thus only interactions that can be made of Panel is click on a command button to send a message to "kill stream. , or X (close) the Panel, which also sends a message to "kill stream.

    I was hoping there was a SetPanelAttribute() call to remove the context menu of the right click in the title bar, but I saw nothing. I wonder if it is still possible because there seems to be some Windows features.

    After some research, I wonder if using SetPriorityClass of WinBase.h , that's what I want to deal with, but I'm not familiar with the substance of the Win32 API or know much about the son, etc.. If there is an easier way, I would be very open to him.

    I appreciate any idea and can provide more information if necessary.

    The application was developed using v10.0.0.

    Embarrassing... There is a SetPanelAttribute() that deals with this problem; ATTR_TITLEBAR_VISIBLE.

    Can't believe I forgot that.

Maybe you are looking for