Struct sap_scripting::types::GuiOkCodeField
source · pub struct GuiOkCodeField { /* private fields */ }
Expand description
The GuiOkCodeField is placed on the upper toolbar of the main window. It is a combo box into which commands can be entered. Setting the text of GuiOkCodeField will not execute the command until server communication is started, for example by emulating the Enter key (VKey 0). GuiOkCodeField extends the GuiVComponent Object. The type prefix is okcd, the name is empty.
Implementations§
source§impl GuiOkCodeField
impl GuiOkCodeField
sourcepub fn opened(&self) -> Result<bool>
pub fn opened(&self) -> Result<bool>
In SAP GUI designs newer than Classic design the GuiOkCodeField can be collapsed using the arrow button to the right of it. In SAP GUI for Windows the GuiOkCodeField may also be collapsed via a setting in the Windows registry.
This property contains False is the GuiOkCodeField is collapsed.
Trait Implementations§
source§impl GuiComponentMethods<GuiOkCodeField> for GuiOkCodeField
impl GuiComponentMethods<GuiOkCodeField> for GuiOkCodeField
source§fn container_type(&self) -> Result<bool>
fn container_type(&self) -> Result<bool>
This property is TRUE, if the object is a container and therefore has the Children property.
source§fn id(&self) -> Result<String>
fn id(&self) -> Result<String>
An object id is a unique textual identifier for the object. It is built in a URLlike formatting,
starting at the GuiApplication object and drilling down to the respective object.
source§fn name(&self) -> Result<String>
fn name(&self) -> Result<String>
The name property is especially useful when working with simple scripts that only access dynpro
fields. In that case a field can be found using its name and type information, which is easier to
read than a possibly very long id. However, there is no guarantee that there are no two objects
with the same name and type in a given dynpro.
source§fn kind(&self) -> Result<String>
fn kind(&self) -> Result<String>
The type information of GuiComponent can be used to determine which properties and methods an object
supports. The value of the type string is the name of the type taken from this documentation.
source§fn kind_as_number(&self) -> Result<i64>
fn kind_as_number(&self) -> Result<i64>
While the Type property is a string value, the TypeAsNumber property is a long value that can
alternatively be used to identify an object’s type . It was added for better performance in methods
such as FindByIdEx. Possible values for this property are taken from the GuiComponentTypeenumeration.
source§impl GuiContainerMethods<GuiOkCodeField> for GuiOkCodeField
impl GuiContainerMethods<GuiOkCodeField> for GuiOkCodeField
source§fn find_by_id<S>(&self, id: S) -> Result<SAPComponent>where
S: AsRef<str>,
fn find_by_id<S>(&self, id: S) -> Result<SAPComponent>where S: AsRef<str>,
Search through the object’s descendants for a given id. If the parameter is a fully qualified id, the
function will first check if the container object’s id is a prefix of the id parameter. If that is the
case, this prefix is truncated. If no descendant with the given id can be found the function raises an
exception.
source§impl GuiVComponentMethods<GuiOkCodeField> for GuiOkCodeField
impl GuiVComponentMethods<GuiOkCodeField> for GuiOkCodeField
source§fn set_focus(&self) -> Result<()>
fn set_focus(&self) -> Result<()>
This function can be used to set the focus onto an object. If a user interacts with SAP GUI,
it moves the focus whenever the interaction is with a new object. Interacting with an object
through the scripting component does not change the focus. There are some cases in which the
SAP application explicitly checks for the focus and behaves differently depending on the
focused object.
source§fn visualize(&self, on: bool) -> Result<()>
fn visualize(&self, on: bool) -> Result<()>
Calling this method of a component will display a red frame around the specified component
if the parameter on is true. The frame will be removed if on is false. Some components such
as GuiCtrlGridView support displaying the frame around inner objects, such as cells. The
format of the innerObject string is the same as for the dumpState method.
source§fn acc_text_on_request(&self) -> Result<String>
fn acc_text_on_request(&self) -> Result<String>
An additional text for accessibility support.
source§fn acc_tooltip(&self) -> Result<String>
fn acc_tooltip(&self) -> Result<String>
An additional tooltip text for accessibility support.
source§fn changeable(&self) -> Result<bool>
fn changeable(&self) -> Result<bool>
An object is changeable if it is neither disabled nor read-only.
source§fn default_tooltip(&self) -> Result<String>
fn default_tooltip(&self) -> Result<String>
Tooltip text generated from the short text defined in the data dictionary for the given screen
element type.
source§fn icon_name(&self) -> Result<String>
fn icon_name(&self) -> Result<String>
If the object has been assigned an icon, then this property is the name of the icon, otherwise
it is an empty string.
source§fn is_symbol_font(&self) -> Result<bool>
fn is_symbol_font(&self) -> Result<bool>
The property is TRUE if the component’s text is visualized in the SAP symbol font.
source§fn modified(&self) -> Result<bool>
fn modified(&self) -> Result<bool>
An object is modified if its state has been changed by the user and this change has not yet been
sent to the SAP system.
source§fn parent_frame(&self) -> Result<GuiComponent>
fn parent_frame(&self) -> Result<GuiComponent>
If the control is hosted by the Frame object, the value of the property is this frame. Overwise
NULL.
source§fn screen_left(&self) -> Result<i64>
fn screen_left(&self) -> Result<i64>
The y position of the component in screen coordinates.
source§fn screen_top(&self) -> Result<i64>
fn screen_top(&self) -> Result<i64>
The x position of the component in screen coordinates.
source§fn text(&self) -> Result<String>
fn text(&self) -> Result<String>
The value of this property very much depends on the type of the object on which it is called.
This is obvious for text fields or menu items. On the other hand this property is empty for toolbar
buttons and is the class id for shells. You can read the text property of a label, but you can’t
change it, whereas you can only set the text property of a password field, but not read it.
source§fn set_text<S>(&self, value: S) -> Result<()>where
S: AsRef<str>,
fn set_text<S>(&self, value: S) -> Result<()>where S: AsRef<str>,
The value of this property very much depends on the type of the object on which it is called.
This is obvious for text fields or menu items. On the other hand this property is empty for toolbar
buttons and is the class id for shells. You can read the text property of a label, but you can’t
change it, whereas you can only set the text property of a password field, but not read it.
source§impl HasDispatch<GuiOkCodeField> for GuiOkCodeField
impl HasDispatch<GuiOkCodeField> for GuiOkCodeField
source§fn get_idispatch(&self) -> &IDispatch
fn get_idispatch(&self) -> &IDispatch
Get the IDispatch object for low-level access to this component.
Auto Trait Implementations§
impl RefUnwindSafe for GuiOkCodeField
impl !Send for GuiOkCodeField
impl !Sync for GuiOkCodeField
impl Unpin for GuiOkCodeField
impl UnwindSafe for GuiOkCodeField
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more