Back: BLOX.BMenuItem-accessing Up: BLOX package Forward: BLOX.BMenuObject-accessing   Top: GNU Smalltalk Library Reference Contents: Table of Contents Index: Class index About: About this document

1.30 BLOX.BMenuObject

Defined in namespace BLOX
Superclass: BLOX.Blox
Category: Graphics-Windows
I am an abstract superclass for widgets which make up a menu structure.

1.30.1 BLOX.BMenuObject: accessing  (instance)
1.30.2 BLOX.BMenuObject: callback  (instance)


1.30.1 BLOX.BMenuObject: accessing

activeBackground
Answer the value of the activeBackground option for the widget.

Specifies background color to use when drawing active elements. An element (a widget or portion of a widget) is active if the mouse cursor is positioned over the element and pressing a mouse button will cause some action to occur. For some elements on Windows and Macintosh systems, the active color will only be used while mouse button 1 is pressed over the element.

activeBackground: value
Set the value of the activeBackground option for the widget.

Specifies background color to use when drawing active elements. An element (a widget or portion of a widget) is active if the mouse cursor is positioned over the element and pressing a mouse button will cause some action to occur. For some elements on Windows and Macintosh systems, the active color will only be used while mouse button 1 is pressed over the element.

activeForeground
Answer the value of the activeForeground option for the widget.

Specifies foreground color to use when drawing active elements. See above for definition of active elements.

activeForeground: value
Set the value of the activeForeground option for the widget.

Specifies foreground color to use when drawing active elements. See above for definition of active elements.

asPrimitiveWidget
Answer the primitive widget that implements the receiver.

backgroundColor
Answer the value of the backgroundColor option for the widget.

Specifies the normal background color to use when displaying the widget.

backgroundColor: value
Set the value of the backgroundColor option for the widget.

Specifies the normal background color to use when displaying the widget.

foregroundColor
Answer the value of the foregroundColor option for the widget.

Specifies the normal foreground color to use when displaying the widget.

foregroundColor: value
Set the value of the foregroundColor option for the widget.

Specifies the normal foreground color to use when displaying the widget.


1.30.2 BLOX.BMenuObject: callback

callback
Answer a DirectedMessage that is sent when the receiver is modified, or nil if none has been set up.

callback: aReceiver message: aSymbol
Set up so that aReceiver is sent the aSymbol message (the name of a zero- or one-argument selector) when the receiver is clicked. If the method accepts an argument, the receiver is passed.

callback: aReceiver message: aSymbol argument: anObject
Set up so that aReceiver is sent the aSymbol message (the name of a one- or two-argument selector) when the receiver is clicked. If the method accepts two argument, the receiver is passed together with anObject; if it accepts a single one, instead, only anObject is passed.

invokeCallback
Generate a synthetic callback



Back: BLOX.BMenuObject-accessing Up: BLOX.BMenuObject Forward: BLOX.BOval   Top: GNU Smalltalk Library Reference Contents: Table of Contents Index: Class index About: About this document


This document was generated on July, 23 2009 using texi2html