December 2002
Intermediate to advanced
400 pages
9h 25m
English
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.
Read now
Unlock full access