Thursday, April 30, 2009

How To Restrict Form Setup Conext Menu Item

To resrtict Form Setup context menu item you should:

Create security key, for example, SysSetupFormPermission




Add this key to SysSetupForm control tab



Create a new user group supposed to be restricted




Uncheck the key




A user included in the group will still have the context menu item
but will see an empty form




Thursday, April 9, 2009

Launching and closing Internet Explorer

One can run Internet Explorer in visible or invisible mode, then navigate any url and close the application, finally.

static void TestIE(Args _args)
{
COM c = new COM("InternetExplorer.Application");
str url = "http://msdn.microsoft.com/en-us/library/ms952618.aspx";
;
c.navigate(url);
c.visible(true);
if (DialogButton::Yes == BOX::YesNo("To close the browser press Yes", DialogButton::Yes))
{
info(strfmt("Job is done"));
c.quit();
}
}