Arbortext Command Language > Hooks > preferencehook
  
preferencehook
preferencehook
 
Function prototype:
hook=(win)
Synopsis
Use with:
add_hook(hookname, func[, prepend])
remove_hook(hookname, func)
where hookname is preferencehook.
This hook is called just before the Preferences dialog box is displayed. Use this hook to make changes to the dialog box before it displays.
Argument
win is the window identifier for the desired window.
Example
In the following example, the preferencehook callback invokes the prefhook function, which hides the Full Menus item on the dialog box.
function prefhook(win)
{
dlgitem_hide(win, "fullmenus");
return 0
}
add_hook("preferencehook","prefhook")