|
From: Joe E. <jen...@fl...> - 2007-11-25 15:58:46
|
Jeff Hobbs wrote: > > What is the latest status of border-draw handling specialization support > in tile? This would alleviate issues that users see on the text and > listbox widgets related to specialized borders (like on the mac), when > the widget has focus. There was some hackery on the wiki, but it had > some "issues" iirc. Can't find the wiki page in question, but the basic approach -- use a ttk::frame configured to look like an entry widget and arrange to keep the frame's 'focus' state bit in sync with that of the wrapped widget -- mostly works. The main problems with that technique that I'm aware of are (in order of importance): (1) The application has to ensure that the frame's -borderwidth and/or -padding matches the size of the focus border for the current theme. There is no easy way to find out what this is, so apps have to either choose an upper bound (3 pixels is appropriate) or hardcode different values for each platform. (2) Keeping the frame's focus bit in sync isn't terribly difficult, but it would be better if Tile just made this happen automatically. (3) "-style TEntry" isn't necessarily the right thing to use. That happens to look OK under the current supported themes, but that's by accident and not by design. --Joe English |