Clear a text box (Window)

更新时间:
复制 MD 格式

1. Component introduction

Note

Prerequisite component: Get Window

This component clears the content of a text box.

2. Inputs

Note

For information about the inputs, see the help text for each input in the component panel of the ROS Visual Editor.

3. Outputs

Note

For information about the outputs, see the help text for each output in the component panel of the ROS Visual Editor.

4. Component usage examples

4.1. Component configuration example

  1. For Window, select v_win_obj_1, which is the output of the prerequisite Get Window component.

  2. Use the Capture Control feature to capture a text box in the window. Name the captured control "Control 1".

  3. For Target Control, select "Control 1".

  4. Keep the default values for the advanced options.

4.2. Example execution result

The component automatically clears the text in the text box of the specified window.

5. Example of building a flow

Setup flow

  1. Create and open a text document named "New Text Document - Window Example".

  2. Use the Get Window component to retrieve the "New Text Document - Window Example" window.

  3. Use the Clear Text Box (Window) component to clear the text.

image

Execution result

As shown in the following figure, the flow successfully clears the content of the text document.