|
From: Bryan O. <oa...@ba...> - 2006-06-23 22:12:09
|
I'm encountering a problem with tile widgets getting into a background
state on MacOSX. I don't know if this is a bug in tile or a bug in my
expectations.
I have an entry widget that, when it gains focus, 'pack forgets' one
frame of widgets and packs a different frame of widgets. When it loses
focus it does the opposite (think: context-sensitive toolbar).
If I click in the entry, the other set of widgets shows up fine. The
problem comes when I then click on another app, which causes my app to
lose focus and go into the background. This causes the frames to swap
due to the FocusOut binding and everything gets the "background" state.
So far, so good.
However, when I again click in the entry which brings my app to the
front and sets the focus, all the tile checkbuttons have a state of
"background" even though it is the front-most app (and thus, appear
dimmed, yet still enabled). Adding ".button state {}" doesn't seem to
have any effect.
Does this ring any bells? Currently my <FocusIn> proc looks something
like this:
proc focusIn {} {
place .sb ...
raise .sb
.sb state ""
foreach w [pack slaves .sb] {
$w state ""
}
}
|