How to get the Id of the component that caused modal dialog to terminate?

Hi,
I am developing a plugin for Acrobat. The plugin will have menu item. On clicking menu item a modal dialog will be opened. I am using DialogBox method to create modal dialog. But this method returns value which is the call to the EndDialog function used to terminate the dialog box. This means that on success it will always return 0.
But I want the ID of the component in the dialog which caused the dialog to terminate. What I mean is that I want that if Ok button in the dialog was clicked and dialog terminated then DialogBox method must return the ID of the Ok button.
Is there any other function that can be used to create dialog in Acrobat on windows??
Thanks.

Acrobat no longer has any API to dialog creation in a plug-in. So the question of knowing which of your buttons terminated the dialog is part of the API or library you actually use to do the display. If you are talking about the behaviour of the Windows GDI API, it's up to you what code to pass to EndDialog in your callbacks, when processing the BN_CLICKED notification. Personally I pass the control ID. If you are using a higher level wrapper it will be a function of that, but knowing what button closed a dialog is a basic need that any library should satisfy.

Similar Messages

  • How  we get the component at front or back in a Jpanel

    How we get the component at front or back in a Jpanel. I want to manage the Z-axis position of the components in the Jpanel.

    [url http://java.sun.com/docs/books/tutorial/uiswing/components/layeredpane.html]How to Use Layered Panes

  • F2 on Popups? (Or how to get the Component if F2 is not working)

    Hello Experts,
    I wonder if somebody has a tip how to get the component of popups?
    The F2 Help is not working there.
    The Popup I'm actually looking at is called by a button. Is it possible to find out the called component by looking at the button Event? (I have tried - but the source does not tell me any component)
    Thanks for answers...
    Regards
    Chris

    Chris,
    F2 should definitely work if it is a UI component.
    You see pop ups on button clicks and F4 value helps. F2 should work in these cases.
    For some attributes with F4 help, a DDIC search help is attached. Here F2 does not work.
    Anyhow to find out which component it is calling, you use this method
    check in the event handler(for button pop ups) or in the outbound plugs specifies in GET_V method(for F4 pop ups) if there is a code like
    CALL METHOD comp_controller->window_manager->create_popup etc.,
    A Component Usage will be passed to the method. You can check for the component usage in the Run Time Repository.
    You will get the component details.
    Regards,
    Masood Imrani S.

  • HT1727 My old computer died on me with no warning signs. I didn't know or need to copy my music to another computer. I would like to know how to get the music that I bought onto my new computer without having to buy it all again.

    My old computer died on me with no warning signs. I didn't know or need to copy my music to another computer. I would like to know how to get the music that I bought onto my new computer without having to buy it all again. I just want to be able to get all of my music that I bought on itunes onto my computer. Right now the money ive spent is just gone and I have no music to show for it.

    Go to the iTunes Store and select "Purchased" from the Quick Links side bar on the right. Go through all the tabs to download again for free

  • I do not know how to get the music that I buy on itunes, on my mac, onto an ipod. I have already authorized my computer and "downloaded" my music, but that did not do anything. Please I really need to know how to do this on my own but I am stuck.Thank you

    I do not know how to get the music that I buy on itunes, on my mac, onto an ipod. I have already authorized my computer and "downloaded" my music, but that did not do anything, or provid the results that I was expecting, at least. Please, I really need to know how to do this on my own but I do not know what to do.Thank you in advance to anyone that is answering this question that I know most everyone but me knows how to accomplish. thanks!!!

    In iTunes go to the Help menu in the upper menu bar.  Then click on iTunes Help. Then on Sync your iPod, iPhone or iPad and follow the instructions.

  • HT5035 I will like to know how to get the money that i have in my  Itunes acc to get it off and buy a cd with it

    I will like to know how to get the money that i have in my itunes acc how to used it up to buy a cd with it

    LatachaM_VZW wrote:
    If the incorrect PIN code is entered too many times, a PIN Unlock Key must be obtained from Verizon Wireless at 908-559-4899 if you are outside of the United States and 800-922-0204 or *611(send) from your mobile number inside the United States..
    The SIM PIN option is only available when the handset is in GSM / UMTS mode. Refer to Network Mode Setting for further assistance.
    Thank you, LatachaM_VZW
    Are you talking about the PUK code (when the PIN for the SIM has been wrong too many times)?  The OP is talking about network unlock, and is using a foreign SIM.   Global Services certainly wouldn't have the unlock code for a SIM that isn't theirs.
    I have heard that if you do enter the incorrect network unlock code too many times, the phone becomes permanently locked (i..e cannot be unlocked even with a valid unlock code) but not everyone agrees that this is true for all phones.
    Jax's post above really says it all, you will need to search the web for a service that will unlock this Motorola phone.  In doing so, you might find a number of threads that say the Global has to be activated in the US before an unlock code will work.  Others were able to unlock without this. 

  • How to get the component name in webdynpro

    Hi all,
            how can i get the name of the webdynpro component. The component is being displayed in the portal. Now i need the component name for this.Can any one suggest of how to get this.
    Regards,
    Kalyan Chakravarthi.M

    Hi ,
    get the object of  IF_WD_COMPONENT , by calling the method wd_get_api( ) of wd_component attribute , then call the method GET_COMPONENT_INFO( ) ,it will return the object of IF_WD_RR_COMPONENT in that call the method GET_NAME( ) .
    Regards
    Yash

  • How to get the Component id (HTMLB id)

    Hi all,
    I created an application that has two list boxes and one commend button. While clicking the button I need to know how many list items in the list box. Is this possible?
    Anybody can guide me for this.
    Helpful answer will appreciate.
    Thanks & Regards,
    Kathiresan R

    hi,
    In case you are using HTMLB controls what you are looking for is posible...
    Do the below mentioned way...
    As you need to get the number of items inside the selected list box on action of a button, it means first you need to catch the action generated by the button...
    So inside your button, under button tage you can add/have a property called "OnClick("Method Name")"...
    so now you define the method inside your controller...
    public void method_Name(Event event)
    //first het the list box ID:
    ListBox lb=(ListBox)this.getComponentByName("Your_ListBox_Name");
    now with ID
    you can do,
    int size=lb.getSize() //Returns the number of elements inside the list box...
    for more information please have a look at the below thread...
    [ListBox|http://help.sap.com/javadocs/NW04S/SPS09/hb/com/sapportals/htmlb/ListBox.html]
    Regards,
    Srinivas.

  • How to get the component who has caret?

    I put more than one JTextField on the Panel.
    I want to get the one who owns the caret of synchronized.

    look at it
    http://java.sun.com/j2se/1.4.2/docs/api/java/awt/KeyboardFocusManager.html#getFocusOwner()
    regards
    Aniruddha

  • How to get the row that has failed due unique constriant voilation

    Does any body knows how I can get the column values for rows that has failed on unique contriant voilation, I am using 10gr2.
    Also we don't have license for shadow table error logging, otherwise I could have gotten the row from there.
    Any help will be highly appreciated.
    Thanks,
    Ravi

    Hi Ravi,
    Prior to OWB 10.2.0.3 you can use the DML error logging features only for the mappings which runs
    in ROW based mode.
    But from OWB 10.2.0.3 onwards DML error logging features can be used for SET based mappings also.
    You can refer the following Metalink notes for the same
    1. Note 550036.1 DML Error Logging In OWB 10.2.0.3 And OWB 11g
    2. Note 549845.1 How To Use Data Rules And Error Tables Features In OWB10gR2
    Thanks,
    Sutirtha

  • Greencard application: I need to downsize a pic to 240kb, but it has to be 600 x 600 pixels, and I don't know how to get the size that small whilst retaining those pixel dimensions??? Help!

    Hi! I'm trying to get the correct image size for a pic I need for a Greencard application for the US. My friend took the photo on a DLSR. I set up a Photoshop document measuring 600 x 600 pixels, the size needed by the application document, but I can't get the image smaller than around 550kb. When I "save as JPEG" in Photoshop, no matter how poor the quality slider, the image stays around 1MB. Is there another way to get the image down to 240kb @ 600 x 600 pixels??????

    The file opened and cropped in photoshop was a camera raw file?
    In File>Save for Web pick Jpeg from the drop-down

  • How to get the component as an image

    i want to save my component as an image.
    I add many components to a JPanel, write some string on it, etc etc.
    Then I want it whole to be added as an image. How can I do it?

    See:
    http://forum.java.sun.com/thread.jsp?forum=57&thread=530815
    http://forum.java.sun.com/thread.jsp?thread=426455&forum=31&message=1898276
    http://forum.java.sun.com/thread.jsp?thread=443125&forum=20&message=1999960
    http://forum.java.sun.com/thread.jsp?thread=450369&forum=32&message=2044632
    http://forum.java.sun.com/thread.jsp?thread=475053&forum=20&message=2202147
    http://forum.java.sun.com/thread.jsp?thread=469584&forum=425&message=2165447
    http://forum.java.sun.com/thread.jsp?thread=481131&forum=57&message=2242633
    http://forum.java.sun.com/thread.jsp?thread=527767&forum=425&message=2534389
    http://forum.java.sun.com/thread.jsp?thread=514356&forum=57&message=2448607

  • I have a iPhone that holds the majority of my music on it. However, I just got a new laptop, and I do not know how to get the music that is on my phone and on my previous laptop onto my new one. Please help me out here.

    I know that I could just burn all of my music onto a disk and then put it back onto my new computer, but I was hoping there was an easier way.

    Use your computer's backup to transfer your iTunes library from your old computer to your new computer per the instructions included with this link, or do the same with both computers networked in some fashion, which shouldn't be hard to do if both computers are connected to the same wireless network.
    http://support.apple.com/kb/HT1751

  • How to get the size of file

    Hi
    I want to know the size of the file from Java. ie If i have 10 lines in that file each of 15 characters
    then 10 *2*10=200Bytes is the size. How will i get this?
    More over, if i am reading the 4 the line, how will get the info that I have read 3 lines =3*2*10= 60 bytes so far?
    Regards
    Sriram

    This is from the JavaDocs on java.io.File
    length
    public long length()
    Returns the length of the file denoted by this abstract pathname. The return value is unspecified if this pathname denotes a directory.
    Returns:
    The length, in bytes, of the file denoted by this abstract pathname, or 0L if the file does not exist
    Any of the read methods (except readLine()) on the many stream objects return the number of bytes read, simply accumulate these returns to know how many bytes have been read.
    Dave

  • VS2013 / Team Explorer vsix - How to get the currently selected build definition?

    Greetings,
    My goal with a simple extension is to right-click any build definition and if my "Show Build Def Stats" menu item is selected, pop a message box with some summary details I plan to pull from the IBuildDefinition interface.
    I'm missing something fundamental I'm sure, but I cannot figure out how in the menu handler the actual build definition that I clicked on.
    The menu command is added where I want it successfully:
    Symbol info used to get this there:
        <!-- This is the Build Definition Context Menu -->
        <GuidSymbol name="guidTeamExplorerBuildDefContextMenu" value="{34586048-8400-472E-BBBF-3AE30AF8046E}" >
          <IDSymbol name="menuBuildDefinitionContext" value="0x109"/>
        </GuidSymbol>
    I am stumped as to how to get the fact that I clicked the "ISRepository" build definition in either the Initialize() or MenuItemCallBack() methods, I haven't come across the right service or container object that I recognize.
    Much obliged!
    --Jordan

    I have been investigating this for a while using .NET Reflector and finally I got it:
    In VS 2013, add references to the following assemblies in the folder C:\Program Files (x86)\Microsoft Visual Studio 12.0\Common7\IDE\CommonExtensions\Microsoft\TeamFoundation\Team Explorer:
    Microsoft.TeamFoundation.Controls.dll
    Microsoft.TeamFoundation.Build.Controls.dl
    And then use this code:
    Microsoft.TeamFoundation.Controls.ITeamExplorer teamExplorer;
    Microsoft.TeamFoundation.Controls.ITeamExplorerPage teamExplorerPage;
    Microsoft.TeamFoundation.Build.Controls.Extensibility.IBuildsPageExt buildsPageExt;
    teamExplorer = base.GetService(typeof(Microsoft.TeamFoundation.Controls.ITeamExplorer)) as Microsoft.TeamFoundation.Controls.ITeamExplorer;
    teamExplorerPage = teamExplorer.CurrentPage;
    buildsPageExt = teamExplorerPage.GetExtensibilityService(typeof(Microsoft.TeamFoundation.Build.Controls.Extensibility.IBuildsPageExt)) as Microsoft.TeamFoundation.Build.Controls.Extensibility.IBuildsPageExt;
    foreach (Microsoft.TeamFoundation.Build.Controls.Extensibility.IDefinitionModel definitionModel in buildsPageExt.SelectedDefinitions)
    System.Windows.Forms.MessageBox.Show(definitionModel.Name);
    * My new blog about VSX: http://www.visualstudioextensibility.com * Twitter: https://twitter.com/VSExtensibility * MZ-Tools productivity extension for Visual Studio: http://www.mztools.com.

Maybe you are looking for