SAPbouiCOM.Cockpits ckpts = sbo_Application.Cockpits; //Get all widgets in the current cockpit SAPbouiCOM.Widgets wdts = (SAPbouiCOM.Widgets)ckpts.CurrentCockpit.Widgets; //Minimize, restore, and close the first widget in the current cockpit SAPbouiCOM.widget wdt = (SAPbouiCOM.widget)wdts.Item(0); wdt.Minimize(); wdt.Restore(); wdt.Close();
//Get the WidgetUID of a widget in a cockpit. SAPbouiCOM.Cockpits ckpts = sbo_Application.Cockpits; //Get all widgets in the current cockpit. SAPbouiCOM.Widgets wdts = (SAPbouiCOM.Widgets)ckpts.CurrentCockpit.Widgets; //Get the first widget's UID. string strWidgetUID = wdts.Item(0).WidgetUID;
Widget Members