Home page  
Help >
DDL Command DIM and UNDIM
Version 7.11
DIMand UNDIM

DIM is used to dim buttons in dialogs and screens, or to dim command lines in pulldown menus. Dimming a button deactivates it, that is, a dimmed button performs no operation when pressed. UNDIM reactivates objects that have been dimmed.

Syntax:
DIM/options object-name
UNDIM/options object-name

Notation standards Options Answers

Options:
X -Suppress the command response
Y -Do not alter the command answer cells

Answers:
Ctl.Ans1 =Zero
Ctl.Ans2 =Zero
Ctl.Ans3 =Zero

Notes:
DIM and UNDIM must address named objects . So any button or menu command line must have been assigned an object name (see the properties box for these objects) prior to being addressed by DIM or UNDIM.

Objects addressed by a DIM or UNDIM must be in existance when they are addressed, that is, they must be instantiated in order to be addressed.

Qualified Names
So what happens if you have a Dialog and three Screens all instantiated at the same time and they all have a button named MARY? The answer is that all names can be qualified by the definintion name in which they appear, and further qualified by the definintion type. A fully qualified name consists of:

deftype.defname.objectname

The values for deftype are one of: DIALOG for dialogs
MENU for switchboard menus
MENUBAR for pulldown menus
SCREEN for data entry screens

So, for example, if you had a button named MARY in a screen definition named CUSTOMERS you could refer to it via its fully qualified name:

DIM SCREEN.CUSTOMERS.MARY

and the procedure that contained this line can be associated with any button or field or record in the CUSTOMERS screen or any of the other screens ordialogsthat are in existence at the same time the CUSTOMERS screen is in existence.

Copyright © 2019 , WhamTech, Inc.  All rights reserved. This document is provided for information purposes only and the contents hereof are subject to change without notice. Names may be trademarks of their respective owners.