How to add Context Menu to Some frames and not others..

Hi
I am trying to add a context menu to my InDesign plug-in based on the link http://support.adobe.com/devsup/devsup.nsf/docs/50383.htm
I am using the context key "RtMouseLayout" to specify the context for my menuitem. However, I notice that this adds my menu item to all frames (graphic frames as well as text frames).
Is there a way for me to specify that my menu item can show only when I right click on graphic frame contexts and not on text frames.
Also I am wondering if you could point me to which file these context keys are defined.. I found AdobeMenuPositions.h file, but I could not find the file where the "RtMouseLayout" key is defined..
Thanks a lot for your help!
- Sameer

Hmm. It also possible but IMO more complex. Take a look on BPISuiteASB.cpp and BPISuiteCSB.cpp in basicpersistinterface sample. I mean just take a look on Selection Suites. From BPISuiteLayoutCSB.cpp you can get UIDList of currently selected objects on page. So ...
If you call IBPISuite (also in BPI sample it's showed) from ActionComponent then you can kEnabledAction or kDisabled_Unselected your menu item in UpdateActionStates.
Maybe that will help you
Regards
Bartek

Similar Messages

  • Fire fox loads some websites and not others. Clearing cache and history doesn't help.

    Fire fox loads some websites and not others. Pages that don't load in Firefox do load in other browsers. Clearing cache and history doesn't help.
    One of the websites that doesn't load is google.com! It loads some of the page, just some menu items at the top of the page. Then, it hangs and remains in the Loading state (with the spinning wheel and "Loading" in the tab) indefinitely.
    The problem started after 3.6.11 was installed. I'm on Mac OS 10.6.4.
    I would be happy if you just showed me where I can download 3.6.10. Also, is there anything special I have to do if installing an older version?

    I ended up going into the clear history settings and setting it to clear history when Firefox closes and chosing it to clear history and cooking and browsing history when Firefox closes. Now the links work fine and the last page I was looking at before I closed Firefox is no longer there when it opens again. Problem solved!

  • I have bought "coins" for the slotto game but the past three days it tells me to contact iTune support store...why will it take my money some days and not others??

    I have bought many "coins" for the slotto game but the past three days it tells me to contact the iTune Store to complete transaction. I do not know how to contact them and why would it let me buy some days and not others?

    Expresslane.apple.com
    Click itunes, then itunes store, fill out your info, and then wait for a reply.
    Do you purchase a lot?
    Occasionally they will bar an account if the amount you're pourchasing seems irregular.

  • Ichat video works with some people and not others

    Can someone help me? I can video Ichat with some people and not others. HOwever, if the people I can video ichat with put me in a three way chat with someone I can't Icaht video with, it works. Here is the first half of the error I get when I try to call someone with whom it doesn't work:
    Date/Time: 2008-05-08 20:59:35.554 -0400
    OS Version: 10.5.2 (Build 9C7010)
    Report Version: 4
    iChat Connection Log:
    2008-05-08 20:59:21 -0400: AVChat started with ID 2203145046.
    2008-05-08 20:59:21 -0400: scddean8: State change from AVChatNoState to AVChatStateWaiting.
    2008-05-08 20:59:21 -0400: 0x1946a450: State change from AVChatNoState to AVChatStateInvited.
    2008-05-08 20:59:24 -0400: 0x1946a450: State change from AVChatStateInvited to AVChatStateConnecting.
    2008-05-08 20:59:24 -0400: scddean8: State change from AVChatStateWaiting to AVChatStateConnecting.
    2008-05-08 20:59:32 -0400: 0x1946a450: State change from AVChatStateConnecting to AVChatStateEnded.
    2008-05-08 20:59:32 -0400: 0x1946a450: Error -7 (0x1946a450 cancelled the connection.)
    2008-05-08 20:59:32 -0400: scddean8: State change from AVChatStateConnecting to AVChatStateEnded.
    2008-05-08 20:59:32 -0400: scddean8: Error -7 (0x1946a450 cancelled the connection.)
    Video Conference Error Report:
    950.806728 @SIP/SIP.c:2719 type=4 (900A002D/0)
    [SIPConnectIPPort failed]
    Video Conference Support Report:
    0.000000 @SIP/Transport.c:2362 type=1 (00000000/0)
    [SIP/2.0 200 OK
    Via: SIP/2.0/UDP 24.9.170.64:16402;branch=z9hG4bK253ca464241b86c5
    To: 0 <sip:user@lip:16402>;tag=1748993363
    From: u0 <sip:user@lip:16402>;tag=242696585
    Call-ID: f7d46dbe-1d60-11dd-9664-c634114a4012@lip
    CSeq: 1 INVITE
    Contact: <sip:[email protected]:16402>
    User-Agent: Viceroy 1.3
    Content-Type: application/sdp
    Content-Length: 443
    v=0
    o=SDEAN 0 0 IN IP4 68.109.25.62
    s=skiier526121
    c=IN IP4 68.109.25.62
    b=AS:2147483647
    t=0 0
    a=hwi:17412:2:2400
    a=bandwidthDetection:YES
    a=iChatEncryption:NO
    m=audio 16402 RTP/AVP 110
    a=rtcp:16402
    a=rtpmap:110 X-AAC_LD/22050
    a=rtpID:163897054
    m=video 16402 RTP/AVP 126
    a=rtcp:16402
    a=rtpmap:126 X-H264/90000
    a=RTCP:AUDIO 16402 VIDEO 16402
    a=fmtp:126 imagesize 0 rules 20:160:120:320:240
    a=framerate:20
    a=rtpID:4247390608
    0.130320 @SIP/Transport.c:347 type=2 (00000000/0)
    [ACK sip:user@lip:16402 SIP/2.0
    Via: SIP/2.0/UDP 24.9.170.64:16402;branch=z9hG4bK758f935e51030677
    Max-Forwards: 70
    To: 0 <sip:user@lip:16402>;tag=1748993363
    From: u0 <sip:user@lip:16402>;tag=242696585
    Call-ID: f7d46dbe-1d60-11dd-9664-c634114a4012@lip
    CSeq: 1 ACK
    User-Agent: Viceroy 1.3
    Content-Length: 0
    0.131540 @SIP/Transport.c:2362 type=1 (00000000/0)
    [SUBSCRIBE sip:user@lip:16402 SIP/2.0
    Via: SIP/2.0/UDP 68.109.25.62:16402;branch=z9hG4bK3c1d470911bfc4fc
    Max-Forwards: 70
    To: u0 <sip:user@lip:16402>;tag=242696585
    From: 0 <sip:user@lip:16402>;tag=1748993363
    Call-ID: f7d46dbe-1d60-11dd-9664-c634114a4012@lip
    CSeq: 1 SUBSCRIBE
    Contact: <sip:[email protected]:16402>
    Event: conference
    Expires: 3600
    User-Agent: Viceroy 1.3
    Content-Length: 0
    0.258925 @SIP/Transport.c:347 type=2 (00000000/0)
    [SIP/2.0 200 OK
    Via: SIP/2.0/UDP 68.109.25.62:16402;branch=z9hG4bK3c1d470911bfc4fc
    To: u0 <sip:user@lip:16402>;tag=242696585
    From: 0 <sip:user@lip:16402>;tag=1748993363
    Call-ID: f7d46dbe-1d60-11dd-9664-c634114a4012@lip
    CSeq: 1 SUBSCRIBE
    Contact: <sip:[email protected]:16402>;isfocus
    Expires: 3600
    User-Agent: Viceroy 1.3
    Content-Length: 0
    0.266139 @SIP/Transport.c:347 type=2 (00000000/0)
    [NOTIFY sip:user@lip:16402 SIP/2.0
    Via: SIP/2.0/UDP 24.9.170.64:16402;branch=z9hG4bK07f3cf2d27e5dc4f
    Max-Forwards: 70
    To: 0 <sip:user@lip:16402>;tag=1748993363
    From: u0 <sip:user@lip:16402>;tag=242696585
    Call-ID: f7d46dbe-1d60-11dd-9664-c634114a4012@lip
    CSeq: 2 NOTIFY
    Contact: <sip:[email protected]:16402>;isfocus
    Event: conference
    Subscription-State: active;expires=3600
    User-Agent: Viceroy 1.3
    Content-Type: application/conference-info+xml
    Content-Length: 0
    [<c-i v="0" st="f" en="sip:user@lip:16402">
    c<h>i</h><m t="a"/><m t="v"/>
    c<h>o</h><m t="a"/><m t="v"/>
    c<h>o</h><m t="a"/><m t="v"/>
    </c-i>
    0.267647 @SIP/Transport.c:2362 type=1 (00000000/0)
    [SIP/2.0 200 OK
    Via: SIP/2.0/UDP 24.9.170.64:16402;branch=z9hG4bK07f3cf2d27e5dc4f
    To: 0 <sip:user@lip:16402>;tag=1748993363
    From: u0 <sip:user@lip:16402>;tag=242696585
    Call-ID: f7d46dbe-1d60-11dd-9664-c634114a4012@lip
    CSeq: 2 NOTIFY
    User-Agent: Viceroy 1.3
    Content-Length: 0
    0.489410 @:0 type=1 (00000000/0)
    [Bandwidth Detection]
    [Received the first BWD packet from 24.9.170.64:16402]
    0.809558 @:0 type=1 (00000000/0)
    [Bandwidth Detection]
    [Avg=98115.00, NSDev=6.54%]
    1.049428 @:0 type=1 (00000000/1)
    [Bandwidth Detection]
    [Avg=1063830.90, NSDev=55.48%]
    1.396681 @:0 type=1 (00000000/2)
    [Bandwidth Detection]
    [Avg=1218589.60, NSDev=19.06%]
    1.555003 @SIP/Transport.c:347 type=2 (00000000/0)
    [MESSAGE sip:user@lip:16402 SIP/2.0
    Via: SIP/2.0/UDP 24.9.170.64:16402;branch=z9hG4bK7a3f72b46979010e
    Max-Forwards: 70
    To: 0 <sip:user@lip:16402>;tag=1748993363
    From: u0 <sip:user@lip:16402>;tag=242696585
    Call-ID: f7d46dbe-1d60-11dd-9664-c634114a4012@lip
    CSeq: 3 MESSAGE
    User-Agent: Viceroy 1.3
    Content-Type: text/plain
    Content-Length: 8
    [SECUPD:0]
    1.555264 @SIP/Transport.c:2362 type=1 (00000000/0)
    [SIP/2.0 200 OK
    Via: SIP/2.0/UDP 24.9.170.64:16402;branch=z9hG4bK7a3f72b46979010e
    To: 0 <sip:user@lip:16402>;tag=1748993363
    From: u0 <sip:user@lip:16402>;tag=242696585
    Call-ID: f7d46dbe-1d60-11dd-9664-c634114a4012@lip
    CSeq: 3 MESSAGE
    User-Agent: Viceroy 1.3
    Content-Length: 0
    22.411383 @SIP/Transport.c:2362 type=1 (00000000/0)
    [MESSAGE sip:user@lip:16402 SIP/2.0
    Via: SIP/2.0/UDP 68.109.25.62:16402;branch=z9hG4bK225017670f058825
    Max-Forwards: 70
    To: u0 <sip:user@lip:16402>;tag=242696585
    From: 0 <sip:user@lip:16402>;tag=1748993363
    Call-ID: f7d46dbe-1d60-11dd-9664-c634114a4012@lip
    CSeq: 2 MESSAGE
    User-Agent: Viceroy 1.3
    Content-Type: text/plain
    Content-Length: 4
    PING]
    22.552977 @SIP/Transport.c:347 type=2 (00000000/0)
    [SIP/2.0 200 OK
    Via: SIP/2.0/UDP 68.109.25.62:16402;branch=z9hG4bK225017670f058825
    To: u0 <sip:user@lip:16402>;tag=242696585
    From: 0 <sip:user@lip:16402>;tag=1748993363
    Call-ID: f7d46dbe-1d60-11dd-9664-c634114a4012@lip
    CSeq: 2 MESSAGE
    User-Agent: Viceroy 1.3
    Content-Length: 0
    23.667085 @SIP/Transport.c:347 type=2 (00000000/0)
    [MESSAGE sip:user@lip:16402 SIP/2.0
    Via: SIP/2.0/UDP 24.9.170.64:16402;branch=z9hG4bK0d3ce7637235b638
    Max-Forwards: 70
    To: 0 <sip:user@lip:16402>;tag=1748993363
    From: u0 <sip:user@lip:16402>;tag=242696585
    Call-ID: f7d46dbe-1d60-11dd-9664-c634114a4012@lip
    CSeq: 4 MESSAGE
    User-Agent: Viceroy 1.3
    Content-Type: text/plain
    Content-Length: 4
    [PING]
    23.667857 @SIP/Transport.c:2362 type=1 (00000000/0)
    [SIP/2.0 200 OK
    Via: SIP/2.0/UDP 24.9.170.64:16402;branch=z9hG4bK0d3ce7637235b638
    To: 0 <sip:user@lip:16402>;tag=1748993363
    From: u0 <sip:user@lip:16402>;tag=242696585
    Call-ID: f7d46dbe-1d60-11dd-9664-c634114a4012@lip
    CSeq: 4 MESSAGE
    User-Agent: Viceroy 1.3
    Content-Length: 0

    I found the following comment the other day that goes some way to explaining why iChat might have problems with some NAT routers:
    http://www.technologyevangelist.com/2007/02/ichatav_the_bestun.html#comment-53326
    While it doesn't offer any solutions it might be worth firing off some iChat feedback to Apple referencing it. It seems like it might be a trivial bug for Apple to fix and could well alleviate many of the problems people are having.
    In the mean time if your router is one that has SIP ALG you could try disabling it and forwarding all relevant ports to your machine.

  • Why will iMovie allow editing of some songs and not others?

    I've downloaded a number of songs directly from iTunes onto my ipad2. Why can I edit one song I downloaded and not others in I movie? I don't get it. These songs are from the same album, so if its a copyright issue what's the deal? Help me please!

    If just some of the tracks on the album are giving you that message, that suggests that those tracks are damaged.
    If your country's iTunes Store allows you to redownload purchased tracks, I'd delete your current copies of the tracks and try redownloading fresh copies. For instructions, see the following document:
    Downloading past purchases from the App Store, iBookstore, and iTunes Store
    Otherwise, I'd report the problem to the iTunes Store.
    Log in to the Store. Click on "Account" in your Quick Links. When you're in your Account information screen, go down to Purchase History and click "See all".
    Find the items that are not playing properly. If you can't see "Report a Problem" next to the items, click the "Report a problem" button. Now click the "Report a Problem" links next to the items.

  • Some of the entries in my address book show birthdays one day/year earlier in Ical. I cannot change this except by putting in the birthdays a day/year earlier than they are. Why is this happening only for some entiries and not others?

    Some of the birthdays I have entered in Address book appear in my Ical one day and one year earlier than the date I have given. Eg. I have entered a birthday in Address book as 23 March 2011 and it appears in Ical as being on 22 March 2010. Other names have no problems. There are only some that do not appear with the correct date and year. Why is this?  Has anyone found how to correct this strange problem?  I have Time Zones ticked.
    Bronze2011

    I'm having this exact same problem, but it's doing it with a bunch of birthdays. I also did 0001 when I didn't know the birth year, so I went back and did a more current year, but they still aren't showing up where they should be...or at all. It's completely bizarre.

  • Text is running together on some pages and not others. i've tried no squint and playing around with text options in tools. I can't strike a good balance.

    I can't seem to figure out how to have a full screen experience with larger text and everything is in proportion. Either the right end of lines are chopped off, or lines of text are running into each other and out of boundaries.
    == This happened ==
    Not sure how often
    == I installed FF earlier this evening. I've had FF before and my gripe was the inability to set a certain magnification. I found the no squint add on and it seems very good, but somewhere I'm getting stuck. I've been fiddling with no squint, font options in tools and size and resolution settings for my monitor.

    i'm also having major CPU problems w/ FF 29.0.1. when i restart the app it calms down again but after loading tabs it steadily climbs up to 100% after not too long. i have checked out the 2 CPU links/articles above and do all the basic troubleshooting and tips, but with all the FF tools & add-ons isn't there some sort of CPU monitor that has the ability to display which extensions/scripts are hogging the CPU? Activity Monitor on Mac just shows the total used by the app. it's impossible in my case to efficiently disable dozens of add-ons & scripts, restart, and test each one by one b/c it can take several hrs before the CPU starts to spike high again. i have no time for this.
    thanks

  • Why can I change the callout text font in some documents and not others?

    By experimenting I have determined that some documents that will allow me to add callouts also let me change the text font to a different font or font size.  Other documents that will let me add callouts will not allow me to change the text font. A specific example is that I can add callouts and change the callout's font in pdf's I create by printing from Word, but a datasheet I have from a manufacturer I use will allow me to add callouts but not change the callout font.  Why can't I change the font in callouts I add to the datasheet?  I am using Acrobat 9.5.2.  Thanks for the help.

    Thanks Bob, I didn't think of that, I suppose that would work.  Basically I would just like to have more text sizes to choose from in the drop down menu, I guess its more an issue of laziness on my part than anything else.  I could make a character style for it, but then I'd probably have 10 different character styles just to change the size of my text when it would be less hassle just to type in the size I need.  I was just looking for a quick fix default option that I was used to having at my old job.

  • US Sales Tax - Some materials are taxable in some states and not others....

    We have lots of materials which are classified and grouped.
    All materials grouped are taxable somewhere so the material tax classificiation is set to 1.
    In some states, some material groupings are not taxable whilst others are so there is a State Tax Jurisdication Tax Code set up.
    The customer is taxable - and the material is taxable therefor the UTXJ condition is found and there is a Jurisdtication code of this particular state but this particular product should not be taxable in this situation  .... how can I do that?
    I don't think picking up the Material Grouping & the State in the VOFM Requirement check will work as the situation is too fluid. This must happen all the time - how do you guys in the States deal with this situation?
    Regards.
    Patrick.

    Guys I appreciate the feedback but I don't really understand either answer;
    i) US Local taxes are derived via condition UTXJ which does not have either Plant  or Customer Region in the access sequence? The standard US domestic access is Country - State - Customer Tax Class & Material Tax Class which as I have indicated, suggests (as the customer is taxable, and the material is taxable (somewhere)) then local taxes are applicable and therefore it goes on to find the appropriate tax rate for the state jurisdiction code. I canu2019t see how to implement a short circuit to this.
    ii) Yes u2013 I guess I could ask the user to override the tax class every time they sell this kind of product for this state but that just doesnu2019t seem right u2013 and the UTXJ condition doesnu2019t have a value on it, it is just the gateway to the Tax Jurisdiction conditions JR1, 2, etc.
    There must be a standard way of dealing with this out there u2026. anyone?
    Thanks.
    Patrick

  • Seagate external hard drive works on some computers and not others

    I have a 1T Seagate external HD. I upgraded to the new Snow Lepard recently and ever since then I can't access it. There are a ton of posts about this, I know. But when I plug it into my friends Imac, it runs fine. But when I plug it into my MacBook, it says "This device cannot be read by this machine" and asks for me to ignore or eject. I have no permissions. I can't mount or unmount, delete or partition. On the Imac I have all the permissions though. I have changed all the settings to make sure that everyone can read/write. But the laptop still can't use it. I have Iphoto from a few of my friends computer's backed up on it and that doesn't allow you copy it so just erasing or reformatting is out of the question. Any ideas or help would be awesome!

    it only charge if itunes is installed on the computer
    for some reason

  • I have "my story" app on multiple ipads at our school.  It now appears as if this app will function on some ipads and not others.  Is this because the app was pulled off of the itunes store?

    I have "my story" app on multiple ipas at our school.  It now appears as though the app will only function on a few of the ipads.  Is this because itunes pulled the app from the store?

    For any iPad exhibiting this, try a reset: Simultaneously hold down the Home and On buttons until the device shuts down. Ignore the off slider if it appears. Once shut down is complete, if it doesn't restart on it own, turn the device back on using the On button. In some cases it also helps to double click the Home button and close all apps from the tray before doing the reset.
    Is this the app? https://itunes.apple.com/us/app/my-story-story-creator-for/id449232368?mt=8. It appears to be available.

  • Just downloaded an album, will let me play some songs, but others are asking for me to authorize my computer. When I enter Use ID and password, comes back and says computer is already authorized. Why will it let me play some songs and not others?

    Has anyone downloaded an album from iTunes Store, once downloaded, will let you play some songs, but others is asking you to authorize your computer. When I go through those steps, it tells me that the computer is already authorized, but still will not let me play certain songs??

    If just some of the tracks on the album are giving you that message, that suggests that those tracks are damaged.
    If your country's iTunes Store allows you to redownload purchased tracks, I'd delete your current copies of the tracks and try redownloading fresh copies. For instructions, see the following document:
    Downloading past purchases from the App Store, iBookstore, and iTunes Store
    Otherwise, I'd report the problem to the iTunes Store.
    Log in to the Store. Click on "Account" in your Quick Links. When you're in your Account information screen, go down to Purchase History and click "See all".
    Find the items that are not playing properly. If you can't see "Report a Problem" next to the items, click the "Report a problem" button. Now click the "Report a Problem" links next to the items.

  • Why can you see the artist in some albums and not others

    Some albums are showing the songs with the artist underneath. In Lady Gaga's album grid it is like this
    Song: 'Bad Romance'
    Artist:  Lady Gaga
    Then other album grid its just the song title. Why is that? I would like it one or the other. I have OCD when it comes to things like this.
    PLEASE someone help me!!!!
    Thanks

    that happens to me too.I think its because when it happens to me its because theres more than 2 artists (not bands or stuff)or the cd has been burned so it is not the original.
    Hope this helped :?

  • I bought the second season of American Guns and it downloaded some episodes and not others this happened to the last season of American Chopper also for me.

    I purchased the second season of American Guns and the latest American Chopper and some episodes downloaded and some didn't and I go to purchase it again and it tells me already purchased but when I hit download it tells me to pay again then when I do it says already purchased???

    For those interested, the solution (at least in my case) is pretty simple:
    --Contact Apple Support and explain.
    --Have first-level support misinterpret your request.
    --Re-explain and ask for resolution.
    --Have the purchased items added to your download queue and then hit Check For Purchases.
    --Sit back and enjoy.
    Based on the WWDC announcements on 08-Jun, going forward, the solution will apparently be:
    --Download it from iCloud.
    Roaminggnome, you are simply wrong.  Demonstrably, purchases on iTunes are not one and only copy--even more so now with the entire concept of iCloud, but even beforehand you could download apps many times if you had bought them and removed them from your iOS device.  You'd think with all those discussion points, you'd troll less and actually give thought to responses more, but sometimes I say crazy things.

  • Running into Problems with Flash Player with some sites and not others

    Hi All,
    I've run into problems with Flash Player 10,0,45,2. In IE 8, FF 3.6.3 and Google Chrome (which I downloaded as a last ditch measure), some websites (such as youtube) work fine. Other sites such as wimp.com I get an empty box. I've reinstalled flash, but haven't seen much else in these forums to try to figure out what the problem is.
    Any help would be greatly appreciated.

    Bump.         

Maybe you are looking for

  • Error on invoking a siebel wsdl using bpel

    Hi, We are getting the following error on trying to invoke a siebel application wsdl through bpel: exception on JaxRpc invoke: HTTP transport error: javax.xml.soap.SOAPException: java.security.PrivilegedActionException: oracle.j2ee.ws.saaj.ContentTyp

  • Theme creation

    From what I understand themes to be i.e. a collection of templates to standardise a look and feel, it would be nice to find out how to construct a theme. Nice as they are - the default themes aren't what I want - need to have a corporate look and fee

  • Different columns having different condition in BI Answers

    i want to have an report as like in the format : Name of the sectors      In local currency          In foreign currency           "<= 12 months" ">12 months" "<= 12 months" ">12 months"      0-250,000 >250,000 150,000- 350,000 >350,000 Public Sector

  • Which Metadata option when exporting from Aperture?....

    When Exporting a single Original (never edited) CR2 file from Aperture 3.6 to my Desktop there are 3 Metadata options : 1) - Don't include IPTC 2) - Include IPTC 3) - Create IPTC4XMP Sidecar File As I have no idea what 'IPTC' etc is, which option is

  • Hpslpsvc64.dll Error Message Multiuser account

    I bought a  new ENVY win 8.1 machine and have an older HP b209a printer.  The admin account is mike and I have two other accounts on the machine.  I am occasionally getting the following error message. c:\users\mike\appdata\local\temp\7zs35cf\hpslpsv