in reply to Waking up text select
So I tried it. It didn't work. Now how could Text.pm get by with this and not my program?$t->tagAdd('sel', '1.0', 'end');
To make a long story short, it turns out not to be manual selection that wakes up the select mechanism, but any manual activity (including a single mouse click) in the text area. And when manual activity takes place, the widget has the focus. So I tried forcing the issue with the focus method:
It worked! I use it once at the beginning of the program, before calling MainLoop. It appears sufficient to activate the selection mechanism for the duration of the program.$t = $mw->ROText(-foo => 'bar' etc.)->pack; $t->focus;
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
RE: RE: Waking up text select
by Anonymous Monk on Oct 11, 2000 at 01:58 UTC | |
by Chmrr (Vicar) on Oct 12, 2000 at 10:30 UTC | |
by Anonymous Monk on Oct 14, 2000 at 03:11 UTC |