Bonsoir,

Le 21/12/07, Spiritofgg <[EMAIL PROTECTED]> a écrit :
>
> Bonjour,
> Je recherche la meilleure façon d'ouvrir un formulaire dans oBase en le
> maximisant à l'ouverture. Quelqu'un a t il déjà fait?


François :
Si j'ai bien compris le problème (?), voici une idée pour que le
formulaire s'ouvre sur toute la taille de l'écran.

sub BaseFormResize
'Pour info
'
http://api.openoffice.org/docs/common/ref/com/sun/star/awt/XWindow.html#setPosSize
'http://api.openoffice.org/docs/common/ref/com/sun/star/awt/PosSize.html

 dim oDoc    as object
 dim oWindow as object

 oDoc    = thisComponent
 oWindow = oDoc.getCurrentController().getFrame().getContainerWindow()
 oWindow.setPosSize( 0, 0, 1280, 800, 15 )
end sub

Francois Gatto

Yves

Bonnes fêtes à tous!
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>


-- 
web site : http://www.molenbaix.com

Répondre à