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.

Resizing Datawindow control

4 posts in Objects Last posting was on 2007-08-29 21:37:33.0Z
John Smith Posted on 2007-08-27 08:41:57.0Z
Sender: 4b46.46d28d82.1804289383@sybase.com
From: John Smith
Newsgroups: sybase.public.powerbuilder.objects
Subject: Resizing Datawindow control
X-Mailer: WebNews to Mail Gateway v1.1t
Message-ID: <46d28e55.4b4f.1681692777@sybase.com>
NNTP-Posting-Host: 10.22.241.41
X-Original-NNTP-Posting-Host: 10.22.241.41
Date: 27 Aug 2007 01:41:57 -0700
X-Trace: forums-1-dub 1188204117 10.22.241.41 (27 Aug 2007 01:41:57 -0700)
X-Original-Trace: 27 Aug 2007 01:41:57 -0700, 10.22.241.41
Lines: 12
Path: forums-1-dub!not-for-mail
Xref: forums-1-dub sybase.public.powerbuilder.objects:9431
Article PK: 736590

Hi All,

I am resizing datawindow using mouse(not with function). I
need to take new widht and height once left mouse button is
released. Resize in datawindow control event is not
supporting this. Can anyone help me in this regard.

Thanks in advance for any help,

Regards,

John Smith


Jeremy Lakeman Posted on 2007-08-28 00:05:01.0Z
From: Jeremy Lakeman <jeremy.lakeman@gmail.com>
Newsgroups: sybase.public.powerbuilder.objects
Subject: Re: Resizing Datawindow control
Date: Tue, 28 Aug 2007 00:05:01 -0000
Organization: http://groups.google.com
Lines: 23
Message-ID: <1188259501.841514.246800@o80g2000hse.googlegroups.com>
References: <46d28e55.4b4f.1681692777@sybase.com>
NNTP-Posting-Host: 210.193.210.129
Mime-Version: 1.0
Content-Type: text/plain; charset="us-ascii"
X-Trace: posting.google.com 1188259502 14055 127.0.0.1 (28 Aug 2007 00:05:02 GMT)
X-Complaints-To: groups-abuse@google.com
NNTP-Posting-Date: Tue, 28 Aug 2007 00:05:02 +0000 (UTC)
In-Reply-To: <46d28e55.4b4f.1681692777@sybase.com>
User-Agent: G2/1.0
X-HTTP-UserAgent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.8.1.6) Gecko/20070725 Firefox/2.0.0.6,gzip(gfe),gzip(gfe)
X-HTTP-Via: 1.1 cocamrd.bravurasolutions.local:3128 (Squid/2.4.STABLE6)
Complaints-To: groups-abuse@google.com
Injection-Info: o80g2000hse.googlegroups.com; posting-host=210.193.210.129; posting-account=ps2QrAMAAAA6_jCuRt2JEIpn5Otqf_w0
Path: forums-1-dub!forums-master!newswest.sybase.com!newsfeed2.dallas1.level3.net!news.level3.com!postnews.google.com!o80g2000hse.googlegroups.com!not-for-mail
Xref: forums-1-dub sybase.public.powerbuilder.objects:9434
Article PK: 736589


On Aug 27, 5:41 pm, John Smith wrote:
> Hi All,
>
> I am resizing datawindow using mouse(not with function). I
> need to take new widht and height once left mouse button is
> released. Resize in datawindow control event is not
> supporting this. Can anyone help me in this regard.
>
> Thanks in advance for any help,
>
> Regards,
>
> John Smith

Odd, I just tried adding code to the resize event, and the
pbm_windowposchanged event. And I didn't see anything happen.
However I also added code to the other event and logged the message
numbers, and saw the WM_SIZE, WM_WINDOWPOSCHANGING etc events I was
expecting to see.

So it looks like you can still intercept everything in the other
event. But the other sizing events are not firing.


John Smith Posted on 2007-08-29 07:37:33.0Z
Sender: 4beb.46d29ee7.1804289383@sybase.com
From: John Smith
Newsgroups: sybase.public.powerbuilder.objects
Subject: Re: Resizing Datawindow control - Value is not correct
X-Mailer: WebNews to Mail Gateway v1.1t
Message-ID: <46d5223d.92c.1681692777@sybase.com>
References: <46d28e55.4b4f.1681692777@sybase.com>
NNTP-Posting-Host: 10.22.241.41
X-Original-NNTP-Posting-Host: 10.22.241.41
Date: 29 Aug 2007 00:37:33 -0700
X-Trace: forums-1-dub 1188373053 10.22.241.41 (29 Aug 2007 00:37:33 -0700)
X-Original-Trace: 29 Aug 2007 00:37:33 -0700, 10.22.241.41
Lines: 33
Path: forums-1-dub!not-for-mail
Xref: forums-1-dub sybase.public.powerbuilder.objects:9432
Article PK: 736591

Hi All,

I managed to get value from Resize event of datawindow, the
value I am getting is in pixels, I am converting the same to
PB Units from which I found some small amount of variation I
have attached the code what I had written in that event.

iw_Window.Dynamic function
wf_resize_object(il_OptionId, PixelsToUnits(newwidth,
XPixelsToUnits! ), PixelsToUnits(newheight, YPixelsToUnits!
))

If the width suppose to be 1202 PixelstoUnits is giving only
1913... Any idea to correct this.

Thanks in advance for anyhelp,

Regards,

John Smith.

> Hi All,
>
> I am resizing datawindow using mouse(not with function). I
> need to take new widht and height once left mouse button
> is released. Resize in datawindow control event is not
> supporting this. Can anyone help me in this regard.
>
> Thanks in advance for any help,
>
> Regards,
>
> John Smith


Jason 'Bug' Fenter Posted on 2007-08-29 21:37:33.0Z
From: "Jason 'Bug' Fenter" <jason.fenter@teamsybase.com>
Newsgroups: sybase.public.powerbuilder.objects
Organization: TeamSybase[65.201.123.212]
References: <46d28e55.4b4f.1681692777@sybase.com> <46d5223d.92c.1681692777@sybase.com>
X-Newsreader: AspNNTP 1.50 (JodoHost)
Subject: Re: Resizing Datawindow control - Value is not correct
Mime-Version: 1.0
Content-Type: text/plain; charset="us-ascii"
Content-Transfer-Encoding: 7bit
NNTP-Posting-Host: 64.187.108.200
X-Original-NNTP-Posting-Host: 64.187.108.200
Message-ID: <46d5e71d$1@forums-1-dub>
Date: 29 Aug 2007 14:37:33 -0700
X-Trace: forums-1-dub 1188423453 64.187.108.200 (29 Aug 2007 14:37:33 -0700)
X-Original-Trace: 29 Aug 2007 14:37:33 -0700, 64.187.108.200
Lines: 44
X-Authenticated-User: TeamSybase
Path: forums-1-dub!not-for-mail
Xref: forums-1-dub sybase.public.powerbuilder.objects:9433
Article PK: 736592

1202 and 1913? I'm guessing the first number is a typo. If the difference is
within a couple of pixels, then I would wonder if the event parameters are not
taking into account the border around the datawindow. You'd have to Google the
groups, but I think you can get the width of a border using GetSysMetrics API.
(GetSystemMetrics?) Also, have you tried THIS.Width? What about POSTing a call
to a function that checks the width property of the datawindow?


On 29 Aug 2007 00:37:33 -0700,
in sybase.public.powerbuilder.objects

<John Smith> wrote:
>Hi All,
>
>I managed to get value from Resize event of datawindow, the
>value I am getting is in pixels, I am converting the same to
>PB Units from which I found some small amount of variation I
>have attached the code what I had written in that event.
>
>iw_Window.Dynamic function
>wf_resize_object(il_OptionId, PixelsToUnits(newwidth,
>XPixelsToUnits! ), PixelsToUnits(newheight, YPixelsToUnits!
>))
>
>If the width suppose to be 1202 PixelstoUnits is giving only
>1913... Any idea to correct this.
>
>Thanks in advance for anyhelp,
>
>Regards,
>
>John Smith.
>
>> Hi All,
>>
>> I am resizing datawindow using mouse(not with function). I
>> need to take new widht and height once left mouse button
>> is released. Resize in datawindow control event is not
>> supporting this. Can anyone help me in this regard.
>>
>> Thanks in advance for any help,
>>
>> Regards,
>>
>> John Smith