Home > Archive > Tcl > June 2006 > Re: Problems with toplevels
You are viewing an archived Text-only version of the thread.
To view this thread in it's original format and/or if you want to reply to
this thread please [click here]
| Author |
Re: Problems with toplevels
|
|
| Bryan Oakley 2006-06-24, 7:05 pm |
| Roger Blum wrote:
> Hi Bryan,
>
> Thanks for your reply.
>
> The problems mentioned happen when using vtk.exe (version 5.0) which is
> based on tcl 8.4.5 and statically includes the packages of the vtk
> libraries. The main window is a packed BWidget Mainframe , the second is a
> tk toplevel widget (not packed).
>
> The "console" I see is just a blank window (no prompt, etc.).
>
> An simple test program has shown me, that the desired behavior is indeed the
> default. So I don't understand, why my windows behave in a different way.
> The test showed me other issues I don't understand.
> I have tried to start the test program in different ways:
> - wish.exe -> source test.tcl shows the expected
> behavior
> - vtk.exe -> source test.tcl shows the expected
> bahavior
> - wish.exe test.tcl shows "can't
> find package vtk" -> dynamic libraries are not installed
> - vtk.exe test.tcl show the
> expected behavior
> - Start "wish.exe test.tcl" with windows link show the expected behavior
> - Start "vtk.exe test.tcl" with windows link This shows the blank
> window!!
Perhaps your 'windows link' is incorrect with respect to quoting and/or
arguments passed to vtk.exe. When you get the blank window, do you also
get the regular window, or do you get just the one blank window? If you
just get the one window, it appears that vtk.exe isn't seeing the
"test.tcl" argument.
It appears that "vtk.exe test.tcl" works as expected, so the question to
be answered is, how is starting with the windows link different than
starting with 'vtk.exe text.tcl'.
>
> I am sure there is no intentional code to create the shown behavior.
> Any idea what could cause the window to be put in the back? Could a "focus
> follows mouse" be the reason, i.e. is that what "focus follows mouse" does?
"focus follows mouse" doesn't raise or lower windows, it merely assigns
focus to a window whether it is raised or not.
--
Bryan Oakley
http://www.tclscripting.com
| |
| Roger Blum 2006-06-27, 10:00 pm |
| Hi Bryan,
>
> Perhaps your 'windows link' is incorrect with respect to quoting and/or
> arguments passed to vtk.exe. When you get the blank window, do you also
> get the regular window, or do you get just the one blank window? If you
> just get the one window, it appears that vtk.exe isn't seeing the
> "test.tcl" argument.
>
> It appears that "vtk.exe test.tcl" works as expected, so the question to
> be answered is, how is starting with the windows link different than
> starting with 'vtk.exe text.tcl'.
>
Quoting seems to be correct as wish.exe and vtk.exe recognize the parameter
(test.tcl). In both cases I get a GUI window. With vtk.exe I just get the
additional
blank window. I have checked once more: if I start vtk.exe from the Windows
Explorer (open with .. on test.tcl, then select vtk.exe) I don't get the
extra window.
So to me this rather seems to be a Windows related issue than Tcl or vtk.
Thanks again for your help,
Roger
|
|
|
|
|