Getting Started Documentation Glish Learn More Programming Contact Us
Version 1.9 Build 1556
News FAQ
Search Home


next up previous contents index
Next: optionmenu.setlabel - Function Up: optionmenu - Tool Previous: optionmenu.geteventmask - Function


optionmenu.seteventmask - Function



Package display
Module widgets
Tool optionmenu


Set the event mask


Synopsis
seteventmask(mask)


Arguments

mask The event mask
Allowed: Vector of Bool


Returns
Bool



Description

This tool function sets the event mask. This mask indicates whether the select event will be emitted or not when you select a menu item. By default the mask is all T. You can get the current mask with the geteventmask tool function. If the mask is invalid, it returns F.



Example
- labels := "Absolute RelRef RelCen";
- values := [1,2,3];
- f := frame();
- m := optionmenu(f, labels=labels, values=values);
- m.seteventmask([T,F,T]);
- m.geteventmask();
[T F T]
- whenever m->select do {print $value;};

In this example, when you selected the second item, no event would be emitted.





next up previous contents index
Next: optionmenu.setlabel - Function Up: optionmenu - Tool Previous: optionmenu.geteventmask - Function   Contents   Index
Please send questions or comments about AIPS++ to aips2-request@nrao.edu.
Copyright © 1995-2000 Associated Universities Inc., Washington, D.C.

Return to AIPS++ Home Page
2006-10-15