Sybase NNTP forums - End Of Life (EOL)

The NNTP forums from Sybase - forums.sybase.com - are now closed.

All new questions should be directed to the appropriate forum at the SAP Community Network (SCN).

Individual products have links to the respective forums on SCN, or you can go to SCN and search for your product in the search box (upper right corner) to find your specific developer center.

Arranging non-sheet-windows

3 posts in Objects Last posting was on 2005-03-17 16:31:44.0Z
Rolf Knaden Posted on 2005-03-09 19:41:11.0Z
From: Rolf Knaden <rolf.knaden@conject.com>
Reply-To: rolf.knaden@conject.com
Organization: conject GmbH
User-Agent: Mozilla Thunderbird 1.0 (Windows/20041206)
X-Accept-Language: de-DE, de, en-us, en
MIME-Version: 1.0
Newsgroups: sybase.public.powerbuilder.objects
Subject: Arranging non-sheet-windows
Content-Type: text/plain; charset=ISO-8859-15; format=flowed
Content-Transfer-Encoding: 7bit
X-Original-NNTP-Posting-Host: pd9fe049b.dip.t-dialin.net
Message-ID: <422f5153$1@forums-2-dub>
X-Original-Trace: 9 Mar 2005 11:41:07 -0800, pd9fe049b.dip.t-dialin.net
Lines: 9
X-Original-NNTP-Posting-Host: forums-2-dub.sybase.com
X-Original-Trace: 9 Mar 2005 11:41:08 -0800, forums-2-dub.sybase.com
NNTP-Posting-Host: forums-master.sybase.com
X-Original-NNTP-Posting-Host: forums-master.sybase.com
Date: 9 Mar 2005 11:41:11 -0800
X-Trace: forums-1-dub 1110397271 10.22.108.75 (9 Mar 2005 11:41:11 -0800)
X-Original-Trace: 9 Mar 2005 11:41:11 -0800, forums-master.sybase.com
X-Authenticated-User: ngsysop
Path: forums-1-dub!not-for-mail
Xref: forums-1-dub sybase.public.powerbuilder.objects:8262
Article PK: 735521

Hello,
I have to arrange a list of non-sheet-windows like in the same way as it
does the function arrangesheet(...).

Can anyone tell me the algorithm to do that?
Thanks,


Rolf Knaden


Steve Katz [TeamSybase] Posted on 2005-03-14 20:10:44.0Z
Sender: 4d6.4235ed5b.1804289383@sybase.com
From: Steve Katz [TeamSybase]
Newsgroups: sybase.public.powerbuilder.objects
Subject: Re: Arranging non-sheet-windows
X-Mailer: WebNews to Mail Gateway v1.1t
Message-ID: <4235efc4.513.1681692777@sybase.com>
References: <422f5153$1@forums-2-dub>
NNTP-Posting-Host: 10.22.241.41
X-Original-NNTP-Posting-Host: 10.22.241.41
Date: 14 Mar 2005 12:10:44 -0800
X-Trace: forums-1-dub 1110831044 10.22.241.41 (14 Mar 2005 12:10:44 -0800)
X-Original-Trace: 14 Mar 2005 12:10:44 -0800, 10.22.241.41
Lines: 37
Path: forums-1-dub!not-for-mail
Xref: forums-1-dub sybase.public.powerbuilder.objects:8264
Article PK: 735523

You would want to get the system metrics for the titlebar
height, the window border size, and some other features
because you will use these as the offsets from 0, 0 for the
second non-sheet and onwards.

You will also have to ensure that you keep track of all the
non-sheet windows somehow so you can "walk the list."

In general, however, there may be some difficulties to
consider:

For child windows, which always reside within the parent
window, you will have to cascade them from the parent's
relative 0,0 (top-left corner).

For popups, they can reside outside the window that opened
them and, possibly, outside the application area (don't
remember), so I don't know what you want to do with them.

Response windows are obviously moot in this discussion since
they are modal anyway.

Why do you have "so many" non-sheet windows opened
simultaneously that this is even a concern?

steve
[TeamSybase]

> Hello,
> I have to arrange a list of non-sheet-windows like in the
> same way as it does the function arrangesheet(...).
>
> Can anyone tell me the algorithm to do that?
> Thanks,
>
>
> Rolf Knaden


Rolf Knaden Posted on 2005-03-17 16:31:44.0Z
From: "Rolf Knaden" <rolf.knaden@conject.com>
Newsgroups: sybase.public.powerbuilder.objects
References: <422f5153$1@forums-2-dub> <4235efc4.513.1681692777@sybase.com>
Subject: Re: Arranging non-sheet-windows
Lines: 57
X-Priority: 3
X-MSMail-Priority: Normal
X-Newsreader: Microsoft Outlook Express 6.00.2800.1437
X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1441
NNTP-Posting-Host: 213.146.103.18
X-Original-NNTP-Posting-Host: 213.146.103.18
Message-ID: <4239b0f0@forums-1-dub>
Date: 17 Mar 2005 08:31:44 -0800
X-Trace: forums-1-dub 1111077104 213.146.103.18 (17 Mar 2005 08:31:44 -0800)
X-Original-Trace: 17 Mar 2005 08:31:44 -0800, 213.146.103.18
Path: forums-1-dub!not-for-mail
Xref: forums-1-dub sybase.public.powerbuilder.objects:8270
Article PK: 735528

It's not only getting the details, you described. But I also want to apply
the different types (tile-horizontal, tile-vertical, cascade and so) to
those windows.

But meanwhile I found another way of doing that, without knowing the
algorithms. I
+ open an invisible dummy-frame,
+ resize it to the wanted size,
+ open as many sheets in it, as are in my window-list,
+ arrange these sheets according to the type, the user selected,
+ get the positions and sizes of the sheets and apply them to the windows in
my list
That's it.

Thanks for your efforts.

<Steve Katz [TeamSybase]> schrieb im Newsbeitrag
news:4235efc4.513.1681692777@sybase.com...

> You would want to get the system metrics for the titlebar
> height, the window border size, and some other features
> because you will use these as the offsets from 0, 0 for the
> second non-sheet and onwards.
>
> You will also have to ensure that you keep track of all the
> non-sheet windows somehow so you can "walk the list."
>
> In general, however, there may be some difficulties to
> consider:
>
> For child windows, which always reside within the parent
> window, you will have to cascade them from the parent's
> relative 0,0 (top-left corner).
>
> For popups, they can reside outside the window that opened
> them and, possibly, outside the application area (don't
> remember), so I don't know what you want to do with them.
>
> Response windows are obviously moot in this discussion since
> they are modal anyway.
>
> Why do you have "so many" non-sheet windows opened
> simultaneously that this is even a concern?
>
> steve
> [TeamSybase]
>
> > Hello,
> > I have to arrange a list of non-sheet-windows like in the
> > same way as it does the function arrangesheet(...).
> >
> > Can anyone tell me the algorithm to do that?
> > Thanks,
> >
> >
> > Rolf Knaden