Drop a URL on an a Flex panel InDesign document

Hello world

I have a Flex panel in InDesign, which I drag a URL. If I drop this URL in a text editor or a web browser, it works. But when I try to drop on my InDesign document, it's a little more difficult.

I've implemented a subclass of CDragDropTargetFlavorHelper. The drop works perfectly under Windows. But on a mac, I have problems in the CouldAcceptTypes method:

DragDrop:TargetResponse

AutocatDNDCustomFlavorHelper: CouldAcceptTypes (const IDragDropTarget* target, DataObjectIterator* dataIter, const IDragDropSource* fromSource, const IDragDropController* controller) const

{

if (0 ! = dataIter & & 0 ! = target)

{

DataExchangeResponse response = dataIter - >kURLDExternalFlavorFlavorExistsWithPriorityInAllObjects();

if (answer. CanDo ())

{

}

}

}

The problem is that kTrue response.canDo () of answers on Windows, but on Mac kFalse. I tried to explore the content of dataIter, but a call to dataIter-> First() returns zero. I tried a controller-> GetItemCount(), which returns the value 1. But if I try a controller-> GetDragItem (1), I get a pointer zero. I feel there is no element.  However, the fall works on an application other than InDesign as I said.

Is this a problem of integration? Or something else? He let me dry.

Thanks in advance

I finally found a 'solution '. It is dirty, but I couldn't find another clean solution, so I use it.

The solution is the following: in the couldAcceptTypes method, I get the first object in the DataObjectIterator and store the itemID I recover from the object in. I record it with a dirty memcpy (no other solution, the method is declared as const).

Then, in the ProcessDragCommand, I get the itemID and then call GetDragItem with the itemID. There, I finally get the item.

Why make such a solution? Because the itemID on PC is alsways 1. But on Mac, I got one was something like 719531, or other. I don't know why.

If this solution can help someone, it will be good. If anyone finds a solution, I would be grateful to know it.

@Dirk: I tried your solution, but were unable to make it work. I have done something wrong, I don't know...

Tags: InDesign

Similar Questions

  • Generate a list of URLS that are a hyperlink in a document?

    Hello world

    I did some research and can't seem to find an answer to this question:

    Is there a way to generate a list of all URLS that are hyperlinked in an InDesign document? I use CS6.

    Thank you very much.

    ElizabethGM wrote:

    I really hope that you are wrong!

    Oooh - scripts are nothing to worry about. On the contrary: there are many small functions and routines that are useful only for very few people, if Adobe has not added them to InDesign. This is where a script can help you!

    Here's a quick which includes all hyperlinks, shows them on the screen and saves their list in your Documents folder. Save it as "collectHyperlinks.jsx" in your folder User Scripts, and then double-click it in the Scripts panel to run.

    var list = [];
    for (a=0; a		   
  • Resize problems in Flex Panel...

    Hi all

    I'm developing a flex panel that opens in Illustrator. All right. But I encountered a problem on the resizing of the Panel. When the Panel is open at the start, it opens with the appropriate dimensions (ie the dimensions that I gave in the design). But if I develop the Panel, then close Illustrator without closing the Panel, then when I launch Illustrator once again, the Panel opens with same dimensions as I closed it with, but the control panel items are not resized. I need to resize a second time to get the resized elements. Here are a few screenshots to explain what I say in a better way.

    The Panel when I unzip:

    1.JPG

    The group, when I open Illustrator again:

    2.JPG

    I couldn't find the reason for this behavior. So please help me!

    Thank you!

    Base class that you use for your extension? MX:application or csxs:CSXSWindowedApplication? If the first, passed this last result of differences in behavior?

  • Flex Panel in Photoshop CS4

    Hello

    I need to create a flex panel that appears in Windows-> Extension menu in PS. I created the flex group and it shows in the correct menu in PS CS4, but when I click on the menu to open the Panel, I have a blank plate. No items on the Panel are displayed.

    Is it possible to use a flex panel in PS CS4? If yes then English like me!

    Thanks in advance!

    Hello

    I forgot to note that download that contains samples, libraries for compilation, and documentation is here (middle of page):

    http://www.Adobe.com/devnet/Photoshop.html

    It's for CS5 with some notes on CS4 backward compatibility. I will send you a private message with a link to the specific panel of CS4 guide. The differences being that the underlying architecture to support extensions changed some APIs between CS4 and CS5. The panels can require the old CS4 .swc denpending on what you're trying to make the panels.

    Kind regards

    Steve

  • Flex and InDesign application WYSIWYG editing

    Hello

    I'm creating an application using Flex and InDesign Server. I am facing an interesting problem with it.

    Flex application renders a model (contain images or text) based on XML. After editing the text content by the user, this XML model will change to InDesign server and will generate PDFS. It works very well. But if I compare the PDF model and model in Flex then I sometimes noticed the problem about text WYSIWYG template.

    I noticed this problem in the content of multiline text.

    Can someone help me?

    Thanks in advance.

    Pierrel

    To do this, create a custom algorithm to map the online composer and InDesign text rendering style line.

  • Creation of XMP in CS4 Flex Panel

    I'm doing a XMP custom panel for Photoshop CS4 using Flex Builder 3.  I just Flex, so I will try to learn it.  I downloaded the XMP SDK fileinfo and followed the directions to open a new XMP Panel project.  I installed the plugin of POT.  After I put in my Panel/project name and click done, it generates flex code and I get an error stating: there is an error on line 99 of your MXML document: the tag 'TestPanel' has an invalid syntax.

    Anyone know what I'm supposed to do?

    Here are the lines 98-100:

    < mx:TabNavigator id = "fileInfoTabs" width = "100%" height = "100%" >
    < panels: TestPanel id = "_customPanel" / >
    < / mx:TabNavigator >

    Hello

    you don't have to worry about this "error 99", it's just a problem from the view of the page layout in Flex.

    It's a bit confusing that there are two classes named "TestPanel":

    one is the actual Panel and the other a little test program to debug Panel.

    Please open the other class 'com.examples.panels.TestPanel', which is the actual Panel, you are supposed to extend.

    Sometimes it's easier to work in source code mode.

    Hope this helps,

    -Stefan

  • Drop-down URL bar length

    Hello

    I noticed that my URL (address) Bar when I click on the drop down arrow that's long enough for the moment. History only fills half upper and the lower half is just empty.

    Now, I had some time ago and someone here had suggested using STYLISH to control this and it worked great for a long time, which means the fall down was set to a more appropriate length about half a screen of a value drop-down list just enough to view the history, but yesterday or the day before I noticed that I was in the longest fall down once again and when I checked ELEGANT he now says that anything made for the category of the URL.

    Then someone knows if there is a work around to limit the length of the URL dropdown bar story full page for me is at least very irritating

    Thank you

    scottish2 said

    I think that I have close to where she was before just a question I noticed that when it comes down now she goes down on the left edge of the screen rather then right below the address box. Is it possible to align it below the address box because that's how he use to fall down

    Sort of. It depends on if you care about the star to bookmark and switch to the tab icons that sometimes appear on the far left:

    /* Leave space for "type" icons */
    #PopupAutoCompleteRichResult {
      max-width: 1000px !important;
      margin-left: -20px !important;
    }
    
    /* Don't care about "type" icons */
    #PopupAutoCompleteRichResult {
      max-width: 1000px !important;
      margin-left: 0px !important;
    }
    

    With enough force, I could probably move the star somewhere else, perhaps between the title of the site and the URL or the extreme right, but this is a bit complicated to work with.

  • I now have to hit enter after clicking a site menu drop-down URL (never had to do this before) that change so it was automatically sent to the URL without hitting enter (as he always used of)...?

    only in the last days, that changed, it was to be a 1 click and send you treat here on this drop sites I go more often. How to change things is the way that it used to be...

    Start Firefox in Firefox to solve the issues in Safe Mode to check if one of the extensions or if hardware acceleration is the cause of the problem (switch to the DEFAULT theme: Firefox (Tools) > Add-ons > appearance/themes).

  • Flex Panel content background color

    Hello guys. I'm trying to set the background color gradient for my Panel via skins.

    I'm trying to change my code but nothing seems to change. Don't know what to do. Thanks for any response.

    My skin file

    / <!-layer 2: background fill-/ >

            <!--- Defines the appearance of the PanelSkin class's background. -->
            <s:Rect id="background" left="1" top="1" right="1" bottom="1">
                <s:fill>
                    <!--- @private
        Defines the  PanelSkin class'
    s background fill. The default color is 0xFFFFFF. -->
               
    <s:SolidColor id="backgroundFill" color="red"/>  //Change to red but                
                                                               
    //nothing happen....
               
    </s:fill>
            </
    s:Rect>


    Hello

    two things to do to fix this

    find the following 2 lines in your update function in the skin and to comment on the

    backgroundFill.color = value ("backgroundColor");

    backgroundFill.alpha = value ("backgroundAlpha");

    then replace your background - rect

    David.
  • Drag and drop the email from windows to the folder my documents

    I am trying to drag and drop an email from Windows mail to a folder in my documents each time I do I have an option to copy and replace or do not copy. I just want to copy it here is another option or I can change to get it to copy the settings. I'm sure that once there was before me a third option so that it can be copied, can someone help me please.

    Drop into a different folder itthere and renmae before moving on to the final
    folder.
     
    --
    ..
    --
    "SS0001" wrote in message news: f9a3b155-6263-4000-89c 0-596bcea9a814...
    > I get emails from the same source, on a weekly basis and the program
    > think I want to update the existing emails with new emails, but I just
    > to add new emails to the existing e-mail file, make
    > you know how I can fix this?
     
     
  • When I click on my computer, Control Panel, my documents, or it says restore windows Explorer, it blocks im on vista can't use one of my icons in my Start menu

    I open menu strt the icons on my computer right panel, documents, etc, when I click on it it says exploere windows not working not looking for solutions then restart windows Explorer how can I fix.  Can't open my pictures or videos without opening word.

    Press Windows Flag + R

    Immediate window should open

    Type inetcpl.cpl

    Click the Advanced tab

    Click on Reset

    Check delete all personal settings

    Click on Reset

    Close this window

    Restart the computer

    Launch IE

  • Virus: PAK Genereric.012 must be removed and me unable to access all things related to Vista, such as photos, control panel and Documents.

    I urgently need help. The first signs of this was when I tried to open My Documents. It was yesterday. He had said "Windows has stopped working" and then went ahead to tell me "Now Windows restarts" and proceeded to do so. I had thought that nothing of him at this time and thought it would work the next day. I was wrong. "I tried to access my control panel, but the same: Windows has stopped working ' warning had popped up, followed by the" Windows is now restart. " That's when I tried to get it working again. But in the Google search, you told me to look for something on my search for start and run as admin, and then type "sfc/scannow" into something and press ENTER. "." I hope there is another way, other than that, because this does not work for me. Then I did a reboot of the system, to two hours before, in what has been recommended because I didn't know how to change it. Then, I gave up and thought "I'm not absolutely need, none of this until that school is starting again, so hopefully it will fix itself". Then arises Trend Micro Internet Security Pro and says

    «Infected gile: ee2fad [1] .exe»

    (see location)

    Name of the threat: PAK Generic.012

    Suggestion of Trend Micro:

    An incurable virus has infected any of your files. Please try to delete the file or run the analysis again later to prevent the infection from spreading. Click on help for additional suggestions. »

    I tried to remove it manually, do my files by accessing online something who would want me to download something, so opening my files. The location was: "C:\Users\Jacky\AppData\Local\Microsoft\Windows\Temporary Internet Files\Content.IE5\7KSNJPK9\ee2fad[1].exe.

    I had learned to: "C:\Users\Jacky\AppData\Local\Microsoft\Windows" but has not found the temporary Internet files. I then looked online how can I delete Temporary Internet Files without a control panel, since I am not able to access it. I deleted the temporary internet files from IE 8. And am running a full scan with Trend Micro. Alas, I am now come to your site to ask for help on the way out of this so that I won't have to replace my laptop with a new. Please, please help as much as you can.

    While you can try some things to fix this problem yourself, you really need help and advice of experts.

    This is compliments of PA bear MS MVP:

    1. see if you can download/run the MSRT tool manually:http://www.microsoft.com/security/malwareremove/default.mspx

    NB: Run the FULL scan, not analysis FAST!  You may need to download the MSRT on an uninfected machine and then transfer the MRT. EXE to the infected machine and rename it to SCAN. EXE before running it.

    2A. WinXP-online Windows Live Safety Center scanner 'Protection' (only!) in Mode safe mode with networking, if necessary:http://onecare.live.com/site/en-us/center/howsafe.htm

    2B. Vista or Win7-online this scanner instead: http://onecare.live.com/site/en-us/center/whatsnew.htm

    3. now post the logs required in a forum appropriate for support by an expert in the field. DON'T SKIP THIS STEP!

    I can recommend the assistance of experts available in these forums: http://spywarehammer.com/simplemachinesforum/index.php?Board=10.0 http://www.spywarewarrior.com/viewforum.php?f=5 http://www.dslreports.com/Forum/Cleanup http://www.Bluetack.co.uk/forums/index.php and http://Aumha.net/viewforum.php?f=30

    If these procedures look too complex - and there is no shame in admitting this isn't your cup of tea - take the machine to a local, good reputation and stand-alone computer (that is, not BigBoxStoreUSA or Geek Squad) repair facility.

    I hope this helps.

    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.

  • Why does take 2 or 3 minutes to access a url of a hyperlink in a pdf document?

    With Adobe Reader locally or the plug-in on a Web site, it takes a lot of time for a url called by a hyperlink in a pdf document will appear in a browser window. Can anyone explain why this is happening and, hopefully, how to fix?

    I tried as simply as on Windows XP with Adobe Reader 11.0.10 and Firefox 36.0 - the link opens instantly.

    Try if disable Protected Mode [Edit |] Preferences | (Enhanced) protection] solves the problem.

    P.S., Drive 11.0.10 is not officially compatible with Windows XP, but it actually works very well.

  • URL of hyperlinks in Acrobat (and InDesign) open in new tab/window

    I don't really understand why this feature is not yet implemented. I tried to google a workaround solution and found hundreds of messages around this problem. People asking how they could do this since 2002 (the oldest post I could find) maybe earlier.

    Please make sure that Acrobat - and also InDesign - get this feature in the next version - because people want to have!

    What I speak?

    The following functionality:

    I understand a textlink or and Image-link in a PDF file.

    Because Standard browser settings, most of the people who download a PDF file see the PDF in a browser tab. Now, if they hit one of the links (included in the PDF) the link opens in the same window/tab. The PDF is closed. The only way to get back to the PDF document is to hit the back button on the browser or reload the PDF file. Normally, I like to open these links in a new tab or window. But there is no function in Acrobat, or InDesign to open the link in a new TAB/window.

    I know there is a possibillity using JavaScript (app.launchURL ("http://www.MySampleURL.com/someFolder/somePage.html", true) ;))

    and it worked. But now because of the security settings for Acrobat X and later it only works if the user changes the settings. Thus, it is therefore more useful because most users do not know how the links work.

    So for the moment, there is NO WAY to make the link open in a new tab.

    I know not if I link to another file, he askes me where the open - new window, or the same. Why can't you implement it for URL too?

    Sorry, I tried all day to fix this. And I don't understand why Adobe doesn't look like a customer there needs (since 2002 or an earlier version).

    Since no one has posted a response within two years - I think it would be good for someone to do.

    I hate to say this... but is not problem from Adobe to solve simply because Adobe has more the PDF specification.  I suggest that join you the Association of PDF (pdfa.org) on how to submit suggestions to have the amended specification.  As PDF 2.0 is nearing completion, this will most likely not even be watched until the next set of changes.

    As a stop-gap measure a compliant reader may have some sort of setting to support some kind of default behavior (PDF open links in a new tab).

    Remember, the purpose of a link (or button as a link), is to take you to an external destination.  Currently, there are no facilities within the PDF specification to bring it to manipulate the local user interface.  Open a new window or a new tab?  If a new windows, what size, position, zoom, rotation, etc. do I? I do it in the foreground or background?  How this metadata will be stored in the PDF file? What kind of impact that will have on PDF files and the tools existing?  What happens if the local user does not want any of this to happen? Who gets the last word in this matter?

    Now, one day, there are many more PDF readers only existed in 2013.  Beyond Adobe Reader and FoxIT, pretty much all browsers has one. With OS / X Preview and a bunch of other visualization tools.  Not only do you need get the specifications to be changed, but these tools need to support change.  And how they implemented it may or may not be what you're asking.

    I'm not saying what you ask is impossible, or even offline.  Honestly, it looks like a good idea.  I just make you aware that the details are in the implementation. A lot of players here must be involved and goes in the same direction.

    I hope this helps.

    Thank you.

    Doug

  • Where is the widget that spans the control panel indesign cs5.5

    Hi, I'm only learning Indesign CS5.5 on a Macpro using X Lion. I was going through the tutorials and listening to those on covering and splitting columns, the Narrator makes reference to Spanning a widget on the control panel. My program does not seem to have this widget, and when I did a search he just lead me to this tutorial as the mere mention of a covering widget.

    I tried to go to the help, but it only led me to what is new articles which is without help because since I have never used Indesign I have no frame of reference for what's new!

    So, I'm afraid that your tutorials will continue to be frustrating for me because of the references to the controls and commands that do not exist.

    My question is, where can I find the widget mentioned in this turorial Adobe Indesign?

    http://TV.Adobe.com/watch/learn-InDesign-CS5/spanning-and-splitting-columns/

    You must have your cursor in the text, and then choose mode paragraph (P symbol chosen on the left side of the control panel.

    Then look for this:

Maybe you are looking for