InDesign CS3 Win:  Playing with PictureIcon...

Hello Folks:<br /><br />   I have a rare moment to actually explore the SDK a bit on my own without deadline worries or similar impediments to creativity.  I thus decided to play with the sample plugin called PictureIcon.  I compiled it and ran it without a problem, although the writers of the plugin did little more than show how to implement an event handler to change the image used in a picture button when that icon is clicked.  <br /><br />   The problem is that the range of behavior implemented is very, very limited.  Clicking the one picturre button implemented toggles between two images when there are eight included in the project.  So I decided as an exercise for the student, to rewrite the project to cycle through all eight images.  <br /><br />   The problem is that if I click the picture button without a breakpoint included in the event handler, the picture button does not change, as expected.  If I do include a breakpoint, the picture button does change.  I even went ahead and included an Update call based upon comments made in the event handler header, to no effect.  Here's the changed code (I left the old code in for reference purposes):<br /><br />bool16 PicIcoPictureWidgetEH::LButtonDn(IEvent* e)<br />{<br />//DebugMessage("I am inside the event handler.");<br />     do<br />    {<br />          int32 rsrcID = 0;<br /><br />          InterfacePtr<IBooleanControlData> controlData(this, IID_IBOOLEANCONTROLDATA); // no kDefaultIID<br />          if(controlData==nil) <br />        {<br />               ASSERT_FAIL("PicIcoPictureWidgetEH::LButtonDn - No IBooleanControlData found on this boss.");<br />               break;<br />          }<br /><br />          InterfacePtr<IUIFontSpec> fontSpec(this, IID_IUIFONTSPEC); // no kDefaultIID<br />          if(fontSpec==nil) <br />        {<br />               ASSERT_FAIL("PicIcoPictureWidgetEH::LButtonDn - No IUIFontSpec found on this boss.");<br />               break;<br />          }<br /><br />        /*<br />         *  This is the meat of the issue.  If the <br />         *  correct button is clicked, the value of <br />         *  rsrcID is changed to a font number id.  <br />         * <br />         *  It is this font number id which is used to <br />         *  decide which picture will be displayed with <br />         *  each click.  One does not relate to the other;<br />         *  the programmer used this value as a matter<br />         *  of convenience.  Iam going to try something <br />         *  else here, just for fun.<br />         */<br />          //bool16 isPressedIn = controlData -> IsSelected();<br />          //if(isPressedIn == kTrue) <br />        {<br />               //controlData       ->       Deselect();     <br />               rsrcID = Resource;<br /><br />            Resource++;<br />            if(Resource > kPicIcoCenterCompPictureRsrcID)<br />                Resource = kPicIcoTopOutsidePictureRsrcID;<br /><br />            //isPressedIn = controlData -> IsSelected();<br />        }<br /><br />#ifdef OldCode<br />          if(isPressedIn == kTrue) <br />        {<br />               controlData       ->       Deselect();     <br />               rsrcID = fontSpec ->      GetFontID();<br />          } <br />        else <br />        {<br />               controlData       ->          Select();<br />               rsrcID = fontSpec -> GetHiliteFontID();<br />          }<br />#endif<br />          InterfacePtr<IControlView> myView(this, UseDefaultIID());<br />          if(myView == nil) <br />        {<br />               ASSERT_FAIL("PicIcoPictureWidgetEH::LButtonDn - No IControlView found on this boss.");<br />               break;<br />          }<br /><br />          if(rsrcID != 0) <br />        {<br />               myView -> SetRsrcID(rsrcID);<br />            Update(e);     <br />          }<br />          return kTrue;<br />        /*<br />           * early return as here we have already<br />           * handled the event and do not need to<br />           * delegate any processing to the base class.<br />         */<br /><br />     } while(0);<br /><br />    /*<br />     *  Of we get this far then it means that the program <br />     *  should perform the default <br />     */<br />     return CEventHandler::LButtonDn(e);<br />}<br /><br />Does anyone see what I am doing wrong?<br /><br />TIA!<br /><br />John

Hello John,
I think you should start by modifying your *WidgetEH boss definition in your framework resources - replacing the IID_IBOOLEANCONTROLDATA it aggregates by an IID_IINTEGERCONTROLDATA - then you'll have to follow this boolean field down deep into your *WidgetEH implementation to replace it to any flavour of integer value you are used to.
Doing it that way you'll be able to store a state value from 0 to 7 - by example: that would be much closer from the behaviour you are looking for than a boolean toggle I'll guess.
Is this making sense to you?
Best regards
Patrick Perroud

Similar Messages

  • Changes lost after saving InDesign CS3 (WIN)

    Part of our work is to make amendments to books we've typeset in InDesign. As is normal practice, we save and check our work as we go along, and subsequently close the indd file. On a few occasions now, when we have re-opened a file, we have found some of the changes we've made have not been kept. These seem to happen at random through a book, and it has happened rarely enough to prevent us getting to the bottom of it (are we doing something wrong in haste, etc?). For instance, we thought it could be our inadvertently causing Undo to do more than one edit, but our investigations on the latest occurrence of this have convincingly ruled this out. The working files are stored on the computer's hard drive (before being backed up to our server), so it's not a qestion of problems saving directly to a server, either. (So far we haven't experienced this problem on our Mac.)
    We are now wondering if InDesign's ability to keep track of every save (version) of a document, which I understand is accessible through Version Cue (which we don't have installed) is at the heart of the problem. Could InDesign be retrieving earlier save-versions of a file each time we save?
    Anybody any idea what could be going on? More to the point: how can we prevent this happening without our having to check again (and possibly repeatedly) through what can sometimes be more than a hundred author's amendments?
    Ideas would be gratefully received.
    Rob Fris
    documen

    In a message dated 29/03/2010 23:25:17 GMT Daylight Time, [email protected] 
    writes:
    http://forums.adobe.com/message/2698024#2698024
    Many thanks for this. As a result we have adjusted our way of working in 
    InDesign to use Save As and overwrite rather than use Save.
    Rob

  • InDesign CS3 (WIN): "Enable all profiles" scriptable ?

    Hi,
    We have to following problem: We have a large collection of IND files from different sources. When creating output, we want the image profiles to be enabled. The only way to do this, it seems, is manually when opening a document with a mismatched color profile, and there choose "Enable all profiles" for placed content. Trouble is, we can't seem to script this option. Question: Is it possible to disable the warnings and "enable all profiles" for placed content after the document is openend via a script? Or is there another option to script that all placed image profiles should be enabled, before exporting a PDF?
    I hope you can help, where quite desperate...
    Thanks,
    Frank

    Hello John,
    I think you should start by modifying your *WidgetEH boss definition in your framework resources - replacing the IID_IBOOLEANCONTROLDATA it aggregates by an IID_IINTEGERCONTROLDATA - then you'll have to follow this boolean field down deep into your *WidgetEH implementation to replace it to any flavour of integer value you are used to.
    Doing it that way you'll be able to store a state value from 0 to 7 - by example: that would be much closer from the behaviour you are looking for than a boolean toggle I'll guess.
    Is this making sense to you?
    Best regards
    Patrick Perroud

  • Find numeric numbering list, Indesign CS3,Windows

    1. I LIKE
    a. Mango
    b. Orance
    2. Did you know
    a. yes
    b. no
    In this two list I want only numeric numbering list. I wrote the javascript code like
    text_frame.paragraphs[pa].bulletsAndNumberingListType;
    but it shows all the numerice and alphabetic list.
    Please Help

    Thanks for the additional information, but unfortunately it still leaves me a bit confused.  We have only used InDesign CS3 and CS4 with the regular Adobe Paragraph Composer, and it works just fine except for the one font - Adobe Thai.  This font works well also except when a tone mark is needed above a punctuation mark - thats the only time we see a problem? 
    Can you read Thai? Your post confuses me, too. I see that no Thai fonts work correctly in CS4 without the World-Ready Composer turned on. I don't work in Thai very often - my SE Asian script expertise is concentrated in Lao, Cambodian, and Burmese - but I have some sample Thai randomly harvested from the Internet, and a collection of Thai fonts, and none of them work without the World-Ready Composer turned on. Follow the link I posted previously and read about it.
    These are all generic MS fonts. I suppose that someone clever w/OpenType might be able to make a font that would render correctly in the normal Paragraph Composer, which is why I asked you to name any font that did work correctly in CS4 without the World-Ready Composer. I would like to know about it.
    Even with the World-Ready Composer, I'm not willing to say that the Thai is being rendered well - I don't read Thai, so I am not suited to make judgments on good typography, but the Paragraph Composer examples above are obviously less correct than the World-Ready Composer examples.
    I'm not even going to talk about CS3. Try this experiment yourself and post a screenshot.

  • Code Completion indesign cs3 VS C++ 2005

    Hello everyone,
    Has anyone been able to make the intellisence working for InDesign cs3 plugin developing with VS C++2005
    I was referring to a post long ago for InDesign cs2 VS C++ 2003
    http://forums.adobe.com/message/1304438#1304438
    But I'm getting this error:
    fatal error C1083: Cannot open include file: 'VCPluginHeaders.h': No such file or directory
    I triet to specify the complete path but that leads to other Cannot open include files
    Any idea?
    Thank you!
    Nice Coding!

    Problem solved, I had not included all directories in General additional Include Directories
    Thank you!
    Nice Coding!

  • InDesign CS3: Problem with Trial

    Hello,
    I have no tried installing the trial on three different machines and have gotten this message each time I have tried to launch the program and begin the trial:
    "A problem was encountered while trying to load the trial period for Adobe InDesign CS3.
    Click quit to see if restarting your computer or reinstalling the software fixes this problem. Otherwise, click Continue to display a screen where you can enter a valid serial number to begin using the product without trial."
    All of the machines I have tried to install on are running Windows XP SP2. Thanks for any help!

    I have the exact same issue.
    The product installed OK, but when I choose "Start 30 day trial" I am simply told "A problem was encountered..."
    The download is from Adobe web page, 15 August 2008.
    File size 459.188.632 bytes, MD5 = 27d34a3d4e5c5f08992b74c9747f4280
    Payload code = 24D77A7C-E10B-4057-9974-FAB8BFDAC853
    Payloads/Setup.xml: 458H Setup version="1.0.135.0"
    The software was installed on a fresh PC 2GHz, 1Gb memory, with win XP.
    It is totally frustrating that not even a trial can start. At least Quark gets that one right.. I truly understand people that search for a key generate online. All I needed was a trial while I wait for my paid copy to appear.
    Btw: InCopy will not even install, here I am simply told: "You can only run one installer at a time".. although InDesign was already completely installed.
    Shame on you, Adobe installer team. Shame on you.

  • [JS CS3, Win] Saving InDesign using app.activeDocument.save

    Hello.
    I am having problems saving an InDesign document using Javascript.
    My aim is to have a box in the document where I will type the filename and path where I want the InDesign file to be saved (eventually this will be generated from a datamerge).
    I then want to run a script which will read the contents of the box and then save the document to that filename or location.
    At the moment I have:
    //SaveText.jsx
    //An InDesign CS3 JavaScript
    //Saves the document to the provided path
    //get contents of the FileNameBox box on the document
    var varFileName = app.activeDocument.textFrames.item("FileNameBox").contents;
    //now save
    app.activeDocument.save("/"+ varFileName+".indd");
    //alert (app.activeDocument.filePath);
    When I run the script (with "Hello" in the FileNameBox) the file changes name on the top bar of InDesign to "Hello.indd", but (when I run the commented out alert at the end) the file is not actually saving anywhere.
    If I close InDesign and then open it the file is listed under "Open Recent" on the menu, but clicking it does nothing - again the file doesn't exist.
    Does anyone have any ideas to help me from tearing my hair out?
    Where is my file saving? (Or, if it isn't, how can I make it save!).
    Thanks in advance for any help you can offer.

    var myFolder = new Folder("~/Desktop/Test");
    if (!myFolder.exist) myFolder.create();
    var varFileName = app.activeDocument.textFrames.item("FileNameBox").contents;
    app.activeDocument.save(myFolder.fsName + "\\" + varFileName+".indd");
    alert(app.activeDocument.filePath);

  • Printing problems with InDesign CS3 running on OS 10.6

    I recently upgrade my old G4 Mac (OS 10.4) to a new Mac Mini running OS 10.6.6. I am still running CS3 and have encountered only one problem. When I print multiple copies documents from InDesign that contain several layers, each copy is processed separately, so that it can take several minutes just to send the print job to the printer if I'm printing over 20 copies. Then once the print job is processed the printer pauses between every copy, which is tripling the printing time. If I print a simpler document with only one or two layers it processes all the copies at once, as it should. I am printing on an Okidata 6150 color laser printer.
    I never had this problem on my old computer. I'm wondering if this is one of the "unsupported" bugs of running CS3 on Snow Leopard. I want to make sure that this is a problem unique to running CS3 with Snow Leopard before I go ahead and upgrade to CS4 or CS5.
    computer: Mac Mini core 2 duo 2.4 ghz processors, 4 gb RAM, printer: Okidata 6150 DN color laser printer.

    Hi again Peter
    It is version 5.0.4.  I updated it when I newly installed it a week ago in my new computer, and then again updated it just yesterday.
    I might mention that before I got my new computer, I was running Mac OS 4.11, and was using InDesign 3.0.  I had bought InDesign CS3 about a year ago, but hadn't gotten around to using it since version 3.0 had been working fine, and I was used to it.  Then, when I got my new computer, I decided it was time to use the newer version.  However, while using InDesign 3.0 with the old Mac OS 4.11, a printing problem popped up there, too, a few months ago... and it also involved printing problems with Adobe Reader.  I contacted Adobe, and they sent me a patch which fixed it.  I will contact Adobe again if need be, although I thought I'd start here first to see if it was a common enough problem that someone might be able to provide a free and routine answer.
    Richard
    Date: Tue, 15 Jun 2010 20:10:13 -0600
    From: [email protected]
    To: [email protected]
    Subject: Printing problems with InDesign CS3 with Mac OS 10.6.3
    I neglected to ask what version of indesign CS3 you are using. I also 
    notice that Mac OSX 10.6.4 has just been released. It actually 
    addresses some CS3-specific issues, though they seem to be related to 
    launching the apps, not printing. It may be worth trying to update, 
    nonetheless.
    Peter Truskier
    Premedia Systems, Inc.
    510-655-4454
    >

  • Just bought new pc with Windows 8.1 and cannot re-install InDesign CS3. Can anyone help?

    Just bought new pc with Windows 8.1 and cannot re-install InDesign CS3. Can anyone help?

    Hi Dale,
    You can follow the article: System requirements | InDesign to check whether CS3 products can work on InDesign CS3.
    Also please let me know what error message you are getting while re installing InDesign.
    Thanks,
    Ratandeep Arora

  • I bought a Mac PowerBook in 2008. It came with InDesign CS3. I did not use it. My computer was stolen in 2014. I had backed up the hard drive. I reinstalled on my new Mac laptop. I want to use the CS3 now. It will not download or install. What do I do?

    I bought a Mac PowerBook in 2008. It came with InDesign CS3. I did not use it. My computer was stolen in 2014. I had backed up the hard drive. I reinstalled on my new Mac laptop. I want to use the CS3 now. It will not download or install. What do I do?

    From where are you trying to download it?

  • Photoshop File with Layered Set to Multiply Not Honored in InDesign CS3

    I am placing a PSD file from Photoshop CS3, that has a reflection/shadow layer set to Multiply with an additional layer of the model set to Normal within Photoshop. When I place this PSD in InDesign CS3, the Multiply inside of the Photoshop file is not honored.
    Is this Normal Behavior?
    Thanks

    Hey all,
    I've encountered this same problem in CS3, and for the life of me, I thought I remember in CS2 that the layers were indeed honored--hence the advantage of using native PSD files in InDesign. This was so any effects (transparency or otherwise) would be carried over in the InDesign file, therefore removing the limitations of using legacy formats like TIFF or EPS, which did not allow this type of dynamic workflow.
    Give us your thoughts on this, as it has hindered a couple of jobs in CS3 which required the effects exactly as explained above by the OP.
    Thanks!
    Mikey

  • PDF with comments crashing, using InDesign CS3

    I'm using OS10.6 and switching back and forth between Acrobat Pro 9.3.4 and InDesign CS3 5.0.4.  I have Firefox running too, as well as Bridge and Word.
    The PDF was originally made by me.  I email it to my client and she adds comments using her Windows PC - I don't know any more details.  She then Saves As and emails back to me.
    I then open the PDF with comments and start to work through them, making amendments in InDesign, and then marking the comment with a checkmark.  The PDF seems to randomly crash - sometimes it will work fine for a while, sometimes it just won't and crashes each time I open it.  As a result of this random crashing, I'm saving after every comment I process to keep track of what comments I've done.  (EDIT) Sometimes after the crash none of the comments are checked, despite me checking them and saving the file.  V frustrating and time consuming.
    Any ideas??  Thanks.
    Message was edited by: agreen01

    There is a feature in interactive PDF called Show/Hide fields which may or may not give you what you want. You can create a button of an image or other object which will make another object (button) appear. Do a Google search on "Show Hide Field InDesign Tutorial"

  • InDesign CS3 crashes when applying styles to pasted text with formatting.

    Running InDesign CS3, v. 5.0.2 on Windows XP, SP2
    InDesign is crashing whenever I do the following:
    1. Paste or place text from Microsoft Word -- with existing formatting preserved.
    2. Apply any character or paragraph style to that text.
    This happens 100% of the time when I try to recreate the error. It happens on more than one computer. It never used to happen in IDCS2. It's not a missing font issue.
    I've tried recreating the InDesign preference files, but it didn't work. (See help file at http://kb.adobe.com/selfservice/viewContent.do?externalId=kb400616&sliceId=1)
    Any suggestions would be hugely appreciated! This is slowing down my work a ton, and manually adding things like underline is killing me. If it persists, I'll have to roll back to CS2. :(

    We had exactly the same issue - but it only seemed to happen when a "Hyperlink" character style came in with the pasted text. In fact, the crash only happened when we tried to apply a paragraph style to a paragraph that had a hyperlink in it.
    Our solution: before we try to do anything else, we delete the "Hyperlink" character style. I can't guarantee that this will solve your issue, but it has worked for us (so far!) in those rare cases when we cut & paste Word text.
    We have never had this issue when we import ("Place") the Word file - that's generally a better workflow anyway.
    -Bill

  • Booklet issues with InDesign CS3 on Mac, and Xerox WorkCentre 7655 booklet maker

    I'm having several booklet making issues I'm hoping someone can help me with.
    I am on a MacPro, OS X Leopard, InDesign CS3. We have a Xerox WorkCentre 7655 that has booklet making capability. The network server is a PC with Microsoft 2003 server on it.
    The booklet I am making uses two 11x17 trays - one for cover stock for the cover and one for regular 24 lb paper for the insides. The layout is single pages rather than spreads - spreads did not work at all.
    From InDesign using the printer, the cover pages come out backwards and mirror image. The inside pages are upside down and on only half the page. I did not not InDesign file/booklet because that seemed to create even more problems with the Xerox booklet settings, and I don't know how to try InDesign booklet and not the Xerox settings.
    I tried making a pdf and printing booklets from that. On the Macintosh, I can't figure out how to tell it the pages are 11x17 so it keeps giving me an error that the printer is waiting for 8 1/2 x 11.
    I actually did get the booklets to print properly using the pdf file and a PC, but any gray graphics came out lilac. The text was black, and the covers were the correct colors - only the inside graphics were the wrong color.
    I hope this makes some sense - I really need help. I've tried everything I can think of. I spent a lot of time with Xerox 1st and 2nd level support, and they have washed their hands of this. So I'm posting here hoping someone has some ideas.
    Any other information anyone might need for this issue? Thanks so much.

    I have a similar machine configuration and have had many issues printing to an HP 9500mfp. Pages rotate, mirror, 2-sided both print on same side. I've lost the "bookletmake" function. Jobs will not recognize paper trays (meaning I have to manually tell it which paper tray holds the tabloid stock). I've tried using the "Page Setup" dialog box to no avail. On occasion, I can get some of the features to work with a pdf printing from Acrobat. Sometimes, that doesn't work either - never with any kind of predictability. Printing to the HP 4700 is more reliable. I've downloaded the updated "Leopard" compatible driver from HP, but it fixed no issues. When I tried contacting tech support for HP, the replied that this is an OS issues and not with equipment, leaving me SOL.

  • Layered image with blending mode won't display properly in Indesign CS3

    Hello,
    I'm having trouble placing a layered psd and/or tiff with blending modes into my indesign cs3 document. Basically I have a flattened image with a shadow on a white background. I've had to doctor the image a bit in photoshop and I've used the multiply blending mode to remove the white background. (I'm trying to get around having to clip the image and having to recreate the shadow). Anyone know how I can drop my layered image into indesign and have it keep the blending modes I've applied in photoshop?
    Any help would be much appreciated.

    I'll try and do my best to describe what it is I'm doing.
    I've started out with a “flat” image of a product on a white background with a shadow on it. I need to make the background transparent and so that all I’m left with is the product with the shadow on a transparent background.I want to be able to place this image over another image in indesign and have the background remain transparent.
    On the first layer I have a clipped out version of the product with no background (All by itself with no background or shadow). On the second layer I have the original “flat” image with the shadow and white background. On this layer I’ve used the multiply blending mode to remove the white background.
    Now that I have the product on one layer by itself and the product and shadow on layer two with the multiply blending mode I have an image of the product with a shadow with no background. When I place this into indesign, my image shows up with the white background as if the multiply blending mode isn’t applied.
    I’ve tried this on other images. It doesn’t appear that it lets you bring an image over with that blending mode. It's like I'd have to bring over a clipped image and then place that on top of my original image with a blending mode placed on it "in" Indesign.
    Hope that make sense?

Maybe you are looking for

  • File sequence  number in a Flat file

    Hi, I am working on Idoc to file scenario wherein my output file will have a sequence number assigned to each level. there are 4 levels and hence 4 sequence number to be genearted and its values should also have the same sequence number. i am doing t

  • Can a thief take out the sim card and use phone like new?

    I recently left my phone in a public bathroom and when I went back it was gone. So I believe someone has taken it and has turned it off. I am using Find my iPhone but the person has not turned my phone on in 3 days. I'd like to know, what could he/sh

  • Problem with the WRK54G

    I've had this router for about 3 months now and it will lose its connection every few days. I've reinstalled the software countless times and cloned the MAC address and still will not remain connected. I have also noticed that the IP Address changes

  • What's the best way to manage the user list for  Reports on P6 web R8.2?

    BI requires a separate users list from P6 EPPM. Any recommendations on this?

  • Employee ID change

    Dear Experts, There is a scenario where an employee with ID 15 with XX  EMp code has  resigned and joined with another Empl code YY with and  other Empl ID 20, we.f to 1st MAy 2014. When he is login in to his EMp portal to update his deatils the old