InspButton:
Filter:
ServerTools/Classes (extension) | Debugging | GUI

InspButton
ExtensionExtension

displays an object by its name, when clicked the object is inspected using Insp

Description

This is a hyper-link button for use in debugging views. Clicking on the button calls .insp on the target object and brings the global InspManager to the front.

Class Methods

.new

Arguments:

target

the object to be inspected

layout

the parent view, FlowView or window

minWidth

Label will automatically size itself to fit the name. minWidth specifies a minimum width so that multiple labels will align nicely.

.big

a bigger button

Arguments:

target

the object to be inspected

layout

the parent view, FlowView or window

minWidth

Label will automatically size itself to fit the name. minWidth specifies a minimum width so that multiple labels will align nicely.

Returns:

a button

.icon

A very small button with just "insp" for use when screen space is tight or you don't want to clutter it up.

Arguments:

target

the object to be inspected

layout

the parent view, FlowView or window

Returns:

the little button

.captioned

creates a pair of views: Caption: InspButton

Arguments:

caption

string caption

target

the object to be inspected

layout

the parent view, FlowView or window

minWidth

The caption label will automatically size itself to fit the name. minWidth specifies a minimum width so that multiple labels will align nicely.

Returns:

the button

Examples