Set- / GetElementIsEnabled

Category: Dialogs
Author:
Description: A dialog example which shows how to create buttons and how to set them as enabled or disabled and to change their status in response to something. In this case, button 1 is enabled and button 2 disabled when the dialog is first created. Subsequently pressing button 1 disables button 1 and enables button 2. Pressing button 2 enables button 1 and disables button 2 etc. Enabling/disabling buttons is a useful way of directing the work flow, without having to use extensive error trapping. Other Dialog-Examples:Very simple PushButton ; BevelButton ; more complex periodic table dialog.
Comments: tested on DM 3.7, 3.8 and 3.9.
Acknowledgements: Thanks to B. Schaffer for tips on enabling and changing the status of buttons.
Script version: 1.0
DM/GMS version: 3.8
Script written as a function: No
Source: Show code
Download Source Code: Download
Download Zip File: Download