Date: prev next · Thread: first prev next last
2018 Archives by date, by thread · List index



On 9-12-2018 19:02, Johnny Rosenberg wrote:
Hi!
For some reason I can't figure this out…

I have made a simple dialogue with two buttons and a numeric field. Those
buttons triggers two different subroutines that does two different things
and then closes the entire dialogue.

I want the dialogue to close automatically after ten seconds if neither of
the buttons have been pushed. The remaining time is to be displayed in the
numeric field mentioned above.

However, I couldn't find a way to trig a function ”when nothing else
happens”. Here's what I want to do:
Dialogue opens.
User does nothing, so a subroutine is called checking the remaining time
and displays it in the numeric field.
User still doesn't do anything and the above repeats until remaining time
is zero, then the dialogue is closed.

Any suggestions?


I do not think its possible to create a user-defined event in a Macro in LibreOffice.


The docs say nothing about how it can be done.

https://wiki.openoffice.org/wiki/Documentation/DevGuide/Basic/Adding_Event_Handlers

https://help.libreoffice.org/Basic/Event-Driven_Macros




--
To unsubscribe e-mail to: users+unsubscribe@global.libreoffice.org
Problems? https://www.libreoffice.org/get-help/mailing-lists/how-to-unsubscribe/
Posting guidelines + more: https://wiki.documentfoundation.org/Netiquette
List archive: https://listarchives.libreoffice.org/global/users/
Privacy Policy: https://www.documentfoundation.org/privacy

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.