On 06/19/11 13:04, [email protected] wrote:
Hi!
>>> I suppose you have a tk version< 8.5.9
>>
>> Right. Debian stable is at 8.5.8. I think to avoid
>> trouble with any distribution we should be compatible to
>> that. Debian squeeze is pretty new now, still most other
>> distributions, even the professional ones, will be at
>> least on that level.
> I agree.
Fine :)
> In fact, i wrote a workaround to deal with right-click
> over headings in the new best games window with tk<
> 8.5.9. Can you please confirm that it works?
Hm, depending on what you want to achieve. I actually get a
context menu once I click on the heading, as I would suspect
to work. Is this a "yes"?
>> Ok as it's you asking. :) I removed the whole .scid, so I have the plain
>> basic setup. Initial startup, docking mode is on now:
>>
>> ----------------------------------------------------------------------
>> bad window path name ".baseWin.c.f1.img"
>> bad window path name ".baseWin.c.f1.img"
>> while executing
>> "grid $w.c.f$i.img -row 0 -column 0 -rowspan 2 -padx 2 -pady 2"
>> (procedure "::windows::switcher::Refresh" line 16)
>> invoked from within
>> "::windows::switcher::Refresh"
>> (command bound to event)
>> ----------------------------------------------------------------------
>>
>
> I cannot understand this.
> can you try:
> git reset --hard HEAD^1
> (this will completely delete my last patch that modify the db switcher window)
> and see if solves the problem?
It does. So it's definitely in your last changes. I'm about
to explore what is going on. What I found so far is that the
call
bind $w <Configure> "+::windows::switcher::Refresh"
is the source of trouble, this seems to call the
Refresh-function before the window exists at all.
The second observation I made just now is that the switcher
window is actually not restored in size as it should be. In
fact I get a "window" which is 1px wide and hardly larger
than the windows titlebar + resizebar at the bottom. That
window is hardly visible so I just missed it.
Anyway, exploring this, I found that moving
bind $w <Configure> "+recordWinSize $w"
to the end of the routine also solves that problem. Now, no
errors are thrown and the window shows up in proper size and
position.
So I think, the solution to the issue is moving both
bindings for window configure to the end of the routine,
just before setWinSize and replace ttk::bindMouseWheel by
bindMouseWheel. But please cross check this!
BTW: your addition of best games to the database switcher.
I'm not sure that this is sensible all the time. I admit
that I use the switcher just for what its name says:
switching databases. For this reason I'd like to have a
_small_ window. Usually it's 2x2 bases not larger.
--
Kind regards, / War is Peace.
| Freedom is Slavery.
Alexander Wagner | Ignorance is Strength.
|
| Theory : G. Orwell, "1984"
/ In practice: USA, since 2001
------------------------------------------------------------------------------
EditLive Enterprise is the world's most technically advanced content
authoring tool. Experience the power of Track Changes, Inline Image
Editing and ensure content is compliant with Accessibility Checking.
http://p.sf.net/sfu/ephox-dev2dev
_______________________________________________
Scid-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/scid-users