Some special resource values are inherited through multiple levels of the widget hierarchy at creation time. For instance, the -buttonFontList of a bulletin board might be inherited from the -defaultFontList of an ancestor subclassing the abstract classes vendorShell or menuShell. In this case, the resource value is copied and is not modified if the original resource is modified.
For instance, in the following example, the button inherits its -fontList default value from bulletin board -buttonFontList. On the other hand, the button's background color is taken from the class defaults, not from the BulletinBoard. Pushing the button will change the BulletinBoard's -buttonFontList resource, which does not update the button's font list.
#! /usr/sgitcl/bin/moat xtAppInitialize xmBulletinBoard .top managed \ -background #A22 -buttonFontList "-*-courier-*-o-*--20-*" xmPushButton .top.bold managed \ -y 10 -labelString Bold xmPushButton .top.quit managed \ -y 40 -labelString Quit .top.bold activateCallback { .top setValues -buttonFontList "-*-courier-bold-o-*--20-*" } .top.quit activateCallback {exit 0} . realizeWidget . mainLoop