You wawnt to use the function
dwcontrol.GetObjectAtPointer ( )
>From the datawindow control help:
It reports the object and row number under the pointer. DataWindow objects
include columns, labels, and other graphic objects, such as lines and
bitmaps.
Return value:
String. Returns the string whose value is the name of the object under the
pointer, followed by a tab character and the row number. Returns the empty
string ("") if an error occurs. If dwcontrol is NULL, GetObjectAtPointer
returns NULL.
I used this to interact with dynamically created elements on a datawindow
with a lot of success.(I was abusing a datawindow - I used the datawindow as
a drawing area for a network graph, where the users could place new nodes
and interconnections between nodes.)
Put a call to this function from the mousemove event of the datawindow, then
parse the returned string to get the object name and row number.
Then all you have to do is check the object type, and get/display the
values for it where appropriate.
Hope this helps.
regards, Vivian.
[EMAIL PROTECTED]
> -----Original Message-----
> From: Magno Condori Mollehuara [SMTP:[EMAIL PROTECTED]]
> Sent: 11 August 1999 15:58
> To: Venkatesh, Malini(CTS); [EMAIL PROTECTED]
> Subject: RE: PFCSIG Mousemove event
>
> Hello TIA,
> Maybe this solution isn't very good; but it's a way to solve this problem:
> first you must use a Datawindow Service (from PFC) what is the service
> ?..:
> of_getobjects(.......) this is a service from pfc_u_dwsrv object. (PFC is
> used only for see the solution).
> the function of_getobjects return all names from objects that placed in
> the datawindow.... if you need columns... then you receive the columns.
> After the first step, the position of mouse over the datawindow is
> returned for dw_1.pointerx() and dw_1.pointery() and using
> dw_1.describe(col_001.width) and dw_1.describe(col_001.hight). then you
> should calculate the area that contain the object.
> Finally, you must construct a object that constain the name, position x
> and y, width and height from each object. and construct a function to do
> the validation, what validation?... if the mouse is over the any column or
> another object into the datawindow.
>
> Please, if you know another solution, write a mail and send me. Because
> the problem is so seem to my problem.
>
> Thanks,
> Magno
>
>
> ----------
> De: Venkatesh, Malini(CTS) <[EMAIL PROTECTED]>
> A: [EMAIL PROTECTED]
> Asunto: PFCSIG Mousemove event
> Fecha: Martes 10 de Agosto de 1999 06:19 AM
>
> I have a small question in Power Builder. Sorry for this non-PFC question
> I will explain u the situation.
> I have a datawindow with many columns n rows arranged n which have date
> data
> in them , those column which internally represent a holiday are in
> red.How
> do I get the value of the column when I move my mouse over those columns
> .That is at the mouse move event the holiday date has to b displayed
>
> TIA
>
>
>
> ----------
>
>
>
> [EMAIL PROTECTED] HOSTED BY IIGG, INC. FOR HELP WITH LIST SERVE COMMANDS, ADDRESS
> A MESSAGE TO [EMAIL PROTECTED] WITH THE FOLLOWING MESSAGE: help pfcsig
> SEND ALL OTHER INQUIRES TO [EMAIL PROTECTED]