A dict_item
object is an entry in a dictionary (dict
object). It consists of four fields: a dict_item<-key,
used for indexing purposes; a dict_item<-label
to be displayed when the dict_item is visualised in a
browser object and
and an dict_item<-object,
which can be anything that is to be associated with the dict_item and
finally a dict_item<-style
to indicate the category the object belongs too. Each
category may be displayed using another font, colour or attributes. See
list_browser->style.
The dict_item<-label
defaults to the dict_item<-key,
the object and style default to
@nil.
<-members.<-label, dict->append
and dict<-member.
If the registered key is an instance of class char_array or one of its subclasses, the key is automatically converted to a name object.
<-print_name
of the
dict_item<-key.
Otherwise the value of this variable is displayed. See dict_item<-label.
<-object
is often used to store additional information. For example, the summary
browsers of this online manual store the documentation card represented
by an entry in the dict_item<-object
slot.
<-key
would be the client's name or identifier. The dict_item<-object
a sheet or instance of a user-defined class that contains the client's
phone, address and other info.
Dict items delegate to their dict_item<-object.
<-styles
maps these category names onto style
objects describing the font, colour and attributes for the item.
<-dict
of the item.<-label
and dict_item<-object.->popup.Fails silently if the dict_item is currently not displayed or outside the visible part of the list_browser.