src/swipl-devel/packages/xpce/man/refmanual/md/label.md

class label {#class-label}

A label is a dialog_item object used to inform the user. It's selection is either a string or an image. This selection is the only visual part of a label. Labels are normally used to provide feedback inside a dialog window or to describe a group of dialog_items.

Labels play a role in the predefined (error) reporting system initiated by object ->report. If a label object named reporter appears in a dialog object, the dialog's dialog <-report_to, combined with frame <-report_to ensures that all status, warning and error messages initiated by ->report will be displayed by this label. See ->report and visual ->report.

It is possible to attach a message to a label, which is than executed when the user presses the label with the left button. This use is not advocated.

Instance variables {#class-label-instvars}

Send methods {#class-label-send}



Try the rswipl package in your browser

Any scripts or data that you put into this service are public.

rswipl documentation built on June 16, 2026, 5:07 p.m.