On Thu, 2012-10-25 at 11:15 +0200, Markus Mohrhard wrote:
Hey,
is there a way to get the open dialog in the code? I know that there
is a "way" for modeless dialogs if you know the id of the dialog but
have still no idea about modal dialogs.
Can you give the use case ? I mean if you already have a window that you
want to get a dialog parent for or dialog child you could just go up and
down the hierarchy. Otherwise stuff like Application::GetActiveTopWindow
or some of the other thingies in Application might be useful.
Another approach, depending on what you want to do, is to listen for a
window appearing, e.g. RunDialog in vcl/unx/gtk allows the gtkfilepicker
to auto-popdown if its already open and someone uses the systray menu to
launch another toplevel window.
C.
Context
Privacy Policy |
Impressum (Legal Info) |
Copyright information: Unless otherwise specified, all text and images
on this website are licensed under the
Creative Commons Attribution-Share Alike 3.0 License.
This does not include the source code of LibreOffice, which is
licensed under the Mozilla Public License (
MPLv2).
"LibreOffice" and "The Document Foundation" are
registered trademarks of their corresponding registered owners or are
in actual use as trademarks in one or more countries. Their respective
logos and icons are also subject to international copyright laws. Use
thereof is explained in our
trademark policy.