How to Change an Annotation's Right Menu?

I want to change the "Stamp" annotation's right menu to a Custom menu,How to achieve it in my plug-in? Please guide me~~~
Any help would be appreciated.

Hi, Irosenth
Thanks for your reply.
I changed :
PDAnnot newAnnot = PDPageCreateAnnot (page, ASAtomFromString("Stamp"), &fr);
to:
PDAnnot newAnnot = PDPageCreateAnnot (page, ASAtomFromString("MyStamp"), &fr);
so the Stamp's original pop-up menu will no longer display, but how to create a new pop-up menu for "MyStamp"?
LusterSir

Similar Messages

  • How to change text to read right to left-InDesign CC 2014?

    How to change text to read right to left-InDesign CC 2014?

    I have described it here, step by step:
    How do I change text direction adobe indesign?

  • How to change color of DHTML sub menu list

    Hi all,
    In my application i am using DHTML submenu list. But I have to change the color of
    the menu list which is selected currently.
    In interactive report how to fix the column width , because if one column has big string it's going to the right side. My requirement is after fixed column width it has to come in the second line.
    pls help me. I am in urgent need.
    thnks
    pnr

    im a bit confused with the post so hopefully this will help you, if not then let me know.
    I think the problem is that in your renderer your saying
    setBackground(header.getBackground());which is setting the backgound of the renderer rather than the selected item, please see an example below, I created a very simple program where it adds JLabels to a list and the renderer changes the colour of the selected item, please note the isSelected boolean.
    Object "value" is the currentObject its rendering, obviously you may need to test if its a JLabel before casting it but for this example I kept it simple.
    populating the list
    public void populateList(){
            DefaultListModel model = new DefaultListModel();
            for (int i=0;i<10;i++){
                JLabel newLabel = new JLabel(String.valueOf(i));
                newLabel.setOpaque(true);
                model.addElement(newLabel);           
            this.jListExample.setModel(model);
            this.jListExample.setCellRenderer(new RowHeaderRenderer());
        }the renderer
    class RowHeaderRenderer extends JLabel implements ListCellRenderer
        JTable theTable = null;
        public Component getListCellRendererComponent(JList list, Object value,
                                                      int index, boolean isSelected, boolean cellHasFocus){
            JLabel aLabel = (JLabel)value;
            if (isSelected){
                aLabel.setBackground(Color.RED);
            }else{
                aLabel.setBackground(Color.GRAY);
            return aLabel;       
    }

  • How to change the position of a menu?

    Hello,
    I'm a new dreamweaver developer so I would like to ask you
    few questions.
    If I have a sprite menu that is positioned by default in the
    left border of the page, how can I change it's position inside the
    page?With css?How?
    I'd have to put inside my page also a logo image but, just as
    menu, I am unable to put it in the right part of the page; so I was
    wondering how to change its position too.
    Thank you,
    Kind Regards, Luke14free

    You would change its position by changing the position of its
    container. We
    would need to see your page and its code to know how to do
    that.
    Murray --- ICQ 71997575
    Adobe Community Expert
    (If you *MUST* email me, don't LAUGH when you do so!)
    ==================
    http://www.dreamweavermx-templates.com
    - Template Triage!
    http://www.projectseven.com/go
    - DW FAQs, Tutorials & Resources
    http://www.dwfaq.com - DW FAQs,
    Tutorials & Resources
    http://www.macromedia.com/support/search/
    - Macromedia (MM) Technotes
    ==================
    "luke14free" <[email protected]> wrote in
    message
    news:f2pntm$lf1$[email protected]..
    > Hello,
    > I'm a new dreamweaver developer so I would like to ask
    you few questions.
    > If I have a spry menu that is positioned by default in
    the left border of
    > the
    > page, how can I change it's position inside the
    page?With css?How?
    > I'd have to put inside my page also a logo image but,
    just as menu, I am
    > unable to put it in the right part of the page; so I was
    wondering how to
    > change its position too.
    > Thank you,
    > Kind Regards, Luke14free
    >

  • How to change font-size of application menu

    I want to change font-size of application menu. How?

    Hi,
    To change the font size of the Application menu, you need to change main.css file.
    at 'body, td, input, select, textarea' class.
    For more detail about main.css, please refer Bookshelf
    Siebel Developer's Reference at [8 Cascading Style Sheets].
    Regards,
    Joseph Arul Dass

  • How to change options in Run time menu while labView was running

    Hello Good Afternoon,
        I m Using LabView 8.5.How to change the options in Run time menu for any control while Labview was running
    Thanks 
    Jai
    Jayavel
    Solved!
    Go to Solution.

    Hi Jai,
    Try the below attached VI and let me know if u still need some explanation.
    Rgds,
    Venky
    Attachments:
    Run Time Menu.zip ‏6 KB

  • How to change the color of navigation menu text?

    Hello guys,
    is there any way to change the color of navigation menu text? (Home, Contact About us,etc)
    Thank you,
    Cheers

    To create your own navigation bar, you can use a textbox and use colour fill with any colour you want and then enter the names of your pages in this and create hyperlinks to these pages. The text can then be any colour you want.
    You can also use shapes if you want to and use the shapes to create individual buttons.
    To hide the original nav bar, go to page and it has a couple of boxes with hide nav bar and include in page. Uncheck these and the original nav bar will disappear. You can't delete them however.

  • How to change hover state on spry menu dropdowns?

    I've spent 4 hours making changes to the style sheet. I cannot figure out how to make the drop-down menu background change when you mouseover. The text color changes, but the background doesn't. I keep making changes to the stylesheet, and sometimes I see no difference.
    Also... trying to change the font color on the main menu text. Style sheet LOOKS right, but doesn't display any change.
    ALSO, my border is wider than the submenus. They are both set to 15ems. Maybe I don't understand ems??? I appreciate all your help out there! Sorry for not taking out all comments from code...
    http://duenorthdesign.com/pcm/index2.html
    ul.MenuBarHorizontal {      margin: 0;      padding: 0;      list-style-type: none;      font-size: 100%;      cursor: default;      width: 748px; } /* Set the active Menu Bar with this class, currently setting z-index to accomodate IE rendering bug: http://therealcrisp.xs4all.nl/meuk/IE-zindexbug.html */ ul.MenuBarActive {      z-index: 1000; } /* Menu item containers, position children relative to this container and are a fixed width */ ul.MenuBarHorizontal li {      margin: 0;      padding: 0;      list-style-type: none;      font-size: 100%;      position: relative;      text-align: left;      cursor: pointer;      width: 8em;      float: left; } /* Submenus should appear below their parent (top: 0) with a higher z-index, but they are initially off the left side of the screen (-1000em) */ ul.MenuBarHorizontal ul {      margin: 0;      padding: 0;      list-style-type: none;      font-size: 100%;      z-index: 1020;      cursor: default;      width: 15em;      position: absolute;      left: -1000em; } /* Submenu that is showing with class designation MenuBarSubmenuVisible, we set left to auto so it comes onto the screen below its parent menu item */ ul.MenuBarHorizontal ul.MenuBarSubmenuVisible {      left: auto; } /* Menu item containers are same fixed width as parent */ ul.MenuBarHorizontal ul li {      width: 15em;      font-size: 12px;      background-color: #C2CA9A;      color: rgba(0,0,0,1); } /* Submenus should appear slightly overlapping to the right (95%) and up (-5%) */ ul.MenuBarHorizontal ul ul {      position: absolute;      margin: -5% 0 0 95%; } /* Submenu that is showing with class designation MenuBarSubmenuVisible, we set left to 0 so it comes onto the screen */ ul.MenuBarHorizontal ul.MenuBarSubmenuVisible ul.MenuBarSubmenuVisible {      left: auto;      top: 0; } /******************************************************************************* DESIGN INFORMATION: describes color scheme, borders, fonts *******************************************************************************/ /* Submenu containers have borders on all sides */ ul.MenuBarHorizontal ul {      border: 1px solid #61270e; } /* Menu items are a light gray block with padding and no text decoration */ ul.MenuBarHorizontal a {      display: block;      cursor: pointer;      background: 61270e;      padding: 0.5em 0.75em;      color: ffffff;      text-decoration: none; } /* Menu items that have mouse over or focus have a blue background and white text */ ul.MenuBarHorizontal a:hover, ul.MenuBarHorizontal a:focus {      color: #61270e; } /* Menu items that are open with submenus are set to MenuBarItemHover with a blue background and white text */ ul.MenuBarHorizontal a.MenuBarItemHover, ul.MenuBarHorizontal a.MenuBarItemSubmenuHover, ul.MenuBarHorizontal a.MenuBarSubmenuVisible {      background: transparent;      color: #61270e; } /******************************************************************************* SUBMENU INDICATION: styles if there is a submenu under a given menu item *******************************************************************************/ /* Menu items that have a submenu have the class designation MenuBarItemSubmenu and are set to use a background image positioned on the far left (95%) and centered vertically (50%) */ ul.MenuBarHorizontal a.MenuBarItemSubmenu {      background-image: url(../images/bkd_navtop.jpg);      background-repeat: repeat-x;      color: rgba(255,255,255,1);      font-family: "Yanone Kaffeesatz", Verdana, Geneva, sans-serif;      width: 149px;      font-size: 23px; } /* Menu items that have a submenu have the class designation MenuBarItemSubmenu and are set to use a background image positioned on the far left (95%) and centered vertically (50%) */ ul.MenuBarHorizontal ul a.MenuBarItemSubmenu {      background-image: url(SpryMenuBarRight.gif);      background-repeat: no-repeat;      background-position: 95% 50%; } /* Menu items that are open with submenus have the class designation MenuBarItemSubmenuHover and are set to use a "hover" background image positioned on the far left (95%) and centered vertically (50%) */ ul.MenuBarHorizontal a.MenuBarItemSubmenuHover {      background-image: url(SpryMenuBarDownHover.gif);      background-repeat: no-repeat;      background-position: 95% 50%; } /* Menu items that are open with submenus have the class designation MenuBarItemSubmenuHover and are set to use a "hover" background image positioned on the far left (95%) and centered vertically (50%) */ ul.MenuBarHorizontal ul a.MenuBarItemSubmenuHover {      background-image: url(SpryMenuBarRightHover.gif);      background-repeat: no-repeat;      background-position: 95% 50%; }

    The good news is, Spry components generate their own CSs files so you know where to start when customizing. From there you can either go into the CSS file itself, or use the CSS styles panel in Dreamweaver.
    if you're looking within the CSS file, you first need to find the block the styles the particular element you want to change, and tweak the values. However, if any of the attributes are inheriting their states from a parent rule, then you need to add that attribute to override the parent setting. So that means making sure you're using the right attribute and getting the syntax right.
    If you use the CSS panel, select all, find you way to the correct style sheet, expand it and find the rule you need to change. You can set these parameters in the area underneath, or just double click the rule in the upper tree and display the CSS rules dialog. This is my favorite as it displays exactly what is contained in the style sheet in visual form. You can change values easily and add new attributes knowing that it will write the correct syntax. This should make it very easy to add hover states for the background and text, dimensions for the submenus and borders. For sizes and borders, I prefer pixels, but you can also add borders per side of the containing box - it doesn't have to be the same border all the way around.

  • How to change duration of music on menu?

    Adobe Premiere Elements 7.0 - Windows Vista 64bit
    I'm getting there. (Thanks to your help!)
    I started from (almost) "scratch" so I'd have a nice "clean" video to burn to a DVD. I've reset all my chapter markers. Perfect, in Preview. I've chosen my menu and adjusted the motion scene selection buttons. Gorgeous, in Preview. I don't like the "default" music that comes with the menu I chose. I read some old threads here and found there is a 30 second limit, so I used Audacity to cut a WAV clip that's 16.23 seconds long to use as a loop. Here's the problem:
    I clicked "Browse" and selected the same music clip for the Main Menu and each of three successive Scene Selection pages. Works fine on the Scene Selection pages, but the Main Menu won't play past 13 seconds for some inexplicable reason. I tried manually adjusting the "duration" to 16.23, but it snaps back to 13 as soon as I hit Preview.
    I've closed the program, restarted my computer, made a new (identical) music clip (just in case the Main Menu didn't want to "share") but it still won't take it. It plays the first 13 seconds then abruptly loops back to the start, which is NOT a *smooth* transition - but it would be, IF it would play the whole 16.23 seconds like the other menu pages do without any problem.
    I'm open to suggestions, but I sure hope I don't have to start over again. Oh, BTW - I tried switching to a totally different Disc Menu, just out of curiosity, and that one played the whole music clip on the Main Menu page without a problem... but I don't like the look of that menu, I want the other one - the one that's giving me grief (of course). Don't understand why it would work on one and not the other.
    Please advise. Many thanks in advance. Cheers, Val
    To answer a question one of you (Bill?) asked on the previous thread about my source material --
    It was originally a PAL video cassette, converted to NTSC DVD. It's all on my computer now - four VOB files: three @ .99GB each, and one @ 691 MB. It's a one-hour Peter Allen TV Special broadcast in Australia. I am removing the advertising and making a menu that will allow selection of each song individually. I want more of a "concert" and less of a "TV show" as the finished product.

    Here are the results of my test of the Broadway Menu Set and the exact steps that I used. It starts a bit before the work with the Video and Audio, but this might be useful to someone creating a Menu Set for use with PrE.
    I got the Standard (4:3) PSD’s for the Broadway Menu Set, both the Main Menu (mm) and Scene Selection (ss), plus the MPG and the MP3 files. To get these Menus to display in PrE’s Create Menus selection area, I Opened the PSD’s in Photoshop, and created the PNG “thumbnails” for them, using the naming convention of the other PNG thumbnails as my guide. I first resized each PSD to 160 x 128 pixels, and then did a Save_As_PNG-8, using the correct naming convention, used elsewhere. These were placed into a new “(V) Broadway” folder with the PSD’s, the Motion Asset MPEG and the Audio MP3 file. All displayed fine in PrE 4.
    In a PrE Project, I took the original Broadway MPEG and used TimeStretch to increase its Duration to the 29;20, that I had used before (that would match my Audio file from earlier tests), and did a Share, choosing MPEG. This resulted in an m2v, but that worked fine.
    In PrE’s Create Menus Panel, I chose the new, stretched m2v, and the Duration changed to match the 29;20 Duration of the Motion Asset. Next, I linked to the previous SmartSound WAV, that was edited to have a Duration of exactly 29;20. The Duration for that Asset changed to 29;20 instantly.
    I previewed and the searchlights were now slower (as was to be expected) and the limo was also slower pulling in and out. The Menu’s Motion Background was smooth, but slower. The new Audio with Fade-in and Fade-out, played perfectly, and the Menu Looped very nicely. Actually the Looping was now better than with the original MPEG and MP3 Assets! This was a nice surprise, as there was a bit of a jolt, when the original Audio Looped. Not sure what could be done to eliminate that, but think that it would be easily accomplished in Audition, or Audacity. Maybe a test for another day.
    I burned a DVD RW and the Menu worked perfectly. I did not complete the test by altering the Scene Selection Menus (in my test Project, I needed three of these), but feel confident that they would function the same way.
    In conclusion, if one needs to use other Audio source files, this can be done, so long as one takes two things into consideration: the Video Motion Asset will determine the Looping/Duration, and the Duration must be < 30;00. I chose 29;20 to give myself a bit of headroom. Now, one needs to consider the visual effect of using TimeStretch to modify the Duration of a Background Video - here, it was fine. The Audio needs to match perfectly, or be ever so slightly shorter (I’m talking about a few Audio Units here - slight indeed), than the Video Asset.
    Now, one is still limited to the 30;00 Duration limit, in PrE, but up to that point, the chosen Audio can be just as long as the Video.
    I strongly recommend using a short Fade-in and Fade-out on the Audio, so that there is a lead-in/lead-out that will keep from having harsh jumps with the Loop.
    Hope that this helps someone in the future.
    Hunt

  • How to change ebooks with PLR rights?

    Hello, I have 5 auto insurance related ebooks with Private Label Rights  that have tips on auto insurance quotes with video, diagrams and graphics. However my problem is that I want to add the text that is spoken in the video above plus add my own unique tips and tricks.......The problem? I have no way of editing that darn ebook PDF! Is there some type of program will make editing a PDF ebook a breeze? Thanks.

    Ask the author for a un-protected version.

  • How to change the default font (Noteworthy) in Preview Annotation Note ?

    How to change the default font (Noteworthy) in Preview > Annotation > Note ?
    Thanks for any help guys. Noteworthy is horrible, in my view. But this does not matter. I simply do not want to use it, and woudl be fine with having helvetica back as the annotation typeface.
    Neither is Preview responding to changes I attempt in the type menu, nor did I find an entry when using “defaults read com.apple.Preview” in the Terminal.
    Any idea? Cheers.

    Sorry if this doesn't apply in Mountain Lion (no way to look at ML right now), but I see this in Preview under Mavericks:
    I click the annotation button (circled in red) and draw a box. I can then change the text to any active font using the drop down menu (circled in green).

  • How to change the color of Menu links in obiee

    Does anyone knows how to change the colors of Menu links in obiee. With menu I mean the menu links default right top (Search, homepage, Catalogus, Dashboards, new, Open). This should be set in skin and style files, not? I searched a lot. I could not find It. It is now Oracle blue, we want to change this.
    obiee 11.1.1.5.
    Thanks

    You have to customize portal banner and portal content CSS files as needed in OBIEE server.
    below links will guide u but will will not tell you exactly but your req can be done by customizing portal content and portal banner CSS files. try to identify the exact code using firebug in mozilla.
    http://www.rittmanmead.com/2009/04/customizing-obiee-dashboard-banners/
    Customization of login page, banner,logo in obiee11g
    Thanks
    Jay.

  • How To Change Hyperlinks And Nav Menu Colors

    I continue to see people stating that it's impossible to change hyperlink colors and navigation menu colors until after you publish your site. This is not true. It's quite easy to update your templates with the colors YOU want and when you update the template, you never have to mess with any post-processing. You make a new page? Your colors are already there.
    I've gone over this before in this thread:
    http://discussions.apple.com/thread.jspa?messageID=3288533&#3288533
    But I'll go over the quick and dirty version here as well. Those who want more detail can post a question and I'll elaborate.
    First, do you know how to get into iWeb's inner folders? You right click or control click on your iWeb icon and select Show Package Contents from the pop-up menu.
    Step 2
    Once you've done that, you'll see a new Finder window that shows a folder called Contents. Open that and then open the next folder Resources. Within Resources there's a folder named Shared. Open the Shared folder.
    You're now looking at your collection of iWeb template files. You'll notice that each template has seven individual page files - each file defines the layout and styles for the page for which its named. This is actually one of the two places where you'll find the data/images that make up your iWeb pages. This location only contains the images. Now I'll show you were to find the data file.
    So you're currently here:
    /Applications/iWeb/Contents/Resources/Shared/
    You want to go here:
    /Applications/iWeb/Contents/Resources/English.lproj
    Now if you speak another language and your Mac's system language is set to the language you speak, substitue English with that language. If your system is set to English regardless of the language you speak, and you use the English templates, then stick with the English folder.
    When you're in the English.lproj folder, you will see seven sub-folders and one file named TemplatesInfo.plist. TemplatesInfo.plist is the file that registers the templates and tells iWeb what you've got in your collection. But we don't care about that file for now. We're after the template data files.
    The seven sub-folders are aptly named for each of the seven page-types as you can see. Open the About Me folder.
    Now you will see an "about me.webtemplate" file for every template you have in your collection. Good job. You've learned something new. Move on to Step 3.
    Step 3
    If you haven't decided yet, now's the time to decide which template you'd like to update. If you're just along for the ride to learn something new, no worries. We won't do anything you can't undo.
    Pick a template file now. Perhaps you chose the White template, or:
    White About Me.webtemplate
    Right click or control click on this file and select Show Package Contents from the pop-up menu. This will launch a new Finder window that displays the contents of the White About Me.webtemplate file.
    You will likely see a handful of different files, but the file you want is the one named Index.xml.gz.
    Index.xml.gz is the brain behind the template. Within this file are all the settings for the page you chose and it's really not hard to find what you want and change it. So let's take a peek.
    Step 4
    Double-click the file Index.xml.gz. This will reveal a new file named Index.xml. You might have to scroll down in your Finder window to see it. Rename Index.xml.gz to Index.xml.gz.backup in case you screw things up, you have your original.
    Now, open Index.xml with TextEdit. Do not open the file with a code editor unless you have already formatted the file.
    When the file opens, you'll notice it's one gigantic jumbled mess of stuff. No worries, we'll straighten that out. All you need to do is a find/replace.
    Find all instances of: ><
    And replace with:
    <
    The line break is important so maybe just copy the lines right out of this post. When you replace all of those, the file will be far more easy to view.
    Assuming you've completed that step. You're basically ready to make your change and test it out! Not hard ey?
    So let's say you want to change your hyperlink color from grey to blue. Search for this string:
    BLDefaultHyperlinkCharacterStyleIdentifier0
    When you find that string, you will see a few lines below it, two lines that look similar to this:
    <sf:fontColor>
    <sf:color xsi:type="sfa:calibrated-rgb-color-type" sfa:r=".8" sfa:g="1" sfa:b="0.4" sfa:a="1"/>
    This is how the template specifies color. It's RGB100. Your Mac came with a program called Art Director's Took Kit and that application can tell you the RGB100 values for any color you want. Tinker with that and you'll have a lot of fun with this.
    So I picked out a nice royal blue for you. The RGB100 values for it are:
    R:0 G:25 B:100
    What you need to do is update the color line to match those values:
    <sf:color xsi:type="sfa:calibrated-rgb-color-type" sfa:r="0" sfa:g=".25" sfa:b="1" sfa:a="1"/>
    Notice that you specify these in terms of a percentage, where 25 became .25 and 100 became 1.
    Step 5
    Save your file. It's time to see your work in action. Open iWeb if it isn't open already and create a new page using the template you've just altered. If you altered the White About Me page, then select that and create the new page.
    It there are hyperlinks already on this page, you should already see that they reflect your new color. If there aren't any hyperlinks, then type some text and create one. You should see your new link color right away!
    Now if you don't see the new color, either you picked the wrong page or you neglected to rename the Index.xml.gz file a few steps back. If you did not rename that file, then it's still in control of your template. Rename it now and try again.
    If you don't like that color, simply swap back to the TextEdit page and change it until you like it - switching back and forth between the file and iWeb to view your changes. Once you're happy, make note of the color you chose and make the change for the remaining six pages in the tempalte you selected. Just be sure to follow the steps for each page you edit. If you fail to see your change, again, check to see that you renamed Index.xml.gz.
    Side Notes
    For the more technical, rather than editing an existing template, you might want to duplicate and rename a template. This essentially creates a brand new one. If you're pretty good within Finder then go for it, just be sure that you duplicate the files in both locations:
    /Applications/iWeb/Contents/Resources/Shared/
    /Applications/iWeb/Contents/Resources/English.lproj/...
    Choose a unique name for the duplicated template and change every single file so that the new name replaces the old one. You would have to register this new template in the TemplatesInfo.plist file as well, but I'm not going to get into that here.
    The thread I referenced at the top has all kinds of search terms to find the other hyperlink styles (rollover and visited) and all the navigation menu styles plus a bunch of other fun stuff.
    Now, it seems long, but that's because I wrote it well. The shortest version of this I've ever written was two sentences, but that was for a UNIX geek and he got it. It's just as easy for you, but I write it out so that anyone can do this, because anyone can. It's just not hard.
    If you have questions about any of the steps, go ahead and ask.

    Good. Okay here's how to apply a background color to your nav bar buttons. For example, my Aerolite template sets the selected page to a black background color. The rollover effect uses a gradient fill. I'll describe both of those here.
    First, here are the navigation menu search terms:
    navbaritem-style-normal-default
    navbaritem-style-rollover-default
    navbaritem-style-selected-default
    navbar-pargraph
    The first three set the button effects and text colors. The last one there sets the font, font size and other paragraph styles.
    To change the selected page button background color, or gradient or image, first search for it using the search term above. Start from the top of the file because there are two instances of those terms, one where you can set the values, the other is only reference to the first and does not allow you to change settings.
    When you find the search term, you might want to insert an empty line above it to help separate it from the rest of the code. You can also insert an empty line below the section. The end of this style ends with:
    </sf:navbar-item-style>
    Be careful not to mix that up with </sf:navbaritem-character-style>
    Now, within this section, you'll find all kinds of settings... stroke, fill, character styles, etc. Notice you can change font color in there. But for this demo, you want to find the section that looks like this:
    <sf:fill>
    <sf:null/>
    </sf:fill>
    I'm assuming you're editing an Apple template that does not already have a fill effect. If it does have one, then your example might not look exactly like that.
    To apply a color fill, change those three lines to these lines:
    <sf:fill>
    <sf:color xsi:type="sfa:calibrated-rgb-color-type" sfa:r="0" sfa:g="0" sfa:b="0" sfa:a="1"/>
    </sf:fill>
    You can see that we've inserted the line that specifies color - something you should be familiar with by now. Here you can specify the color that will become the background of your nav bar button. This example specifies black. Easy no?
    If you would prefer a gradient fill, then replace those three lines with this:
    <sf:fill>
    <sf:angle-gradient sfa:ID="SFRAngleGradient-1111" sf:opacity="1" sf:type="linear" sf:angle="0">
    <sf:stops sfa:ID="NSMutableArray-1111">
    <sf:gradient-stop sfa:ID="SFRGradientStop-1111" sf:fraction="0">
    <sf:color xsi:type="sfa:calibrated-rgb-color-type" sfa:r="0.40" sfa:g="0.40" sfa:b="0.30" sfa:a="1"/>
    </sf:gradient-stop>
    <sf:gradient-stop sfa:ID="SFRGradientStop-2222" sf:fraction="1">
    <sf:color xsi:type="sfa:calibrated-rgb-color-type" sfa:r="0.64" sfa:g="0.66" sfa:b="0.54" sfa:a="1"/>
    </sf:gradient-stop>
    </sf:stops>
    </sf:angle-gradient>
    </sf:fill>
    Now, don't panic Here's what this is. The first line allows you to specify the angle of your gradient. Play with the numbers from 0 to 359 until you have what makes sense for your design.
    Then, you will see two familiar lines again - the lines that allow you to specify color! The first line is the first color of your gradient and the second color is the second color of your gradient. That's all there is to it!
    SECRET: It might be possible to add additional colors, not just two. Do you see the part sf:fraction="0" and sf:fraction="1"? These are gradient stops. I'm willing to bet that if you inserted a thrid gradient stop with a fraction setting of .5, you'd have a three-color gradient!
    <sf:gradient-stop sfa:ID="SFRGradientStop-3333" sf:fraction=".5">
    <sf:color xsi:type="sfa:calibrated-rgb-color-type" sfa:r="0" sfa:g="0.25" sfa:b="4" sfa:a="1"/>
    </sf:gradient-stop>
    I have never tried this - it just occurred to me as I was looking at this code. Big prize for the first person to prove the theory
    NOTE: You will notice that the number 1111 and 2222 are within this code. iWeb XML relies on identification tags here and there. It's nothing you really have to care about except if you insert gradient fills in more than one area. Those numbers need to be unique so if you paste that code in for your selected page button and then paste it again for your rollover buttons, you'll need to update the numbers for the second button. Any numbers are fine. Use 3333 and 4444 for the second set, 5555 and 6666 for the thrid and so on. I often just type 4345781476 - doesn't matter.
    Next lesson will be images.

  • How can change background color of drop down menu navigation?

    Hi,
    I am using multi level drop-down-navigation menu in my website.
    I am get good drop-down menu from htmldrive.net, but problem is how can change menu background color black to other colors.
    please help me
    Link & code is given below
    http://www.htmldrive.net/items/demo/913/Multi-Level-Drop-Down-Menu-Navigation-with-CSS3
    HTML Code
    <div id="nav">
    <ul>
    <li><a href="#">Home</a></li>
    <li><a href="#">About Us</a></li>
    <li><a href="#">Our Portfolio</a></li>
    <li><a href="#">One Dropdown</a>
            <ul>
            <li><a href="#">Level 2.1</a></li>
            <li><a href="#">Level 2.2</a></li>
            <li><a href="#">Level 2.3</a></li>
            <li><a href="#">Level 2.4</a></li>
            <li><a href="#">Level 2.5</a></li>
            </ul>
    </li>
    <li><a href="#">Three Levels</a>
            <ul>
            <li><a href="#">Level 2.1</a></li>
            <li><a href="#">Level 2.2</a></li>
            <li><a href="#">Level 2.3</a>
                    <ul>
                    <li><a href="#">Level 2.3.1</a></li>
                    <li><a href="#">Level 2.3.2</a></li>
                    <li><a href="#">Level 2.3.3</a></li>
                    <li><a href="#">Level 2.3.4</a></li>
                    <li><a href="#">Level 2.3.5</a></li>
                    <li><a href="#">Level 2.3.6</a></li>
                    <li><a href="#">Level 2.3.7</a></li>
                    </ul>
            </li>
            <li><a href="#">Level 2.4</a></li>
            <li><a href="#">Level 2.5</a></li>
            </ul>
    </li>
    <li><a href="#">Services</a></li>
    <li><a href="#">Contact Us</a></li>
    </ul>
    </div>
    CSS CODE
    #nav {
            float: left;
            font: bold 12px Arial, Helvetica, Sans-serif;
            border: 1px solid #121314;
            border-top: 1px solid #2b2e30;
            -webkit-border-radius: 5px;
            -moz-border-radius: 5px;
            border-radius: 5px;
            overflow: hidden;
    #nav ul {
            margin:0;
            padding:0;
            list-style:none;
    #nav ul li {
            float:left;
    #nav ul li a {
            float: left;
            color:#d4d4d4;
            padding: 10px 20px;
            text-decoration:none;
            background:#3C4042;
            background: -webkit-gradient( linear, left bottom, left top, color-stop(0.09, rgb(59,63,65)), color-stop(0.55, rgb(72,76,77)), color-stop(0.78, rgb(75,77,77)) );
            background: -moz-linear-gradient( center bottom, rgb(59,63,65) 9%, rgb(72,76,77) 55%, rgb(75,77,77) 78% );
            background: -o-linear-gradient( center bottom, rgb(59,63,65) 9%, rgb(72,76,77) 55%, rgb(75,77,77) 78% );
            box-shadow: 0 1px 0 rgba(255, 255, 255, 0.1) inset, 0 0 5px rgba(0, 0, 0, 0.1) inset;
            border-left: 1px solid rgba(255, 255, 255, 0.05);
            border-right: 1px solid rgba(0,0,0,0.2);
            text-shadow: 0 -1px 1px rgba(0, 0, 0, 0.6);
    #nav li ul {
            background:#3C4042;
            background-image: -webkit-gradient( linear, left bottom, left top, color-stop(0.09, rgb(77,79,79)), color-stop(0.55, rgb(67,70,71)), color-stop(0.78, rgb(69,70,71)) );
            background-image: -moz-linear-gradient( center bottom, rgb(77,79,79) 9%, rgb(67,70,71) 55%, rgb(69,70,71) 78% );
            background-image: -o-linear-gradient( center bottom, rgb(77,79,79) 9%, rgb(67,70,71) 55%, rgb(69,70,71) 78% );
            border-radius: 0 0 10px 10px;
            -moz-border-radius: 0 0 10px 10px;
            -webkit-border-radius: 0 0 10px 10px;
            left: -999em;
            margin: 35px 0 0;
            position: absolute;
            width: 160px;
            z-index: 9999;
            box-shadow: 0 0 15px rgba(0, 0, 0, 0.4) inset;
            -moz-box-shadow: 0 0 15px rgba(0, 0, 0, 0.4) inset;
            -webkit-box-shadow: 0 0 15px rgba(0, 0, 0, 0.4) inset;
            border: 1px solid rgba(0, 0, 0, 0.5);
    #nav li ul a {
            background: none;
            border: 0 none;
            margin-right: 0;
            width: 120px;
            box-shadow: none;
            -moz-box-shadow: none;
            -webkit-box-shadow: none;
            border-bottom: 1px solid transparent;
            border-top: 1px solid transparent;

    Change this:
    .ddsmoothmenu{
    font: bold 12px Verdana;
    background: #414141; /*background of menu bar (default state)*/
    width: 100%;
    to this:
    .ddsmoothmenu{
    font: bold 12px Verdana;
    background: #new color code;
    width: 100%;
    And repeat this on other selectors.
    Nancy O.

  • How to change the JFrame's titlebar's icon's context menu's font?

    Hi everyone.
    I want to know how to change the font of the text that appears in the context menu originated from right clicking at the icon that's all the way to the left in the titlebar of JFrames that use the default look and feel for decoration (JFrame.setDefaultLookAndFeelDecorated(true); // which uses the Metal L&F, Ocean theme).
    I searched around and found nothing. I thought that I could use what I learned at https://forums.oracle.com/message/9221826, but I couldn't come up with something that worked.
    Thanks in advance.t

    After some more messing around, I finally made it! I like Java so much that it makes me a bit sad how hard it is to do stuff like this. Anyway, I found a method here to recursively change the font of all components from a JFileChooser, but it doesn't work on the JPopupMenu (now I know the name) that pops up from the titlebar's icon. So I messed around with that method, used some casting, and was able to change the JMenuItems' font:
    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 to use .toString().contains() by this thread.
    I also did this 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);
    Every System.out.println() gives a hint to what should go on the following if condition, so they should be used one at a time. This doesn't work for the JFileChooser's title font though. When I have time I'll either look further into it or ask another question.
    So, if someone else needs it like I did, here it is. As a tip, System.out.println() and .toString() are your friends! That's how I learned what was contained in each object, and what path I needed to take to get to the objects of interest.
    Thanks anyway!

Maybe you are looking for