Draw an Indesign Template Icon into a generic panel widget

Hello friends
I want to draw an  image preview of perticular indesign template file into a generic panel widget.
I refer bascic panel treeview ,but thing is that it will support  jgp,pdf file format not indt or indd format.
My Requirement is  As follows
i have root folder and this root folder contains the template file ,when user select the template from this folder preview of that file is drwan into the generic panel.
if anybody knows the solution for  the same please help me.
Thanks
Tahir

Hi Hans
If you want to use PNG image, that is embedded in plugins binary you can simply use PlatformIconClass in your GenericPanelWidget Draw method.
"How can I draw an icon form the fr resource into this widget?"
PlatformIconClass thePIC;
thPIC.LoadIcon(kYOURPluginID, kPicIcoTopOutsidePictureRsrcID);
thPIC.Draw(inYOURViewPort, iconSysRect, kFalse);
other way is to use PNGArt class which gives a pointer to AGMImageRecord
PNGArt pngArt;
pngArt.SetRsrc(kYOURPluginID, kPicIcoTopOutsidePictureRsrcID, false);
AGMImageRecord* theImageRecord2 = pngArt.GetBitmap();
"Instead of PNG, can I use BMP (Bitmap)?"
InDesign resources are based on PNG image format. Don't think you can work with other formats.
Regards
Bartek

Similar Messages

  • With Firefox, whenever I drag a URL icon to the desktop, it morphs into a generic Firefox logo. The specialized icons would be better....is there a way to preserve them?

    With Firefox, whenever I drag a URL icon
    to the desktop, it morphs into a generic Firefox logo. The specialized
    icons would be better....is there a way to preserve them?
    if this is a duplicate post - I apologize- new here

    Hi!
    It seems that you are looking to customize the icons in your desktops with the Favicons of an specific site (the small logos next to the URL as you call them).
    I'm not sure if any add-on exists but by default it's not possible to do what you are looking for.
    I hope it help, at least a little bit.

  • Safari icon has turned into the generic icon and doesnt work anymore

    Safari icon has turned into the generic icon and doesnt work anymore

    Reinstalling Mac OSX 10.5 (Archive and Install) may be the step.

  • Having a problem importing xml into an indesign template.

    I am having a problem importing xml into an indesign template. The xml data is there and will populate the columns on the document but I am having problems matching styles, removing data that should not be mapped and importing repeated same fields but differnet data.
    Message me if this is something you can do quickly for a fee.

    Also you can check the following link
    [Reporting|http://devlibrary.businessobjects.com/BusinessObjectsXIR2/en/devsuite.htm]
    Regards,
    Tej

  • How can I interact between two different frames in the same indesign template as well as from one template to another.

    I am looking for the best way (or any way) to interact between two different frames in the same indesign template as well as from one template to another. It's for a DPS app which needs to carry some button initiated data from one page to another and then present it in a table.

    There is no simple way to do it, as itunes wont let you use it on another computer without wiping the contents first.
    However if you really want to transfer songs to another computer then you could try this;
    * make sure that your ipod is accessible as a disk drive (ipod options)
    * when you plug your ipod into the computer you want to transfer to make sure you select "no" or "cancel" when it asks to wipe the contents. Leave the ipod connected and quit from itunes.
    * go to "my computer" and access the ipod directly. You probably have to select "view hidden files" from windows. You will see a lot of folders with odd names like ZX838aff with similar named files inside.
    * copy these files to a folder on your computers hardrive. Now remove the ipod and start itunes.
    * import the files from the folder you made in the last step.
    * Now your music is on itunes, but with unrecogisable names.
    This is the only way I have found to do it, but there may be another way, say with an application to do the hard work for you.
    Generic homebuild PC Windows XP
    Generic homebuild PC   Windows XP  

  • Xml? and Indesign template

    Hey all,
    Thanks in advance for any replies.
    I am working with a graphics designer to publish a "guide" of local businesses. I am the developer that made the database in which the data is stored in. We are using MySql and a simply designed frontend to input data.  Each business is stored into categories.  What we would like to achieve is to create an indesign template for the printed version of the guide.
    I have done some reading on the web and found some XML import tutorials for indesign. Where I find our situation different from the tutorials is in the fact that each category can have a dynamic number of businesses in it. In the tutorials they are using an XML file with the same amount of data for each instance of an object and are creating a single page for each object. (essential something like a mail merge for indesign)
    E.g.
    The tutorials have something like :
    3 people with Name, address, phone number...
    a template for "person"
    We have :
    3 categories with Name
    1 category has 5 businesses in it
    1 category has 2 businesses
    and 1 category with 16 businesses
    each business has a Name, address, phone number ...
    Looking for some way to make indesign import this data... The data could be XML or something else fairly easily as it is in a database and can be formatted with PHP.
    Desired output would be something like:
    ---Category Name---
    Bus. 1 info
    bus 2 info
    bus 3 info
    ---Category 2 Name ---
    bus 1 info
    bus 5 info
    bus 17 info
    Basically I would need to create a template with Some boundaries for my varriable number of children in each category.
    Any help what so ever would be nice,
    Again, thanks in advance for any replies
    Tom
    P.S. If i need to give more information just let me know

    """""If it's easy for you to do, and you know what categories each of your data fields would become, tagging them with a style name would save the designer a significant amount of time. It doesn't matter what the style names or definitions are -- that's easily changed in the layout -- but having the tags means you don't have to go through the doc and assign the styles manually. """""
    This was easy to do. You just saved them a lot of work.
    Thank you.
    reference i used:
    http://www.topchoice.pl/dtp/faq/specials/TaggedTextCS.pdf

  • I am having trouble implementing scripting functionality in an indesign template for a DPS project.

    Basically how should the interaction between inserted HTML and the CSS, JS applied for the HTML happen?
    I created plain HTML code which has text fields, buttons and the functions that perform some simple calculations. But when imported via Object>Insert HTML the HTML functionality was lost. I then tried creating and exporting an indesign template which contained all the buttons required for the calculation as a HTML file via File>Export option, added modified HTML code and then used Object>Insert HTML. But no luck.
    Is there a better way to import and/or how do we initiate a button to be used via scripting? (Eg: convert a image into a button in indesign, but.... how best to initiate a "onClick" function for the button created via Js or Jquery).

    I'm having the same issue. And Dreamweaver now crashes after just a few seconds.

  • I want to make a schedular which read xml files from a folder ,import in Indesign template then export as a pdf....

    i want to make a schedular probably in Coldfusion or using javascript ,  which read xml files from a folder ,import in Indesign template then export as a pdf....

    I don't think you understand: I want to open Dreamweaver and build a brand new site, then when I am done I want to host the dreamweaver site on the Business Catalyst platform. I dont want to use anything in BC to build the site, I just want to use the hosting platform. I do not want to import a BC site into dreamweaver or anything like that. I just want to use BC the same way I would use godaddy, or uhost or any other hosting provider. Based on your response you said that "of course its possible to build a BC site in Dreamweaver" I dont want to build a BC site, I want to build a Dreamweaver site and host it on the BC platform. Like I said before it doesnt seem like this is possible. As of now we can only build a new site in MUSE and integrate it into BC without using a BC template. Can you understand what I am saying. I DONT WANT TO USE A BC TEMPLATE, I WANT NOTHING TO DO WITH BC WHILE I AM BUILDING THE SITE WITH DREAMWEAVER, JUST LIKE MUSE DOES.

  • Corel Draw and Indesign

    We would like to import/open directly a cdr file into Indesign instead of making an export into a indesign file from Corel Draw
    Is it possible ?
    Thank you

    Corel Draw vs Indesign. Draw will actually be able to make objects instead of just import them. Indesign is very bad at making objects beyond the simplest geometric shapes. Come on it cant even make a clipping mask and those have been around for how many years now? Indesign will be little smoother on the total text heavy functions i give it that but coreldraw is a better all in one and can actually make your complete project in it not have to make things in photoshop/illustrator and import to indesign when you just need the CorelDraw suite. My favorite function in draw is copy/paste actually pastes it in the exact same spot you copied it from which is such a massive time saver you have no idea. How often do you have to waste time repositing pasted objects when just needed a copy in a slightly different spot from the origin?
    CorelDraw can do all the major desk top publishing techniques needed. Tracking, kerning, leading, text styles, master pages, faceing pages, ect. I hate designing in indesign. Unlike illustrator or coreldraw you have a very limited art board space per page and it does not like you moving your screen around to look around and try. You cant really scroll left/right which is dumb.

  • Icons into photo ... hep please

    greeting helpful friends!
    once upon a time I changed a few photo icons from the generic jpeg icon to an actual mini photo, that stays when you view in list form.
    Now I can't remember how I did it to save my life.
    And I wanna do more!
    Seems I opened the photo itself, then went somewhere in the menu and did some clicks and viola...instant mini photo icon.
    Going into "view options" and selecting "show image preview" IS NOT IT.
    I cannot find how to do it in either the missing manual or "learn visually..."
    Anybody have the secret formula?
    Many thanks

    This is an easy one.
    Open the .jpeg that you want your file or folder to be transformed into. Click on the pict and hit "apple c " ( copy function)
    click on the file you want to change--> click "get info " ---> click on the icon and click paste " apple v " .
    This will change the icon to the picture that you want.
    ( note- i worded this in laymans terms )

  • When i draw a line it coverted into graphic by default

    hi,
    when i draw a line it coverted into graphic automatically, i
    have own to break apart it with ctrl+b.
    pls help me. this was not before .

    fooflash wrote:
    > hi,
    > when i draw a line it coverted into graphic
    automatically, i have own to break apart it with ctrl+b.
    > pls help me. this was not before .
    select drawing tool, any tool, hit the J key.
    Hitting J will alternately change your drawing from raw shape
    to group shape.
    It's the little icon next to the MAGNET under the 'options'
    on tool bar
    Best Regards
    Urami
    <urami>
    If you want to mail me - DO NOT LAUGH AT MY ADDRESS
    </urami>

  • Turning an icon into a button in a table

    Currently, I access a database in my program, and if I find an 'X' in a specific column, I place an icon in that field. What I would like to do is have that icon act as a button, that will pop up a screen with further information about the table line item. I am new at Java, and not sure what to do next.
    Here is the code for my table model:
    class sciTableModel extends javax.swing.table.DefaultTableModel
         public sciTableModel()
              super();
         public sciTableModel(java.util.Vector data, java.util.Vector columnNames)
              super(data, columnNames);
    and here is the code for my renderer
    class IconRenderer extends DefaultTableCellRenderer
         public Component getTableCellRendererComponent(JTable table,
         Object value, boolean isSelected, boolean hasFocus, int row, int column)
              ImageIcon iconl = new ImageIcon("info.gif");
              String headerText = (String)value;
              // System.out.println(headerText);
              JLabel headerComponent =
              ((JLabel)super.getTableCellRendererComponent(table, value, isSelected, hasFocus, row, column));
              headerComponent.setHorizontalAlignment(SwingConstants.CENTER);
              if (headerText != null)
                   headerComponent.setIcon(iconl);
                   headerComponent.setText("");
              else
                   headerComponent.setIcon(null);
                   headerComponent.setText(null);
              return headerComponent;
    In the public class I set the renderer, and in the actionevent that runs the database access I use the tablemodel.
    Any help on how I can turn this icon into a button would be appreciated.

    In A JTable, the render has the job of drawing one or more cells, but it's a rubber stamp -- it doesn't
    respond to events like a true component. What you describe isn't the job of an cell editor either,
    since, obviously, nothing is being edited. That leaves JTable itself: I suggest you write a mouse
    listener for your JTable and respond appropriately when the right cell is clicked:
    import java.awt.*;
    import java.awt.event.*;
    import javax.swing.*;
    public class Test {
        public static void main(String[] args) {
            JTable table = new JTable(20, 5);
            table.addMouseListener(new MouseAdapter(){
                public void mousePressed(MouseEvent evt) {
                    JTable t = (JTable) evt.getSource();
                    Point point = evt.getPoint();
                    int col = t.columnAtPoint(point);
                    int row = t.rowAtPoint(point);
                    if (col != -1 && row != -1) {
                        int modelCol = t.convertColumnIndexToModel(col);
                        System.out.println("clicked on model cell (" + row + "," + modelCol + ")");
            JFrame f = new JFrame("Test");
            f.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
            f.getContentPane().add(new JScrollPane(table));
            f.pack();
            f.setLocationRelativeTo(null);
            f.setVisible(true);
    }As the code demonstrates, don't forget to translate from view columns to model columns.
    By the way, why are you subclassing the default table model? You aren't changing any behavior...

  • App icon changes to generic iOS icon once installed

    So, this one I can't quite make heads or tails of—while the app is downloading and installing on the iPad, I can see the app's real icon design behind the progress wheel, but once it's finished installing, the icon just turns into a generic iOS icon as if there was not one designed by the developer. This is happening specifically with the NPR One app. At first I was thinking it might have something to do with the fact that it's an iPhone app downloaded to an iPad, but I've been unable to replicate this issue with any other iPhone-only app. Thus far, I've tried deleting and reinstalling, deleting, restarting the iPad, and then reinstalling to no avail.
    I've taken screen caps while installing and after:
    While installing > http://cl.ly/X2Pc
    After installing > http://cl.ly/X1ct
    Any thoughts, ideas, suggestions?

    I also have several generic icons on my iPad running OS 8. The apps involved are fully downloaded and work fine.
    I finally decided to backup to iTunes, do a factory reset and restore from the backup. That all went well, but the generic icons are still there.
    I don't want to delete and reinstall the apps. One of them is Launch in which I have created many custom actions. I assume that I will lose all of those if I delete and reinstall the app.
    Any ideas?

  • I just noticed that some of the movies I had in iTunes did not get transferred to the iPhone. The missing movies are shown as generic movie icons in the iTunes panel. How do I get the original movies to show up again and transfer to the iPhone?

    I just noticed that some of the movies I had in iTunes did not get transferred to the iPhone 5. The missing movies are shown as generic movie icons in the iTunes panel and are checked to select them. But they do not show up in iPhone Videos. How do I get the original movies to show up again and transfer to the iPhone? I recently upgraded Mac OS to 10.6.8

    1. iTunes won't offer cloud downloads for songs that it "thinks" are in your library, even if it "knows" the files are missing. If you've exhaustively searched for the missing files and there is no prospect of repair by restoring to them to their original locations, or connecting to new ones, then delete that tracks that display both the missing exclamation mark and are of media kind Purchased/Protected AAC audio file. Don't hide from iTunes in the cloud when asked, close iTunes, then reopen. You can download from the cloud links or iTunes Store > Quicklinks > Purchased > Music > Not on this computer > All songs > Download all.
    2. Why? Not sure, perhaps 3rd party tools or accidental key presses combined with previously hidden warning messages when trying to organize the library. There is a hint that using the feature to downsample media as it is synced to a device may also be involved, though I've not replicated it. Whatever the reason a backup would protect your media.
    tt2

  • New MacBook pro how do I add external hard drive which has my entire iTunes library on it. Do I just drag external drive icon into iTunes preference box that shows where new itunes library is now located ie. On the MacBook pro.

    how do I add external hard drive which contains my entire iTunes library to new MacBook Pro. i want to keep iTunes library on external hard drive. But I want all my iTunes information:  artist, songs, albums, playlists on my new MacBook Pro.  I know about going to iTunes preferences- advanced-itunes media folder location.  At this point I don't know what to do   Do I drag external icon into iTunes media folder location box. I want to keep music files on external hard drive. I don't want to use macbook pro memory for my very large music files.

    I will request that your query be relocated to the iPhoto forum where knowledgeable iPhoto users will be able to assist you.
    Ciao.

Maybe you are looking for

  • How to cancel preorders

    I pre ordered a album on I tunes and I don't want it anymore. I've read all the websites on how to cancel a preorder but my iPad is not giving me the option to once I view my appleID to manage my preorders.

  • Check Time Machine Backup Contents

    I have been manually backing up my MacBook Pro contents via drag and drop to my NAS box and have now switched to wireless Time Machine backups after an initial wired backup. I would now like to remove my previous manual backups from the NAS so that I

  • LabVIEW PDA and WinCE

    Greetings all, My latest stab at the bleeding edge of LabVIEW capabilities has brought me to yet another question for which I haven't found an answer... Does the PDA module take advantage of the fact that Win CE is a deterministic OS or are thread pr

  • Updated 5c to 8.1.3 but its stuck on the loading screen and has been for hours

    I updated my iphone 5c to the 8.1.3 and its been stuck on the loading page for hours now. I've tried pressing buttons and unplugging it but it won't do anything.

  • Keyboard Interrupt and NI-DAQ

    Hi! I have this problem when using an AT-MIO-16E-10: I made a program in Borland C++ 3.1 that does the following: -reads in pretriggered mode from an A/D channel (with DAQ_Start); -when the conversion is done a message is sent to my aplication (Confi