icon on the title bar

Hello, I put an icon on the title bar image?

Hi @aashishsaini75. Here is my code:

import bb.cascades 1.4

Page {
    id: thePage
    titleBar: TitleBar {
        kind: TitleBarKind.FreeForm
        kindProperties: FreeFormTitleBarKindProperties {
            Container {

                layout: StackLayout {
                    orientation: LayoutOrientation.RightToLeft
                }
                rightPadding: -12
                Label {
                    textStyle {
                        color: Color.White
                    }
                    verticalAlignment: VerticalAlignment.Center
                    layoutProperties: StackLayoutProperties {
                        spaceQuota: 1
                    }
                    accessibility.labelledBy: todoLabelId
                }
                ImageView {
                    id: toggleExpanded
                    property bool checked: false
                    imageSource: "asset:///[email protected]"
                    verticalAlignment: VerticalAlignment.Center
                    horizontalAlignment: HorizontalAlignment.Center
                    accessibility.labelledBy: todoLabelId
                }
            } // Container

        } // FreeFormTitleBarKindProperties
    } // TitleBar
} // Page

Hope help you.

Tags: BlackBerry Developers

Similar Questions

  • How to put a small icon in the title bar of the main screen

    Hi all, I'm new to the BlackBerry Forum.

    I can display a small icon in the title bar in the main Blackberry screen to warn users when my application is received something and it is reduced?

    Thanks in advance!

    Yes you can do this by using the following code.

    ApplicationIndicatorRegistry reg = ApplicationIndicatorRegistry.getInstance();                EncodedImage image = EncodedImage.getEncodedImageResource("Indicator.png");            ApplicationIcon icon = new ApplicationIcon( image );            indicator = reg.register( icon, false, true);            indicator.setIcon(icon);            indicator.setVisible(true);
    
  • lack of the icon in the title bar

    for these days, the small icon beside the photo title in the title bar above the image disappeared. before I could grab this teeny tiny icon and attach the photo to a document, such as email, dragging on. now, I have to use the function "attach."

    the icon is also grayed out when changes have been made to the photo and not yet recorded.

    does this sound familiar to anyone? I have not changed anything on the computer.

    Well, I'm on an apple store to look at but probably of new macbook pro which has not upset photoshop at home.

    Mac 10.6.8

    2.66 GHz

    4 GB of ram

    MacBook pro

    I fixed the permissions, and it seems to be ok now. I would have thought of this first.

  • Rename and place the icon on the title bar of Flash exe file problem

    How to rename the title bar in the project Flash (.exe) file and replace the flash icon with my own icon file?
    Thank you very much!

    You need a 3rd party tool Flash projector, which there are a number:
    http://www.Flashmagazine.com/1100.htm

  • Icon in the title bar of label.

    Hello

    I wonder if there is a way to change stupid thei that appears in a window in which Webhelp is open. It's a small globe with a question mark that appears before the title of the WebHelp in the tab or window. I cannot find setting WebHelp or skin that controls it, but maybe I'm missing something?

    Thank you!

    Hello

    You talk about the favicon, see http://www.favicon.cc/. It's just an icon (.ico) file. There are two ways to change:

    1. replace whstart.ico by your own favicon.

    2. create your own icon and add the HTML code for the favicon in the same page that you want to use (excellent if you use lots of popup windows that would otherwise not use the favicon).

    Note: IE is notorious for not (or incorrectly) showing the favorite icon.

    Take a bow

    Willam

  • How to change the font of the title bar of the JFrame icon context menu?

    Hello world.

    I want to know how to change the font of the text that appears in the context menu is native to click with the right button on the icon that is completely left in the title bar of JFrames which use the default appearance for decoration (JFrame.setDefaultLookAndFeelDecorated (true); / / uses the metal L & F, theme "Océans").

    I searched and found nothing. I thought I could use what I learned to https://forums.oracle.com/message/9221826, but I couldn't find something that worked.

    Thanks to advance.t

    After a few more messing around, I finally did! I love so much it makes me a little sad Java how it is difficult to do things like that. In any case, I found a method here to recursively change the fonts of all components in a JFileChooser, but it does not work on the JPopupMenu (now I know the name) who jumps to the top of the icon in the title bar. So I messed around with this method a few casting and was able to change the fonts of the JMenuItems:

    public static void setSubComponentFont (Component comp[], Font font) {
        for (int x = 0; x < comp.length; x++) {
            if (comp[x] instanceof Container) {
                setSubComponentFont(((Container)comp[x]).getComponents(), font);
            }
            try {
                //comp[x].setFont(font);
                if (comp[x].toString().contains("JMenu")) {
                    for (Component y : ((JMenu)comp[x]).getPopupMenu().getComponents()) {
                        if (y.toString().contains("JMenu")) {
                            y.setFont(font);
                        }
                    }
                }
            } catch (Exception ex) {}
        }
    }
    

    I was inspired by this thread of utiliser.toString () .contains ().

    I also did with nested loops, so the path to the menu items can be seen:

    for (Component a : frame.getLayeredPane().getComponents()) {
        System.out.println(a.toString());
        if (a.toString().contains("MetalTitlePane")) {
            for (Component b : ((Container)a).getComponents()) {
                System.out.println(b.toString());
                if (b.toString().contains("SystemMenuBar")) {
                    for (Component c : ((Container)b).getComponents()) {
                        System.out.println(c.toString());
                        for (Component d : ((JMenu)c).getPopupMenu().getComponents()) {
                            System.out.println(d.toString());
                            if (d.toString().contains("JMenu")) {
                                d.setFont(font);
                            }
                        }
                    }
                }
            }
        }
    }
    

    Each System.out.println () gives an indication of what should go on what follows if State, so they should be used one at a time. This does not work for the title of the JFileChooser however font. When I have time I'll either look no further away inside or ask another question.

    So, if someone else needs like I did, it's here. As a tip, System.out.println () and. toString() are your friends! That's how I learned what was contained in each object, and which path I needed to take to get to objects of interest.

    Thanks anyway!

  • Icons in the task bar disappeared

    Original title: XP Pro not written Lac program memory information

    After reinstallation of programs or using the Task Manager to stop some sandbox process, then from the programs again to return the status bar icons in the status bar, they disappear after a reboot or shut down and restart. I have a Dell Optiplex GX280, 3.4 GHz with 3 GB of RAM. Two of them are new modules of a GB of quality and the other GB is two older modules of 512 MB. It was an intermittent problem and the tray would sometimes load icons of the toolbar State but now only the clock and running network icons are there after the reboot. I changed the bar of tasks and Menu properties back to try to reset the status bar, but nothing seems to help. A new facility is out of the question with all the security and other updates that need to be reinstalled on this old of a BONE, especially with "dial-up". I just restored a full backup of my external hard drive, but it made no difference. I have a laptop Dell XP Home that works very well. I didn't something different with the XP Pro that I did not go to the laptop.

    Any suggestions would be greatly appreciated.

    Hello

    1. you remember to make changes before the hardware or software problem?

    Test the issue in a new user account and check if the problem persists.

  • Lost icons in the notification bar

    got a runtime error while watching a TV show. computer is turned off. It is on mute when he was arrested. volume, percentage load and the network icon in the notification bar. using vista and under control panel hardware and sound missing in order to adjust sound. What to do

    * original title - lost of icons in the notification bar. There's also list of Control Panel. volume, network and battery charge percentage *.

    Notification icons
    http://www.Vistax64.com/tutorials/106787-notification-area-system-icons.html

    The tutorial has 3 methods.

    Method is a general method which, unfortunately, rarely works because that box, you need to check usually grayed (unclickable).

    Two method is only for Vista Ultimate and Enterprise.

    Three method applies to all versions of Vista.

    Use the Reg file download. It is simple and easy.

    * Do
    sure that you restart the computer to complete the
    procedures.


    P.S. Despite what the tutorial said, it is best to keep these files reg on the desktop. They will come to hand the next time that you lose one of these.
    I had to use several times. They have the bad habit of going awol.

    Four method is via the registry editor. If you are comfortable with editing the registry, give it a try.

    The easiest and safest way is three method.

    ......................................................................................................
    You can also do a system restore. Choose the date where all of your missing icons were present as your restore point.

    Start button > Search box, type system restore > press the Enter key > uac prompt > click on choose a different restore point > next > select dates as your restore point, click
    > Next > finish
    To sit and wait. The machine restarts when it's done.

  • The title bar has stopped working and now I can't close the page with the cross or minimize or maximize, cannot close the pages

    Toolbar is not functional cannot use the cross at the top to close and cannot minimize or maximize the pages.

    What program is this (name and version)?

    Are you sure that the title bar is not hidden because the screen is in full screen mode?  Make sure it is in normal mode (usually hit the ESC key will do that).  When you say that you "cannot minimize or maximize or close pages" is because you don't see these icons or press them, and they do not work?  You see the title bar?  Is it the same with EACH program or all instances of this particular program, or only with this page?

    If it's an open program, you can still use the toolbar at the bottom of the screen and do a right click on the prgram open and then click Close.  If it isn't there, it can also be hidden. Move your mouse to the bottom of the screen and see if the toolbar appears.  If so right click on it and select properties and uncheck Hide able toolbar and click OK to close - that way it will always show (except when it is in full screen mode).

    You can also press CTRL-ALT = DEL to bring up the Manager tasks, go to Applications and select the program that you want to close, and then click end task.

    If you have access to the Menu bar, you can usually go into file, and then click close tab or simply close.

    If you can help me with answers to my questions (assuming that what I said has not solved the problem), then I will answer you with some suggestions to solve the problem (whatever it is)-, but there are too many possibilities without knowing more about the problem.

    Thanks and good luck!

    Lorien - MCSA/MCSE/network + / has + - if this post solves your problem, please click the 'Mark as answer' or 'Useful' button at the top of this message. Marking a post as answer, or relatively useful, you help others find the answer more quickly.

  • Don't want to see the title bar, address bar, toolbar mode of operation.

    Jin

    I need to install the application on the client side.
    Here, I don't want to show him the title bar, address, bar the toolbar in operation.
    I want to, the application must be run in either full-screen. For this I created an icon on the desktop, through this user can acess application when the user clicks on that icon then user out by the log in page.
    Purposes of titles, I want Address Bar etc.
    How can I use applications using the full screen.


    Thank you

    Hello
    to launch Apex, we use a file like this hta:



    Apex

    <>
    ID = "MyApex".
    applicationName = "Apex".
    Border = 'thin '.
    borderStyle = 'normal '.
    Caption = 'yes '.
    contextMenu = 'yes '.
    Icon="C:\apex\apex.ico".
    innerBorder = 'no '.
    maximizeButton = 'yes '.
    minimizeButton = 'yes '.
    navigable = 'no '.
    Scroll = 'yes '.
    scrollFlat = 'no '.
    selection = 'yes '.
    showInTaskBar = "yes".
    singleInstance = 'no '.
    sysMenu = 'yes '.
    version = "1.0".
    windowState = 'normal' >


    Maury, name the file apex.hta and try out it.

    Gianluigi

    Edited by: gianluigi.trento the 15.09 8-Apr-2010

  • Is it possible to add a mute icon on the status bar

    I understand the desire to keep the clean status bar, but a mute icon would be really useful for many users. This is my first iPhone and I had a LIFEPROOF case to protect it. The problem is that this case does not allow me to determine the setting of the switch ring looking from the side of the phone. The only way that I can know if the ringer is on is to flip the switch back and forth while watching the status of ringtone icon screen.

    Yyou possibly tell there is a problem with the case, but I bet it's true for most cases, in particular the raincoat water ones.  If Apple does not support to add even an icon to the status bar at least Apple could put on display today ' hui / Notifications of menu drop-down.

    You can provide feedback to Apple here, http://www.apple.com/feedback. This is a user to user support forum, and Apple is not here involved. It is the only way for them to know you want to see a change.

  • My phone icon left the lower bar.  How can I move it back

    My phone icon left the lower bar.  How can I move it back

    Press and hold on the icon of the app until it wiggles and then drag it in the dock. After you do this, press the home button to stop agitation apps. Note that you can have 4 icons in the dock.

    Organize the applications on your iPhone, iPad or iPod touch - Apple Support

  • With 43 on Mac version in the title bar transparency disappeared, what happened?

    Before the upgrade to version 43, the title bar/app window was transparent to match Yosemite/El Capitan, and now it's over...

    I'm not using a theme, and I'm not in private browsing mode.

    By help on Reddit:

    This bug deleted dynamism (blur effect) in 44: https://bugzilla.mozilla.org/show_bug.cgi?id=1161565 the patch has been raised and then to 43.
    You should be able to bring back vitality by using a custom stylesheet:

    1. TitleBar {}
     -moz-appearance: -moz-mac-vibrancy-light
    

    }
    You can also get dark shine using - moz-mac-dynamism-black

    Here is a similar workaround: http://apps-reviewed.blogspot.com/2015/01/make-firefox-translucent-in-os-x.html

  • How to remove the text of the icons in the bookmarks bar?

    Since the last update all my icons in the bookmarks bar are now show text when you move them. I prefer the right icons if anyone can help?

    Thank you all for the suggestions, the problem is now resolved, the problem was a framework within the roomy Bookmarks Toolbar addon.

  • How can I remove a distracting green icon on the search bar?

    Please find attached image of distracting green icon in the search bar. I saw 'elegant' installation options and editing of CSS scripts, but these make everyone feel as very complicated for a relatively simple problem; not to mention other users looking for a solution maybe not programmers, nor confident in editing scripts. This overlap of the icons is not aesthetic and constantly draws the eye to the search bar.

    This is the search bar 'new '.

    If you want to restore the window previously used independently to manage
    search engines, you can toggle this false with a doudle click pref
    on the topic: config page: browser.search.showOneOffButtons = false
    You will need to close and restart Firefox to make it work properly.

Maybe you are looking for