Re: Scrolling a window

[email protected] (Jeff Hobbs)
Newsgroups perl.tcltk
Message-ID <[email protected]>
On 02/03/2010 11:47 AM, Swingle David-QWHM86 wrote:
> That's it, thanks!  Yes, I wanted the scrollbars on the window, which in
> my case has 20 label widgets, 12 text widgets, 3 radio buttons, 8
> buttons, a list box, 3 combo boxes, and an image file.  Sounds like too
> much on a screen, but it all makes sense to the users, although I'm
> thinking of making either a wizard type screen or use tabs.  It was all

Ouch!  You definitely want to rethink that at some point, but I 
understand that UI redesign for "working" applications isn't easy.

> in Tk and I'm trying to convert it to Tkx and have had problems with
> drag and drop which was solved and now scrolling the main window, which
> is now solved.  So, thanks!  Being able to change the background color
> of an entry widget is next, in a different thread.

Classic Tk widgets allow changing the background, but themed Tk widgets 
require the use of styles.  Even then, you don't always get control of 
the background color as some native engines don't support it (easily).

> Another thing I've noticed in Tkx.  When I try example scripts, like the
> one you sent, things like "new_ttk__button" does not work correctly.  I
> get an error like "invalid command name "ttk::button" at
> D:\dss\perl\tk\tkx\scroll6.pl line 19.".  I can either change it from
> "new_ttk__button" to "new_button" or I can add
> "Tkx::package_require("tile")".  Maybe my version is old?

Yes, that indicates you are using an 8.4-based Tk.  We now ship with an 
8.5-based Tk, where the 'tile' extension was added to the core.  This 
added the native themed widgets, as well as combobox, notebook, sizegrip 
and a few other new widgets.  See http://wiki.tcl.tk/10630 for a full 
list of core changes in 8.5.

Jeff
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.