Free Trial

Safari Books Online is a digital library providing on-demand subscription access to thousands of learning resources.


  • Create BookmarkCreate Bookmark
  • Create Note or TagCreate Note or Tag
  • DownloadDownload
  • PrintPrint
Share this Page URL
Help

Chapter 12. Entry and Spinbox Widgets > Features of the Entry and Spinbox Widge...

Features of the Entry and Spinbox Widgets

The entry and spinbox widgets are very similar. They share many of the same features, attributes, and options. In fact, the spinbox widget is derived from the entry widget. Obviously, they have different behaviors and appearances. In the following discussion, I lump entry and spinbox widgets together to avoid having to repeat myself, but I’ll point out where the two widgets differ when necessary.

The entry widget displays a one-line, editable text string. By default, an entry’s string is empty. You can select all or part of an entry widget’s contents using the mouse, keyboard, or pro-grammatically using widget attributes and commands. If the text in an entry widget is too long to fit entirely within the widget’s window, only part of the text will be displayed. This much probably doesn’t surprise you. What you might not realize, though, is that you can change the view to display different portions of the text. A spinbox widget has all of the features of an entry widget plus the ability to allow users to spin through a fixed set of values (such as times or dates).


  

You are currently reading a PREVIEW of this book.

                                                                                        

Get instant access to over
$1 million worth of books and videos.

  

Start a Free Trial