StatusBar

StatusBar inherits from the Curl system class TextDisplay and utilizes the ancestor functionality to create a custom control that displays non-editable static data within a status bar element. The code for the StatusBar class is shown in Figure 7-12.

The constructor for the StatusBar class defines the visual characteristics; in this case, it sets the background to silver. It has one public method called {set-text}, which is used to set the value contained in the string argument as the data for TextDisplay.

Get Enterprise Curl now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.