Hi, I started with gg just a couple of days ago and I have a simple
problem. I need to use the "setRect" method just like this:

"
   var item = new ContentItem();

   item.heading = "Hi";
   item.onDetailsView = onDetailsView;

   content.addContentItem(item, gddItemDisplayInSidebar);

   item.flags =         gddContentItemFlagNoRemove
                + gddContentItemFlagLeftIcon
                + gddContentItemFlagHighlighted;

   item.SetRect(100, 100, 450, 480);
"

I know that I must set the MANUAL_LAYOUT flag, but I don't know where
it have to be done.

Another questions:
1) It's possible to make something like "item.SetRect(PREFERRED,
PREFERRED, 450, 480);"?, I just want to resize, not to relocate.

2) I show a "DetailsView", but when I click it, in the "window bar",
it closes itself, but I don't want it to be closed.
The code is:

"...
  var control = new DetailsView();

  var tm = new Date();

  control.SetContent(URL.value, tm.getVarDate(), html, true,
item.layout);


  control.html_content = true;



  var details = new Object();

  details.details_control = control;



  return details;
"

Thank you.

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Google Desktop Developer Group" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to 
[email protected]
For more options, visit this group at 
http://groups.google.com/group/Google-Desktop-Developer?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to