Gtk2_ScrollingLabel is a class that creates a pseudo-widget which makes scrolling text within a label easy. The text within the label can be set to scroll from left to right, right to left, or bounce within the boundries of the label. The speed of the scrolling text can also be controlled. There are also built in methods to make the text pause or stop when the user moves the mouse over the label and start up again when the mouse leaves the label space.
Débuter avec Gtk2_ScrollingLabel est simple. Tout ce que vous devez faire c'est instantier la classe et l'ajouter à la fenêtre et faire défiler le texte. Regardez l'exemple suivant.
Exemple 41-1. Mise en place simple
|
Précédent | Sommaire | Suivant |
Gtk2_ScrollingLabel | Niveau supérieur | Gtk2_ScrollingLabel |