From: Eric Taylor on
Running this on windows:

entry .e -textvariable foo
pack .e
set foo foo
tk_messageBox -message hi


I run this, (8.4 active state and some 8.5.1/2 tclkits) and
I cannot click the text in the entry. If I open a console
on windows, then the entry can be selected. (this is
after responding to the message in either case).

Any ideas what I'm doing wrong? Or could this be a focus
issue (or bug) in tk_messageBox?


From: Óscar Fuentes on
Eric Taylor <discuss(a)rocketship1.biz> writes:

> Running this on windows:
>
> entry .e -textvariable foo
> pack .e
> set foo foo
> tk_messageBox -message hi
>
>
> I run this, (8.4 active state and some 8.5.1/2 tclkits) and
> I cannot click the text in the entry. If I open a console
> on windows, then the entry can be selected. (this is
> after responding to the message in either case).
>
> Any ideas what I'm doing wrong? Or could this be a focus
> issue (or bug) in tk_messageBox?

Duplicated on Windows2000 ActiveState 8.4.13

This is obviously a bug. Please file a bug report on SourceForge:

http://sourceforge.net/tracker/?group_id=12997&atid=112997&func=add

--
Oscar
From: jgodfrey on
On Jun 22, 3:25 pm, Eric Taylor <disc...(a)rocketship1.biz> wrote:
> Running this on windows:
>
> entry .e -textvariable foo
> pack .e
> set foo foo
> tk_messageBox -message hi
>
> I run this, (8.4 active state and some 8.5.1/2 tclkits) and
> I cannot click the text in the entry. If I open a console
> on windows, then the entry can be selected. (this is
> after responding to the message in either case).
>
> Any ideas what I'm doing wrong? Or could this be a focus
> issue (or bug) in tk_messageBox?

I can't reproduce this on WinXP Pro SP2 using either 8.4.19 or 8.5.2
(both ActiveState builds). Obviously, the entry text can't be
selected when the message box is open, but after closing the message
box, the text in the entry selects as expected.

Jeff
From: USCode on
jgodfrey wrote:
>
> I can't reproduce this on WinXP Pro SP2 using either 8.4.19 or 8.5.2
> (both ActiveState builds). Obviously, the entry text can't be
> selected when the message box is open, but after closing the message
> box, the text in the entry selects as expected.
>

Works fine with Vista SP1 as well, as Jeff said after you close the
modal message box of course...
From: Óscar Fuentes on
jgodfrey <jeff_godfrey(a)pobox.com> writes:

> On Jun 22, 3:25�pm, Eric Taylor <disc...(a)rocketship1.biz> wrote:
>> Running this on windows:
>>
>> entry .e -textvariable foo
>> pack .e
>> set foo foo
>> tk_messageBox -message hi
>>
>> I run this, (8.4 active state and some 8.5.1/2 tclkits) and
>> I cannot click the text in the entry. If I open a console
>> on windows, then the entry can be selected. (this is
>> after responding to the message in either case).
>>
>> Any ideas what I'm doing wrong? Or could this be a focus
>> issue (or bug) in tk_messageBox?
>
> I can't reproduce this on WinXP Pro SP2 using either 8.4.19 or 8.5.2
> (both ActiveState builds).

The bug is present on WindowsXP Home SP2 ActiveState 8.4.13. Maybe it
was fixed since.

Please be sure to execute the code snippet from the command line as

wish thefilename.tcl

If you execute the code from a wish console, it works ok.

[snip]

--
Oscar