Hi, again...
I am setting up an application (PlanMaker in this case) using CreateObject(), etc... and I use the methods pm.Visible and pm.Active to ensure the user can see the application. If I then display a dialog, there doesn't seem to be any guarantee that the dialog will be displayed in front of the application. There is no method, etc to bring the dialog to the front... so is there any workaround to ensure the dialogs are always displayed in front of the application?
Thanks.
PS It would be helpful if the site set-up for phpBB allowed us to use Code and monospaced attributes in our posts... Just sayin'...
Can BM dialogs be made to always appear in front of PM/TM?
Re: Can BM dialogs be made to always appear in front of PM/TM?
Edit: Nope, it doesn't work reliably. Dang.
I've found one workaround... in that if you change the state of the application window before you display the Dialog, the Dialog is displayed in front of the application window. So, some code might be:
I've found one workaround... in that if you change the state of the application window before you display the Dialog, the Dialog is displayed in front of the application window. So, some code might be:
Code: Select all
' Ensure PlanMaker is running
Set pm = CreateObject("PlanMaker.Application")
If Not IsObject(pm) Then
Call MsgBox("ERROR: Cannot start 'PlanMaker'.", MB_OK + MB_ICONSTOP, APP_HEADER)
End
End If
pm.Visible = True
pm.Activate
pm.WindowState = smoWindowStateNormal ' So the dialog can be seen
[... other code ...]
dlg(My_DIalog)
[...]