Dialog and lister problem

I have some VB code that obtains information from the current file in the stand alone viewer window.

Function OnClick(ByRef clickData) Clipstring = clickData.func.viewer.current.name exto = clickdata.func.viewer.current.ext pathbo = clickdata.func.viewer.current.path pathbo = pathbo & "\" & ClipString oldpath = clickdata.func.viewer.current.path & "\" Set dlg = clickData.func.Dlg dlg.template = "Viewiptc" dlg.detach = true dlg.position = "parent" dlg.icon = "info" retval = Dlg.Show

I then throw up a dialog box so that the user can change the data if he wishes.

The slight problem is that when the dialog box appears it brings with it the Lister from which the image in the viewer was originally selected, which is distracting and unnecessary.

Is this to be expected or, more likely, I am missing a trick somewhere? And what is the trick to stop the Lister appearing?

Add dlg.window = clickData.func.viewer before showing the dialog.

Opus should probably do that automatically in this context, but that will fix things for now.

Many thanks, that fixes it.