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


Bonjour

Ci-dessous un exemple de procédure dans un module de la bibliothèque
Standard de "Mes macros" :

option explicit

sub PysMajDoc
dim PysDlg as object, PysBibli as object, PysDialogue as object

DialogLibraries.Loadlibrary("Standard")
PysBibli = DialogLibraries.GetByName("Standard")' On charge la bibli
PysDialogue = PysBibli.GetByName("Dialog1") ' on accède à la boite
PysDlg = CreateUnoDialog(PysDialogue) ' création du dialogue

'Si on a quitté le dialogue par OK

if PysDlg.Execute = com.sun.star.ui.dialogs.ExecutableDialogResults.OK then
        print PysDlg.getControl("TxtExemple").text
end if

end sub

Cordialement
Pierre-Yves

--
View this message in context: 
http://nabble.documentfoundation.org/Boite-de-dialogue-tp3443193p3443261.html
Sent from the Users mailing list archive at Nabble.com.

-- 
Envoyez un mail à users+help@fr.libreoffice.org pour savoir comment vous désinscrire
Les archives de la liste sont disponibles à http://listarchives.libreoffice.org/fr/users/
Tous les messages envoyés sur cette liste seront archivés publiquement et ne pourront pas être 
supprimés

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.