# Manipulating and Controlling Groups

> Source: https://manual.pvxplus.com/nomads-graphical-application/program-interaction/event-handler-routines/manipulating-and-controlling-groups

Event handling in NOMADS often requires manipulating groups of panel controls in order to hide/show, disable/enable or lock/unlock them. The **\*wingrp** utility can be used to manipulate groups of controls from within your PxPlus application.

Note:  
Similar functionality to \*wingrp may also be handled within NOMADS using [Dependency Definitions](https://manual.pvxplus.com/nomads-graphical-application/panel-designer/options-and-utilities/dependency-definitions).

Controls that are grouped via NOMADS **[Group Assignment](https://manual.pvxplus.com/nomads-graphical-application/nomads-development/maintaining-library-objects/group-assignment)** can be handled as if they were a single unit using the following CALL syntax:

```
CALL "* wingrp;action", group_name.grp$
```

***Where:***

|  |  |
| --- | --- |
| *group_name*.*grp$* | Group name with a *.grp$* extension. The *dollar sign* is ***required***. |
| ;*action* | Label entry point in the **\*wingrp** program indicating which action is to be applied to the ***specified*** group:<br>\|  \|  \|<br>\| --- \| --- \|<br>\| **Hide \\| Show** \| Controls visibility of the group of controls \|<br>\| **Enable \\| Disable** \| Controls access to the (visible) group of controls \|<br>\| **Lock \\| Unlock** \| Controls access to the group of multi-line fields \|<br>\| **UnlockOrEnable \\| LockOrDisable** \| Controls access to a group of mixed control types by locking or disabling \| |

If no *group_name.grp$* is passed with the **CALL** statement, the utility returns Error #36: ENTER parameters don't match those of the CALL.

To manipulate ***all*** the groups in a NOMADS panel, use the following syntax:

```
PERFORM "* wingrp;action"
```

***Where:***

|  |  |
| --- | --- |
| ;*action* | Label entry point in the **\*wingrp** program indicating which action is to be applied to ***all*** groups in the panel:<br>\|  \|  \|<br>\| --- \| --- \|<br>\| **Hide_All \\| Show_All** \| Controls visibility \|<br>\| **Enable_All \\| Disable_All** \| Controls access \| |
