Ethereal-dev: Re: [Ethereal-dev] Window placement on win32

Note: This archive is from the project's previous web site, ethereal.com. This list is no longer active.

From: Ulf Lamping <ulf.lamping@xxxxxx>
Date: Mon, 24 May 2004 18:25:32 +0200
John McDermott wrote:

Hi,
Sometimes I want to run two copies of Ethereal on Win32: on a firewall, say. What I want to do is have a script or desktop shortcut to start each (or both) of the instances and place them in specific screen locations. On an X-windows system I could -geometry to do the placement. How can I do that from Windows? Is there some command-line arg, a wsh wrapper, or some other standard method I can use? If not, is there code I can add to ethereal to implement this?

The size and position of the main window is saved in the "recent" file at program exit, and read back at startup.

So if you start two instances of Ethereal, both will be placed at the same position and size.

There is currently no way to change this behaviour in the way you need it, without changing the code in some way.

As a tip to start experiments: see main_load_window_geometry() in gtk/main.c, where this mechanism is implemented.

Regards, ULFL