7 messages in com.googlegroups.google-desktop-developerRe: displaying an image in the expans...| Subject: | Re: displaying an image in the expansion window![]() |
|---|---|
| From: | asasson (sass...@gmail.com) |
| Date: | 05/23/2007 06:58:10 AM |
| List: | com.googlegroups.google-desktop-developer |
again, i don't have the image available on the gg file. I fetch the image from a remote xml file... how do I fetch the image from a remote file?
On May 21, 8:56 pm, zap <poz...@gmail.com> wrote:
That sample has a file 'details.xml' in it. This is the xml file which is displayed in the details view, and it can display any image/text/ data which is contained in the .gg file. So look for how it is used in the code where details view is displayed, you'll see the 'details.xml' is passed as a parameter instead of the text string as you are currently using. You can then create your own details.xml file which displays an image and use that.
On May 21, 12:45 pm, asasson <sass...@gmail.com> wrote:
The XMLDetailsView example cleared a lot of things up for me, but it still hasn't answered how do I show an image in the details view. The main part of code that I need to focus on is
detailsView.SetContent( undefined, // Item's displayed website/news source. undefined, // Time created desc + "\n" + title, // The Content - THIS IS WHERE THE IMAGE DATA NEEDS TO GO... false, // Whether time is shown as absolute time 0); // Content layout flags
Now, I just show desc and title but I don't know how to list the image.
many thanks, amitai
On May 19, 6:49 pm, zap <poz...@gmail.com> wrote:
Yes that method only displays text.. there is a slightly different way to display richer content including images, buttons etc. in the details view. Have a look at the sample "XmlDetailsView" in the Google Desktop SDK, that shows how to do it.
On May 19, 4:04 pm, asasson <sass...@gmail.com> wrote:
Hello,
Thanks for helping out. my code looks like this:
function onArtClick() { var detailsView = new DetailsView(); detailsView.SetContent(undefined, undefined, desc, false, 0);
pluginHelper.ShowDetailsView(detailsView,title,gddDetailsViewFlagToolbarOpen +gddDetailsViewFlagShareWithButton, onDetailsViewFeedback);
}
function onDetailsViewFeedback(detailsViewFlags) { if (detailsViewFlags == gddDetailsViewFlagNone) { // User closed the details view http=null; CollectGarbage(); } else if (detailsViewFlags == gddDetailsViewFlagToolbarOpen) { // User clicked on the title of the details view var winShell = new ActiveXObject("Shell.Application"); winShell.ShellExecute(link); winShell = null; }
}
This code lists just the description of the painting. I don't know how to show an image though...
thanks, amitai
On May 18, 9:00 pm, zap <poz...@gmail.com> wrote:
by expanded window do you mean the 'details view' window which comes up when calling 'plugin.ShowDetailsView()' ? Can you post the code snippet around this call so we can see what could be wrong?
On May 18, 4:30 pm, asasson <sass...@gmail.com> wrote:
I have an art of the day gadget where i call an image from an xml file and display the image on the gadget. but i cannot get the expansion window to show the image... any thoughts?




