On Mon, 2004-05-24 at 15:32, Dean Arnold wrote:
> Dean Arnold wrote:
>
> > Dean Arnold wrote:
> >
> >> I'm having a problem with keeping a newly created
> >> Toplevel on top (AS 5.8.3, WinXP, Tk804.027).
> >>
> >> I create a dialog box from a toplevel (see code below).
> >> I explicitly deiconify() and raise() after building
> >> the widget. Its parent is the main window. When the
> >> widget is originally drawn it is on top, as expected.
> >> However, the instant I click on the widget (eg, to
> >> type in the text fo find), it drops under the main
> >> window.
> >>
>
> Sorry for replying to myself so often, but I've found
> a generic case that illustrates the (IMO) bug:
>
> use Tk;
> use Tk::Text;
>
> my $mw = MainWindow->new;
> my $text = $mw->Text(-background => 'white',
> -width => 40, -height => 40, -font => 'Courier 10')->pack();
>
> my $stuff = << 'end-of-text';
> The quick brown fox jumped over the
> lazy dog.
>
> Now is the time for all
> good men to come to the aid
> of their country.
>
> To test this, right click to open
> the popup menu, then select
> View->Goto Line... When the dialog
> box opens, click in it to enter the line number
> and you'll see that the dialog loses focus.
>
> end-of-text
>
> $text->insert('end', $stuff);
>
> $mw->MainLoop;
>
>
>
> When you execute this, and open the popup menu
> to the Goto Line.. dialog, you'll find the
> first time you attempt to set the line number
> (by clicking in the entry), the dialog loses focus.
>
> I don't think this was the behavior on 800.025,
> but I don't have that release handy to test with.
>
> Dean Arnold
> Presicient Corp.
> www.presicient.com
> -++**==--++**==--++**==--++**==--++**==--++**==--++**==
> This message was posted through the Stanford campus mailing list
> server. If you wish to unsubscribe from this mailing list, send the
> message body of "unsubscribe ptk" to majordomo@xxxxxxxxxxxxxxxxxx
I don't see the loss of focus on my system. I am running Fedora Core 1
with Tk-804.026 and perl 5.8.3.
--
Lester M Petrie
Room H323, Bldg 5700
ORNL
(865) 574-5259
petrielmjr@xxxxxxxx
-++**==--++**==--++**==--++**==--++**==--++**==--++**==
This message was posted through the Stanford campus mailing list
server. If you wish to unsubscribe from this mailing list, send the
message body of "unsubscribe ptk" to majordomo@xxxxxxxxxxxxxxxxxx
|