Description
Represents a widget instance in the cockpit. The widget can help users to perform a certain kind of task.
Object Model
Example
| Minimizing, Restoring, and Closing a Widget (C#) | Copy Code |
|---|
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();
|
|
| Getting the Widget UID (C#) | Copy Code |
|---|
//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;
|
|
See Also