From: Steven <ste...@ya...> - 2012-07-05 21:16:27
|
>> Cut and pasting from a tk::text widget seems problematic when >> the widget is "-state disabled". It just won't accept input. >> >> This is not the case on Windows and Xorg. >> >> Does anyone know a work around beside leaving the widget "-state > normal" ? Jeff wrote: > I am not finding that to be the case with Tk 8.5.11 on OS X using ActiveTcl. > This used to be an issue more because the disabled text wouldn't take focus. > > Can you verify this and elaborate on the version and code sample? Yes - the issue still exists with ActiveTcl8.5.11.1.295590-macosx10.5-i386-x86_64-threaded.dmg on my 10.5.8 macbook. [All of the text widgets (eg help widget, engine widget (press F2)) in Scid vs. PC http://sourceforge.net/projects/scidvspc/files/mac/ScidvsMac-4.7.dmg/download are affected. Out project comes with it's own carbon tcl/tk framework, but this can be disabled by removing the frameworks directory] Bryan wrote: > I think the simple fix is to create a binding on <1> that sets the focus to the widget. If it is disabled but has focus, selecting and copying should work. Thank-you. This works. Steve |