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.

How to calculate dwobject positions in a treeview datawindow

2 posts in DataWindow Last posting was on 2008-07-21 16:23:47.0Z
JKorth Posted on 2008-07-21 11:23:49.0Z
From: JKorth <nooospaaam_jk@epos-gmbh.de>
User-Agent: Thunderbird 2.0.0.14 (Windows/20080421)
MIME-Version: 1.0
Newsgroups: sybase.public.powerbuilder.datawindow
Subject: How to calculate dwobject positions in a treeview datawindow
Content-Type: text/plain; charset=ISO-8859-15; format=flowed
Content-Transfer-Encoding: 7bit
NNTP-Posting-Host: vip152.sybase.com
X-Original-NNTP-Posting-Host: vip152.sybase.com
Message-ID: <488471c5@forums-1-dub>
Date: 21 Jul 2008 04:23:49 -0700
X-Trace: forums-1-dub 1216639429 10.22.241.152 (21 Jul 2008 04:23:49 -0700)
X-Original-Trace: 21 Jul 2008 04:23:49 -0700, vip152.sybase.com
Lines: 13
Path: forums-1-dub!not-for-mail
Xref: forums-1-dub sybase.public.powerbuilder.datawindow:87422
Article PK: 416678

How do I calculate the Y position of a dwobject given as parameter
in ue_mousemove for a treeview datawindow?

(I want to display the text of the column as tooltip.)
For NON-TREEVIEW-datawindows, I can calculate the Y position with the
following code:

li_add_y = integer(object.datawindow.header.height) + (pl_row - 1) &
* integer(Describe('evaluate("RowHeight()",'+string(pl_row)+')'))

li_Y = UnitsToPixels( Integer( p_dwo.Y ) + li_add_y, YUnitsToPixels! )

How can I do that for treeview datawindows?


Philip Salgannik Posted on 2008-07-21 16:23:47.0Z
Reply-To: "Philip Salgannik" <PhilipSalgannik@work.com>
From: "Philip Salgannik" <PhilipSalgannik@work.com>
Newsgroups: sybase.public.powerbuilder.datawindow
References: <488471c5@forums-1-dub>
Subject: Re: How to calculate dwobject positions in a treeview datawindow
Lines: 23
Organization: ATWORK
X-Priority: 3
X-MSMail-Priority: Normal
X-Newsreader: Microsoft Outlook Express 6.00.2900.3138
X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.3198
X-RFC2646: Format=Flowed; Response
NNTP-Posting-Host: vip152.sybase.com
X-Original-NNTP-Posting-Host: vip152.sybase.com
Message-ID: <4884b813$1@forums-1-dub>
Date: 21 Jul 2008 09:23:47 -0700
X-Trace: forums-1-dub 1216657427 10.22.241.152 (21 Jul 2008 09:23:47 -0700)
X-Original-Trace: 21 Jul 2008 09:23:47 -0700, vip152.sybase.com
Path: forums-1-dub!not-for-mail
Xref: forums-1-dub sybase.public.powerbuilder.datawindow:87425
Article PK: 416681

Why do you need to calculate positions? Coordinates are arguments to the
event...
Take a look at my Datawindow Tooltip Service on CodeXchange:

https://powerbuilder.codexchange.sybase.com/files/documents/67/2235/dwttips_service.zip

"JKorth" <nooospaaam_jk@epos-gmbh.de> wrote in message
news:488471c5@forums-1-dub...
> How do I calculate the Y position of a dwobject given as parameter
> in ue_mousemove for a treeview datawindow?
>
> (I want to display the text of the column as tooltip.)
> For NON-TREEVIEW-datawindows, I can calculate the Y position with the
> following code:
>
> li_add_y = integer(object.datawindow.header.height) + (pl_row - 1) &
> * integer(Describe('evaluate("RowHeight()",'+string(pl_row)+')'))
>
> li_Y = UnitsToPixels( Integer( p_dwo.Y ) + li_add_y, YUnitsToPixels! )
>
> How can I do that for treeview datawindows?