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.

pbapplication as per resolution

5 posts in General Discussion Last posting was on 2013-03-22 12:52:59.0Z
nazar Posted on 2013-03-21 12:45:19.0Z
Sender: 7553.514aff74.1804289383@sybase.com
From: nazar
Newsgroups: sybase.public.powerbuilder.general
Subject: pbapplication as per resolution
X-Mailer: WebNews to Mail Gateway v1.1t
Message-ID: <514b00df.75c1.1681692777@sybase.com>
NNTP-Posting-Host: 172.20.134.41
X-Original-NNTP-Posting-Host: 172.20.134.41
Date: 21 Mar 2013 04:45:19 -0800
X-Trace: forums-1-dub 1363869919 172.20.134.41 (21 Mar 2013 04:45:19 -0800)
X-Original-Trace: 21 Mar 2013 04:45:19 -0800, 172.20.134.41
Lines: 4
Path: forums-1-dub!not-for-mail
Xref: forums-1-dub sybase.public.powerbuilder.general:250028
Article PK: 1308543

Hi,
How can i resize the window object and its controls
according to the windows OS screen resolution in PB12.5.
waiting for the response.


Chris Pollach Posted on 2013-03-21 13:03:58.0Z
From: Chris Pollach <cpollach@travel-net.com>
User-Agent: Mozilla/5.0 (Windows NT 5.1; rv:17.0) Gecko/20130307 Thunderbird/17.0.4
MIME-Version: 1.0
Newsgroups: sybase.public.powerbuilder.general
Subject: Re: pbapplication as per resolution
References: <514b00df.75c1.1681692777@sybase.com>
In-Reply-To: <514b00df.75c1.1681692777@sybase.com>
Content-Type: text/plain; charset=ISO-8859-1; format=flowed
Content-Transfer-Encoding: 7bit
NNTP-Posting-Host: vip152.sybase.com
X-Original-NNTP-Posting-Host: vip152.sybase.com
Message-ID: <514b053e$1@forums-1-dub>
Date: 21 Mar 2013 05:03:58 -0800
X-Trace: forums-1-dub 1363871038 172.20.134.152 (21 Mar 2013 05:03:58 -0800)
X-Original-Trace: 21 Mar 2013 05:03:58 -0800, vip152.sybase.com
Lines: 30
Path: forums-1-dub!not-for-mail
Xref: forums-1-dub sybase.public.powerbuilder.general:250029
Article PK: 1308544

Hi Nazar;

1) Have a look at the Resize Event to get sensitivity to the resizing
action going on.
2) Have a look at the Resize ( ) method on various controls to help you
to resize them.
3) Have a look at the Move ( ) method as well that might help you on the
resize processing - depending on what you want to accomplish.

--

Regards ... Chris
President: OSUG / STD Inc.
Vice President: ISUG-TECH
Blog: http://chrispollach.blogspot.com
SourceForge: http://sourceforge.net/projects/stdfndclass
PBDJ: http://chrispollach.sys-con.com
TKD: http://www.syeoh.com

On 3/21/2013 8:45 AM, nazar wrote:
> Hi,
> How can i resize the window object and its controls
> according to the windows OS screen resolution in PB12.5.
> waiting for the response.
>


Roland Smith [TeamSybase] Posted on 2013-03-21 13:13:04.0Z
From: "Roland Smith [TeamSybase]" <rsmith@trusthss.com>
User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:17.0) Gecko/20130307 Thunderbird/17.0.4
MIME-Version: 1.0
Newsgroups: sybase.public.powerbuilder.general
Subject: Re: pbapplication as per resolution
References: <514b00df.75c1.1681692777@sybase.com>
In-Reply-To: <514b00df.75c1.1681692777@sybase.com>
Content-Type: text/plain; charset=ISO-8859-1; format=flowed
Content-Transfer-Encoding: 7bit
NNTP-Posting-Host: vip152.sybase.com
X-Original-NNTP-Posting-Host: vip152.sybase.com
Message-ID: <514b0760$1@forums-1-dub>
Date: 21 Mar 2013 05:13:04 -0800
X-Trace: forums-1-dub 1363871584 172.20.134.152 (21 Mar 2013 05:13:04 -0800)
X-Original-Trace: 21 Mar 2013 05:13:04 -0800, vip152.sybase.com
Lines: 23
X-Authenticated-User: teamsybase
Path: forums-1-dub!not-for-mail
Xref: forums-1-dub sybase.public.powerbuilder.general:250030
Article PK: 1308545

When the window is opened, the resize event is triggered. In that event
you can add code to modify the width, height, x and y properties of the
various controls on the window.

The following is an example from one of my programs where I have a
ListBox control that covers the full width of the window.

Application la_app
Integer li_workspace, li_toolbar

// determine current Toolbar height
la_app = GetApplication()
If la_app.ToolbarText Then
li_toolbar = 160
Else
li_toolbar = 106
End If

lb_msgbox.Width = this.WorkSpaceWidth() - 20

li_workspace = this.WorkSpaceHeight() - &
mdi_1.MicroHelpHeight + li_toolbar
lb_msgbox.Y = li_workspace - lb_msgbox.Height


Terry Voth [TeamSybase] Posted on 2013-03-22 05:07:36.0Z
From: "Terry Voth [TeamSybase]" <sequel@techno-kitten.com>
Newsgroups: sybase.public.powerbuilder.general
Subject: Re: pbapplication as per resolution
Message-ID: <0epnk8pm8sm1i1mp3qlfs5gceoc9fenhai@4ax.com>
References: <514b00df.75c1.1681692777@sybase.com>
X-Newsreader: Forte Agent 5.00/32.1171
MIME-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: 7bit
NNTP-Posting-Host: vip152.sybase.com
X-Original-NNTP-Posting-Host: vip152.sybase.com
Date: 21 Mar 2013 21:07:36 -0800
X-Trace: forums-1-dub 1363928856 172.20.134.152 (21 Mar 2013 21:07:36 -0800)
X-Original-Trace: 21 Mar 2013 21:07:36 -0800, vip152.sybase.com
Lines: 45
X-Authenticated-User: teamsybase
Path: forums-1-dub!not-for-mail
Xref: forums-1-dub sybase.public.powerbuilder.general:250039
Article PK: 1308563

My first suggestion would be to start thinking about *window size*
rather than *resolution*. Once you have window size covered, not only
are you handling resolution, but also the cases where your user puts
your app into a half or a quarter of the screen, or tries to place two
of your windows side-by-side.

Beyond that, I'd recommend looking at what PFC has done for resizing,
and the various content available describing it. It has two major
components: the window resize service, which controls window
sub-classes (e.g. controls, user objects), and the DataWindow resize
service, which handles controls inside the DataWindow. No sense
re-inventing the wheel, and I seem to recall people posting versions
that were decoupled from the PFC libraries.

Good luck,

Terry and Sequel the techno-kitten

On 21 Mar 2013 04:45:19 -0800, nazar wrote:

>Hi,
>How can i resize the window object and its controls
>according to the windows OS screen resolution in PB12.5.
>waiting for the response.

*********************************
Build your vocabulary while feeding the hungry
http://www.freerice.com
*********************************
Newsgroup User Manual
=====================
TeamSybase <> Sybase employee
Forums = Peer-to-peer
Forums <> Communication with Sybase
IsNull (AnswerTo (Posting)) can return TRUE
Forums.Moderated = TRUE, so behave or be deleted
*********************************

Sequel's Sandbox: http://www.techno-kitten.com
Home of PBL Peeper, a free PowerBuilder Developer's Toolkit.
Version 4.1.3 now available at http://www.techno-kitten.com/PBL_Peeper/Download/download.html
See the PB Troubleshooting & Migration Guides at the Sandbox
^ ^
o o
=*=


Mark L Posted on 2013-03-22 12:52:59.0Z
From: Mark L <mlibner@yahoo.com>
User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:17.0) Gecko/20130307 Thunderbird/17.0.4
MIME-Version: 1.0
Newsgroups: sybase.public.powerbuilder.general
Subject: Re: pbapplication as per resolution
References: <514b00df.75c1.1681692777@sybase.com>
In-Reply-To: <514b00df.75c1.1681692777@sybase.com>
Content-Type: text/plain; charset=ISO-8859-1; format=flowed
Content-Transfer-Encoding: 7bit
NNTP-Posting-Host: vip152.sybase.com
X-Original-NNTP-Posting-Host: vip152.sybase.com
Message-ID: <514c542b$1@forums-1-dub>
Date: 22 Mar 2013 04:52:59 -0800
X-Trace: forums-1-dub 1363956779 172.20.134.152 (22 Mar 2013 04:52:59 -0800)
X-Original-Trace: 22 Mar 2013 04:52:59 -0800, vip152.sybase.com
Lines: 8
Path: forums-1-dub!not-for-mail
Xref: forums-1-dub sybase.public.powerbuilder.general:250046
Article PK: 1308572

Are you using PB Classic or PB.Net?

On 3/21/2013 8:45 AM, nazar wrote:
> Hi,
> How can i resize the window object and its controls
> according to the windows OS screen resolution in PB12.5.
> waiting for the response.
>