Re: TILE not Title
Date: 1997/09/23
Message-ID: <3427E3BB.52D3_at_fyiowa.infi.net>#1/1
Miodrag Stojanovic wrote:
>
> Thanks to all of you that send me mails how to change window TITLE!!!
> I did not ask for that. I asked how to programaticly TILE windows!!!
> TILE - not title!
>
> Thanks for help
> Miodrag
>
> Miodrag Stojanovic wrote:
>
> > Hi,
> >
> > Is there a way to programaticly tile windows when running forms 4.5?
> >
> > Thanks Ahead
> > Miodrag
Below is a library proc I use to center a window in forms, but it could easily be modified to tile windows. Add a loop to RESIZE_WINDOWs and set the coordinates. You'll have to find a way to only tile the open windows though, maybe set a parameter when each window is activated?
HTH
>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>
/* Will center the window passed to it within the FORMS_MDI_WINDOW. */
PROCEDURE CENTER_WINDOW (win_name IN VARCHAR2)IS
m_id WINDOW ;
m_wdth NUMBER ;
m_hgth NUMBER ;
s_id WINDOW ;
s_wdth NUMBER ;
s_hgth NUMBER ;
BEGIN
-- get the ID of the master window
m_id := FORMS_MDI_WINDOW ;
-- get the id of the window to be centered
s_id := find_window(win_name);
-- get the height and width of the master window
m_hgth := get_window_property(m_id,height) ;
m_wdth := get_window_property(m_id,width) ;
-- get the height and width of the
-- window to be centered
s_hgth := get_window_property(s_id,height) ;
s_wdth := get_window_property(s_id,width) ;
-- center the window
move_window(s_id,(m_wdth-s_wdth)/2,(m_hgth-s_hgth)/2);
END ;
>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>
-- "Came for the party, left on the run" Robert Christenson Gazette Technologies robertoc#spam~be~gone#_at_fyiowa.infi.netReceived on Tue Sep 23 1997 - 00:00:00 CEST
