$Group, $GroupOff commands

Purpose

Adds or removes a collapsible group in the Procs sidebar.

Syntax

$Group "title"
$GroupOff

title: string expression

Description

To get a better overview of long code the procedures and functions can be grouped in collapsible groups using the $Group directive. To collect a series of procedures into a group add the $Group "title" statement just above a procedure or function in your code. All procedures until the next $Group statement are grouped together in the Procs tab listview under a collapsible group named "title".

A group can be removed by typing $GroupOff at the line with the $Group statement. Then remove the $GroupOff statement.

The sidebar Procs tab can be used to manipulate the groups feature:

Example

$Group "Win_1 Events"

 

Sub Win_1_Paint()

...

EndSub

Remarks

Hoovering over a procedurename (a Procs Listview-item) brings up a scrollable tooltip. The tooltip displays the code of that Proc. Use the mousewheel to show more or less lines. This also works in the editor. Hoover the mouse over a procedurename and Proc-PeekView pops up.

See Also

Grouping.

{Created by Sjouke Hamstra; Last updated: 09/05/2020 by James Gaite}