From: Neil M. <ne...@cs...> - 2004-02-10 01:41:59
|
Hello all, I've run into a couple of possible bugs in TkAqua, which I thought I'd bring up here (I can't find anything related in the mailing list or Tk bug tracker, but I only did a brief search). Firstly, configuring a cursor to {} doesn't always work in TkAqua. It seems to work if you interactively change the cursor from the console, e.g. pack [label .l -text "Hello, World!"] .l configure -cursor hand .l configure -cursor {} ;# Works - cursor is pointer again but, it doesn't seem to work for some event bindings, e.g. in the text widget (only place I've noticed this): pack [text .t] .t tag configure link -foreground red -underline 1 .t tag bind link <Enter> [list .t configure -cursor hand] .t tag bind link <Leave> [list .t configure -cursor {}] .t insert end "Normal text\n" .t insert end "This is a link\n" link .t insert end "More normal text\n" Now, when you move the mouse over the link it changes to the hand cursor. However, when you move away again the cursor stays as a hand. The <Leave> event appears to always fire, so I assume this is a problem with the configure -cursor stuff. I can't find the relevant Tk documentation on what -cursor {} is supposed to do, but most apps assume it reverts to the default cursor (which is the behaviour on UNIX/Windows IIRC). TkChat exhibits this behaviour for instance. The other possible bug I've discovered is again in TkChat. For some reason buttons don't appear on some of the dialog boxes. For instance, when you log on, it asks you to choose how much history to load. When this box initially appears, the OK button is not visible. You have to click on a radio button option to get it to appear. The help->about box is even worse, as the button doesn't appear, and there are no controls which could make it appear. You have to just know where the dismiss button is. It appears only when you click on it. I haven't delved deeply enough into tkchat to see what they are doing, and I cannot reproduce the bug from an interactive console. So - are these known bugs/features? Need more info? (Using TclTkAquaBI 8.4.5 on Panther). Cheers, Neil |