Draw an icon in a generic Panel widget

Hello

In my GUI, I have a GenericPanelWidget with his drawer. In the widget, I get a glimpse of a file, such as a JPG file. Some files that I can't go out an overview (for example, a word document), in this case, I want to draw an icon of the file resources (en). The icon in the resource file is something like "NFSP (kPicIcoTopOutsidePictureRsrcID) 'TopOutside.png' resource '.

How can I do?

How can I draw a shape of icon the en resource in this widget?

Instead of PNG, can I use BMP (Bitmap)?

Thanks for any help.

Hans

Hi Hans

If you want to use the PNG image, that is embedded in the binary plugins, you can just use PlatformIconClass in your GenericPanelWidget Draw method.

"How can I draw a shape of icon the en resource in this widget?

PlatformIconClass thePIC;

thPIC.LoadIcon (kYOURPluginID, kPicIcoTopOutsidePictureRsrcID);

thPIC.Draw (inYOURViewPort, iconSysRect, kFalse);

Another way is to use the 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 the PNG image format. Don't think that you can work with the other formats.
Concerning
Bartek

Tags: InDesign

Similar Questions

  • I try to open most of the icons in my control panel, I can get the message: application not found c\windows\system32\rundll32.exe.

    How can I fix it so I can delete unwanted programs? I try to open most of the icons in my control panel, I can get the message: application not found c\windows\system32\rundll32.exe.

    Please press Crtl + Alt + Delete key on the keyboard. Now, you will get a new manager called tasks window.

    Now, please hold down the CTRL key on the keyboard and click file, new task on the Task Manager.  Now, you will get a new black window. Copy the following and paste it into the black command window and press ENTER. Restart the computer.

    Assoc .exe = exefile

    Assoc .lnk = lnkfile

  • Could not find 'Do' / icon in the Control Panel folder

    I am trying to install a new font and the instructions are to click the icon fonts in Control Panel and install the font that I downloaded, but my Control Panel does not show an icon/folder of fonts. Help?

    I found it, someone else who has the same problem - it is inside the look and theme folder, in the left menu.

  • How can I get rid of the icons on the control panel duplicate

    I duplicate several (100's) to be exact "bluetooth" icon on my control panel.  When I click on that it takes me to a screen that allows you to add the "bluetooth devices".  These icons all have the same date/time etc. accept for the name which are numbered sequentially (i.e.  Bthprops<100>. cpl.  There is one which I assume is the original "bthprops.cpl.  How can I get rid of all the other icons/duplicate files from my control panel?

    Hi RichardGrewe,

    Follow these methods.

    Method 1: Performs a search using the Microsoft safety scanner.

    http://www.Microsoft.com/security/scanner/en-us/default.aspx

    Note: The data files that are infected must be cleaned only by removing the file completely, which means that there is a risk of data loss.

    Method 2: Scan the file system (CFS) auditor to repair corrupted files.

    Description of Windows XP and Windows Server 2003 System File Checker (Sfc.exe)

    http://support.Microsoft.com/kb/310747

    Method 3: Follow these steps:

    (a), click on Start>find>files or folders.

    (b) search for .cpl.

    (c) through the results in the Windows\system folder.

    (d) delete the duplicates (with the same name).

  • After download of Internet Explorer 8 I can't open all the icons in the control panel. On display is come information that Windows cannot find 'C\WINDOWS\system32\rundll.32.exe '.

    Dear Sir/Madam,

    Yesterday, I downloaded Microsoft Internet Explorer 8 web from Microsoft Download Center.

    After downloading Microsoft Internet Explorer 8, I can't open any icons in the control panel.

    On display is come information that Windows cannot find 'C\WINDOWS\system32\rundll.32.exe '.

    Help, please. Thanks Gene.

    Thanks Gene.

    Dear: :

    Running sfc/scannow will not replace the missing rundll32.exe file.

    Why you post methods that do not work and will be just wasting time?

    Hove you never even seen this problem before, tried to recreate it so that you can actually see, or have you never really fixed?

    Why you learn not what sfc/scannow does and does not do?

    Here is a simple test to you and all your colleagues in the technical support engineer:

    Rename or delete just your c:\windows\system32\rundll32.exe file is "missing".

    Rename rundll32.exe---> rundll32.xxx

    If you started normally, before you can blink, the 'missing' rundll32.exe file quickly and quietly replace the copy in the dllcache folder.  It is the Protection of Windows file in action and you will see something like this in the Event Viewer log system:

    Event type: Information
    Event source: Windows File Protection
    Event category: no
    Event ID: 64002
    Description:
    File replacement was attempted on the protected system file c:\windows\system32\rundll32.exe. This file was restored to the original version to maintain system stability. The file version of the system file is 5.1.2600.5512.

    I beg you to perform this simple test to know how the sfc/scannow:

    Boot your system to Safe Mode or the recovery for the Windows File Protection Console does not run.

    For this example, we will use the system critical file rundll32.exe.

    Rename or delete your c:\windows\system32\rundll32.exe.exe file so the file is now "missing."

    A critical file, is it true?  It is on the list of the file 3498 knows the Protection of Windows and SFC files, but now he isn't.

    If Windows File Protection is running, the "missing" file would be quickly and silently replaced (try to rename or delete it in normal mode and it will be quickly and quietly replaced).

    Now, with your file rundll32.exe missing, start in Normal mode and try to use something like control panel to open something like Power Options and you'll see that familiar message:

    Control Panel
    Windows cannot find 'C:\WINDOWS\system32\rundll32.exe '.  Make sure you typed the name correctly and then try again. To search for a file, click the Start button, and then click search.

    Now you have recreated a common problem with the missing file and seen the error of our own eyes.  A Microsoft Support Engineer will usually suggest running sfc/scannow for this kind of problem, but it will not work or help and you can prove it to yourself, and now you have reproduced the error.

    You follow own advice and run sfc/scannow to the end.

    The rundll32.exe is always had disappeared, right?  Did run sfc/scannow replace the missing critical system file?

    How can he be so sfc/scannow is supposed to replace the missing system files?  This is because it is not this that sfc/scannow does.

    Now you know sfc/scannow does not.  He did not replace your missing system file (don't forget to put your rundll32.exe back so you will have a).

    Now, go to c:\windows\system32\dllcache and delete or rename the file rundll32.exe from there - and it will be gone and not replaced automatically because the Windows File Protection does not seem after this record.

    Run sfc/scannow in full again.

    Replace the file rundll32.exe missing in the dllcache folder, since it handles missing files (not the system32 folder) IS the folder that sfc/scannow.

    Now you know sfc/scannow does.

    Do you need help to know too much about the corrupt system files?

    Since most people do not have a genuine XP bootable installation CD, they will not be able to develop a copy of the file that is missing from the installation CD, they have not.

    After some directions on how to replace the file when the user has no XP bootable installation CD authentic and that will be useful to all.

    If you don't know how to say "I don't know how" and I'll help you.

    You want to inform/warn the poster that SP3 is installed that running sfc/scannow will take a long time for the installation of SP3 CD?

    If you do not have a CD with the same Service Pack as your installation (most people don't), the posters are in for a rough and frustrating time.

    Of course this will help with the detachment of the Ministry of Education of the impossible to try things that don't work, but I thought I'd throw it out there for the 100th time.

  • Unable to use power options icon of in Control Panel (xp)

    My friend has an Acer laptop running on Windows XP. However, after clicking on the 'power options' icon in the Control Panel, it does nothing. That's happened? I can manually download and reinstall something rather than having to perform a system restore? My friend was not aware that this icon does not work and therefore doesn't know how long it has been like that.

    Hello Azam K,.

    My apologies for my delay in responding but I've been away for a few days. Thank you for the feedback. However, so far I have not need make your suggestions because I managed to find a download on the Acer site for an Acer ePower Management application which seems to be what the power options icon was eager point to (I hope that makes sense?). The original Acer ePower Management software seems to be on the laptop but has been altered.

    Once again, thanks a lot for your feedback.

    Kind regards

    Stuart.

  • is no longer a "bluetooth device" icon in my control panel and I can not get my compatible portable bluetooth to "see" more my bluetooth mouse

    My logitech bluetooth MRCQ142 mouse worked until yesterday, April 9, 2011... now, nothing is more a "bluetooth device" icon in my control panel, and clicking on the icon of the mouse only shows me the Mouse touchpad on my laptop HP 6730 s... There are fresh batteries in the mouse, it is powered and mode discovery... my keyboard still works, but not the mouse... I have SP3 for XP installed on my laptop... How do I fix my laptop to recognise once again my bluetooth mouse?

    Hello

    Try to perform the system restore and see if it works

    http://support.Microsoft.com/kb/306084

  • When I click on any icon in my control panel, a black window opens and C:WINDOWS\system32\rundll32.exe is what's wrong with the system

    When I click on any icon in my control panel, a black window opens and C:WINDOWS\system32\rundll32.exe is what's wrong with the system

    {Assuming the rundll32.exe file is not found}

    See if them can restore the file rundll32.exe:
    http://support.Microsoft.com/kb/812340 Ramesh Srinivasan, Microsoft MVP [Windows Desktop Experience]

  • Advent 6651 activate bluetooth no icon not showing in Panel, no options to correct

    My laptop Advent 6651 Windows Vista does not appear the Bluetooth icon in the control panel I have to activate Bluetooth to connect to my cell phone how can I do this

    Hello

    do not post in all capitals

    your head is all lowercase, then why do all the capitals in the body of your message?

    It makes it so difficult to read

    read this

    read these tutorials on how to set up bluetooth

    http://www.vista4beginners.com/how-to-setup-a-Bluetooth-connection

    http://Windows.Microsoft.com/en-us/Windows-Vista/set-up-a-Bluetooth-enabled-device

    Here are solutions to some common problems with Bluetooth devices.

    You can also try a convenience store for diagnose and fix common problems with equipment and devices running.

    http://Windows.Microsoft.com/en-us/Windows-Vista/troubleshoot-problems-with-Bluetooth-enabled-devices

    If the above don't fix contact the hardware manufacturer or contact the manufacturer of your computer

  • How to insert HTML custom in tabbed panels Widget

    I need to insert HTML in a tab panel Widget.

    I have an HTML table with the data that I have to put in a tab panel Widget.

    I tried to create the custom HTML and dragging it in the area of the tabs Panel that did not work.
    I tried the content area of the Panel tabs, then click to insert custom HTML that has not worked.

    And now, I'm of ideas on how to achieve this.

    Thanks in advance

    Ho!

    So I thought about it for me.

    If you are wanting to insert HTML custom in a tab panel, make sure that you have selected an object in the content area of the Panel tabs. Then select Insert HTML code.

    I have just placed a text box in the tabs Panel, selected the text box so that it is highlighted and then chose to insert custom HTML.

    This put my HTML custom code in the content area of Panel tabs.

  • Tabbed Panels widget

    Hello.

    How can I add multiple tabs for the default tabbed panel widget...

    Basically, using the "bootstrap" structure, I added a tabbed panel widget that has a default 3, however an is a 'drop-down Menu"style that I delete.

    Leaving me with only 2 tabs.

    How can I add more.

    Thank you in advance.

    Glen Gibbs

    You will have to switch to Code view and change some coding. Take a look at what follows is what you get when you include the standard tabs widget. Then remove the red color elements, they belong to the tab from the drop-down list.

    Content in the tab of the Panel 1

    Content 2

    Content drop-down list #1

    Content drop-down list #2

    This leaves us with

    Content in the tab of the Panel 1

    Content 2

    Copy the 2 remaining Tabs, color green and past them immediately under the copied lines. Do the same with content, blue color. This will result in the following code. Remove the red color code and change the orange color code while they in the same sequence as the original code.

    Content in the tab of the Panel 1

    Content 2

    Content in the tab of the Panel 1

    Content 2

    Your code over for the four legs will look like

  • Tab 3
  • Tab 4
  • Content in the tab of the Panel 1

    Content 2

    Content on the dashboard 3 tab

    4 content

  • I used a Muse Panel widget and it looks totally different in inbrowserediting... so really can't do anything.

    I built a website in Muse on Mac and used a Panel widget on the home page. The site is up to www.tricountyagpros.com and seems ok, not exactly as Muse, as he added a blank space under each color box. When I go to inbrowerediting, the Panel widget is totally off.

    Someone can tell me how to fix this Panel widget or do they not work?

    Thank you

    Benjamin K

    Follow please: Panel tabs in inbrowserediting widgets do not work!

    (Double Post)

  • HTML shows on all panels in tabbed panels widget

    I'm trying to insert HTML in a specific panel on a tabbed panels widget, I have set up.  I have done this before, but now whenever I try, the HTML code displayed on each Panel instead of the one specific one I selected.  Note, I was able to achieve previously with ease.  Here is a sample of the HTML, I'm trying to use, and has been able to use successfully on a separate tab with a name different iframe.

    "< iframe name ="iframe2' src = message.html "width ="500"height ="300"> < / iframe >

    Strange!, please publish the site as a place for Business Catalyst trial and give us the link.

    If the content is different for each tab, then they should not show same content unless the code inserted is not correct.

    Thank you

    Sanjit

  • How to configure the generic Dashboard widget to interact with the other widgets 5.6?

    VCops 5.6 I can see that the generic dashboard can act as a receiver widget.   However, I can't figure out how to put in place to receive data and at the height of the selected metric.  For example, I would like to have 3 parameters of cluster displays the dashboard then choose a cluster to the health of the company and have it change the settings to use the selected cluster.  I can't choose a metric of cluster without choosing a specific cluster.

    Thank you

    -MattG

    Generic interaction Widget Scoreboard is intended by using the configuration of "Mode of Interaction of reference". In other cases, it is impossible to see the results of interaction for the widget.

    Configuration interaction "Res. Interaction Mode' only works for the predefined settings (predefined in the XML file). Also, this resource should be provided during interaction (to make a widget to generic dashboard). User can set the interested metric, which will appear on the dashboard widget after the interaction of the resource.

    Please find below the steps to configure and set of interesting measures via XML file and allow interaction for them, in generic Scoreboard widget:

    (1) edit the file 'sampleScoreboard.xml' in: / usr/lib/vmware-vcops/tomcat-enterprise/webapps/vcops-custom/WEB-INF/classes/resources/reskndmetrics

    (2) configure the XML file by your best adapter type, type of resource, and metric, beaches of colour/threshold for each attribute/metric. And to see that only your metric set register after the interaction resources widget generic Scoreboard (resource).

    (3) ' provider' on OFF display of the widget editing mode.

    (4) select the interaction of your generic Scoreboard widget provide.

    After such a configuration, you can make interaction by resource to generic Scoreboard widget.

    hope this helps

  • How to customize the tabs in tabbed panels widget... ?

    I have four tabs in a tab panel widget and I want the color of the active tabs are different. For example: when the tab it is active, it is blue, when two tab is active, it is red, tab in Active mode three is yellow - and so on...

    Is this possible? And if yes: how?

    It seems that if I change the 'active' color on a tab, it effects all tabs. I also tried to use an image on one of the tabs in the 'active' mode - and the image is apparently used for all other tabs.

    arneberg1

    You can do it by uncheck edit together in the Panel options. You can do it anytime, so you can standardize the text, for example, and then uncheck the box to change the colors of the tabs themselves.

    David

Maybe you are looking for

  • I can refuse FF to run flash player plugin on specific sites?

    I have a plugin obsolete and FF asks me to 'allow' or ' allow and remember "to run it. Is it possible to return to the "ban"? Thank you.

  • Tecra S2 bluetooth internal module

    Where can I found out if it's possible to install internal bluetooth module PA3425U-1BTM on Tecra S2 model NUM. PTS20E-01W00MG3? Laptop was purchased in Europe (Slovenia)! P.S.: Where can I post a question for an expert... etc.

  • cannot slide to unlock

    I just bought the new iphone 6s on Black Friday and tonight I could not slide to unlock. I tried to turn off phone however, it wouldn't work. Tried to use Siri, but he randomly calls people, facetime etc... I have not updated my phone since the purch

  • thread different not mobile Panel

    I () will have applications of measure which changes, sends a bitmap image in its Panel to a network Variable. I have a player that connects to the network variable. It was a reminder that fires on an update of the value or the State. Because the siz

  • I lost the icon green mode safe on the internet, how to get back

    I have the internet, but somehow, I have the green icon that says that my internet is in safe mode. How he do on the internet