Open Settings on Vista Gadget

  • Thread starter Thread starter Ivan Gasparetto
  • Start date Start date
I

Ivan Gasparetto

Hi all,

Is there a way to open the settings panel without clicking in the
settings icon?
I created a gadget which the login is in the settings. I want to add a
link in the flyout saying "click here to login". This link will close
the flyout (no problems here) and open the settings.

Any idea?

Thank you,
Ivan
 
codeproject Practices and Hints for Gadgets. Free source code and
programming help: http://www.codeproject.com/KB/gadgets/gadgettips.aspx

// The place you show the settings from code
function ShowSettings()
{
// set it prior the flyout file because
// the flyout may be already open
System.Gadget.Settings.write("SettingsInFlyout", true)

System.Gadget.Flyout.file = System.Gadget.settingsUI;
// remember to simulate closing the dialog box as well
// if you handle it in the main script
System.Gadget.Flyout.onHide = SettingsClosedFunction;
System.Gadget.Flyout.show = true;
}

// Located in the settings HTML
function SettingsLoad()
{
...
if (System.Gadget.Settings.read("SettingsInFlyout"))
{
// do not forget to clear the state for next call
System.Gadget.Settings.write("SettingsInFlyout", false);
divButtons.style.display = 'block';
// <div id="divButtons" style="text-align: right; display: none">
// <input type="button" value="OK" onclick="CommitSettings" />
// <input type="button" value="Cancel" onclick="CancelSettings" />
// </div>
}
}


--
Use the "Ratings" feature. It helps the new users.
Please use the Communities guidelines when posting.
http://www.microsoft.com/wn3/locales/help/help_en-us.htm
Mark L. Ferguson MS-MVP
https://mvp.support.microsoft.com/profile/Mark.Ferguson
 
Thanks, but that is a workaround for what I'd like to do.
I really would like to show the settings like someone has clicked on
the settings icon.

Ivan
 
Me again,

We have the following method for the flyout:
System.Gadget.Flyout.show = true;

But we don't have
System.Gadget.Settings.show = true;

So, what is called when we click on the spanner?

Thanks
 
Back
Top