Re: Forms 5.0: Centering form in MDI Parent

From: Joaquin Garcia Santos <jis_at_iberdrolaingenieria.es>
Date: Thu, 17 Jun 1999 08:40:22 +0200
Message-ID: <7ka4mf$9nl$1_at_talia.mad.ttd.net>


Here you have a procedure. The input argument is the name of the window that you want to center.

Bye

  • Centra la ventana con respecto al MDI PROCEDURE centrar_ventana(ventana in varchar2) IS hMDI number; hVentana number; wMDI number; wVentana number; x number; y number; BEGIN hMDI := get_window_property(FORMS_MDI_WINDOW,height); wMDI := get_window_property(FORMS_MDI_WINDOW,width); hVentana := get_window_property(ventana,height); wVentana := get_window_property(ventana,width); x := (wMDI - wVentana) / 2; y := (hMDI - hVentana) / 2; set_window_property(ventana,x_pos,x); set_window_property(ventana,y_pos,y); END;
Scott Haley escribió en mensaje <3767B0AF.2E1BE9D9_at_pilot.msu.edu>...
>I was wondering if anyone knows a good way to center a form on the
>clients window or at least close to center. In VB there is a startup
>position property which you can set to center screen or center owner for
>instance. Is ther a way to do this in Forms?
>
>Thanks in advance.
>
Received on Thu Jun 17 1999 - 08:40:22 CEST

Original text of this message