7 messages in org.openoffice.fr.prog[prog] création et suppression de con...
FromSent OnAttachments
JovialJul 12, 2004 5:11 am 
BobJul 12, 2004 5:16 am 
JovialJul 12, 2004 7:33 am 
JovialJul 12, 2004 7:36 am 
Agnès SimonetJul 12, 2004 9:58 am 
Tony GALMICHEJul 12, 2004 10:23 am 
JovialJul 12, 2004 1:00 pm 
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 et suppression de controleActions...
From:Jovial (luck@free.fr)
Date:Jul 12, 2004 5:11:17 am
List:org.openoffice.fr.prog

Bonjour :-) Je recherche des informations ou exemple pour créer et supprimer par programmation un bouton de control et pouvoir gerer sa taille et sa position

J'ai trouver un exemple pour la position chez Andrew . Mais il faut charger une librairie pour que cela marche Il y a peut être plus simple Jluc

Sub SeeThingProp Dim oForm, oControl, iNumControls%, i% Dim v() 'Par défaut, les contrôles se trouvent ici oForm = ThisComponent.Drawpage.Forms.getByName("Standard") 'oControl = oForm.getByName("MyPushButton") oControl = oForm.getByName("CheckBox") Dim vShape Dim vPosition, vSize Dim s$, vv vShape = GetControlShape(ThisComponent, "CheckBox") 'plante sur cette ligne

vPosition = vShape.getPosition() vSize = vShape.getSize() ' RunSimpleObjectBrowser(vSize) s = s & "Position = (" & vPosition.X & ", " & vPosition.Y & ")" & CHR$(10) s = s & "Height = " & vSize.Height & " Width = " & vSize.Width & CHR$(10) MsgBox s End Sub