https://bugs.documentfoundation.org/show_bug.cgi?id=92666

--- Comment #4 from Doug <[email protected]> ---
I would tick the importance of the bug down a notch because there is a partial
workaround by watching the state of the Writer window via macro and hiding the
Base application window again when the Writer window is closed.  Base macros
seem to be multi-threaded, allowing the applications to continue normally while
the Base macro loops looking for the size.width of the writer window to go to 0
or the .isVisible to go to false, at which time it hides the application
window.  The need for the first `Wait 50` below illustrates another oddity of
LO Basic, which is that sometimes instituting a `Wait` is necessary to allow
the application to finish reaching the desired state before continuing.

    appWindow.setVisible(True)
    appWindow.isMinimized = True

    Wait 50
    writerRept = reportContainer.open
    writerCntrllr = writerRept.CurrentController
    writerFrame = writerCntrllr.Frame
    writerWindow = writerFrame.getComponentWindow

    i = 0
    sz = writerWindow.getSize.Width
    vis = writerWindow.isVisible

    Do While sz > 0 And vis = True And i < 100000
      sz = writerWindow.getSize.width 
      vis = writerWindow.isVisible
      i = i + 1
      Wait 10    
    Loop

    appWindow.setVisible(False)

-- 
You are receiving this mail because:
You are the assignee for the bug.
_______________________________________________
Libreoffice-bugs mailing list
[email protected]
http://lists.freedesktop.org/mailman/listinfo/libreoffice-bugs

Reply via email to