3 messages in org.openoffice.fr.prog[prog] création d'une zone à la maniè...
FromSent OnAttachments
gerardNov 24, 2005 10:50 am 
Bernard MarcellyNov 26, 2005 12:04 pm 
gerardNov 27, 2005 8:27 am 
Actions with this message:
Paste this link in email or IM:
Paste this link in email or IM:
Atom feed for this thread
Paste this URL into your reader:
Subject:[prog] création d'une zone à la manière du module MathActions...
From:gerard (gera@free.fr)
Date:Nov 24, 2005 10:50:43 am
List:org.openoffice.fr.prog

Bonjour,

J'aimerais créer une sous fenêtre comme le fait le module math de OO.o. Mon but et d'ajouter une sorte de barre d'état pour mon addon. J'ai déjà essayé sans grand succès avec l'extrait de code python suivant : aToolkit = self.desktop.CurrentFrame.ContainerWindow.Toolkit aPosSize = self.desktop.CurrentFrame.ComponentWindow.PosSize aRect = uno.createUnoStruct("com.sun.star.awt.Rectangle") aWindowDescriptor = uno.createUnoStruct("com.sun.star.awt.WindowDescriptor") aWindowDescriptor.Type = SIMPLE aWindowDescriptor.Bounds = aRect aWindowDescriptor.WindowServiceName = "dockingwindow" aWindowDescriptor.Parent = self.desktop.CurrentFrame.ContainerWindow aWindowDescriptor.ParentIndex = -1 aWindowDescriptor.WindowAttributes = 1 aWinPeer = aToolkit.createWindow(aWindowDescriptor) aFrame = self.ctx.ServiceManager.createInstanceWithContext("com.sun.star.frame.Frame", self.ctx) aFrame.initialize(aWinPeer) self.desktop.Frames.append(aFrame) aRect.Y, aRect.Width, aRect.Height = aPosSize.Height-45, aPosSize.Width, 45 aWinPeer.setPosSize(aRect.X, aRect.Y, aRect.Width, aRect.Height, 15) aWinPeer.setVisible(True) aWinPeer.setBackground(0xffffffff)

mais rien n'apparaît., je dois louper quelquechose mais quoi.

Si quelqu'un a réussi je suis preneur et pas seulement en python.

merci d'avance