KNOWLEDGE BASE
Log In    |    Knowledge Base    |    4D Home
Tech Tip: How to hide forms or methods in the label editor
PRODUCT: 4D | VERSION: | PLATFORM: Mac & Win
Published On: August 14, 2002

Compatibility: 6.7.x and 6.8.x

In the label editor dialog, users are given the possibility to use a specific form or to execute a specific method. By default, any form can be selected and any method can be executed.

If you do not want users to be able to select some methods, you can set that method as invisible, which will cause the method to not be displayed in the method pop-up menu. However, you may not want to set all of your methods to invisible, and keep in mind that this cannot apply to forms since they cannot be set to invisible. In this case, the best solution is to use the Label customizer database provided with 4D which is located in the Tools folder.

In the resources menu, select 'Label Editor settings.'

From the dialog, open the 4D resource file (4D application under Mac, 4D.RSR file under windows).
There are two entry areas that allow you to define name filters for forms and methods. Both values are set to @ by default.

The symbol"@" means that you do want to display all methods or forms. If you specify a string, the label editor dialog will display only the forms or methods whose names exactly match the string you entered. For example, you could give a name that begins with "label" to all forms and methods that you want to be displayed in the Label editor and then enter "Label@" as display filters. As you may notice, these settings are stored into the 4D resource file. The filter for the form name is stored into the resource STR# 1301, id 3 while the method name's filter is stored in STR# 1031, id 4.