| Getting Started | Documentation | Glish | Learn More | Programming | Contact Us |
| Version 1.9 Build 1556 |
|
| Package | display | |
| Module | guiutils |
It is advised to use the ``popuphelp'' function directly in stead.
Sometimes record/agent structures are set up where a subrecord is in fact a reference to a parent record. Since this might cause infinite recurses, a maxlevels parameter is used to prevent such infinite loops. It is set to 4 by default, which should generally suffice, but very deep structures may require this number to be raised.
| agents | structure that holds the agents | ||
| Allowed: | record or agent | ||
| maxlevels | maximum number of levels to recurse | ||
| Allowed: | 4 | ||
include 'popuphelp.g';
private := [=];
private.f := frame(height=100);
private.b := button(private.f);
private.b.shorthelp := 'Press the button';
private.l := listbox(private.f);
private.l->insert('AAA'); private.l->insert('BBB');
private.l.shorthelp := function(name, index) {
# Only need name here.
return spaste('Your cursor is near ', name);
}
addpopuphelp(private);