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.

Window handle of a column control inside a datawindow object ?

10 posts in Objects Last posting was on 2005-05-10 19:15:53.0Z
Albert Posted on 2005-05-04 01:31:15.0Z
Reply-To: "Albert" <albert.mo@msa.hinet.net>
From: "Albert" <albert.mo@msa.hinet.net>
Newsgroups: sybase.public.powerbuilder.objects
Subject: Window handle of a column control inside a datawindow object ?
Lines: 15
X-Priority: 3
X-MSMail-Priority: Normal
X-Newsreader: Microsoft Outlook Express 6.00.3790.181
X-MimeOLE: Produced By Microsoft MimeOLE V6.00.3790.181
NNTP-Posting-Host: 218-168-142-133.dynamic.hinet.net
X-Original-NNTP-Posting-Host: 218-168-142-133.dynamic.hinet.net
Message-ID: <427825e3$1@forums-1-dub>
Date: 3 May 2005 18:31:15 -0700
X-Trace: forums-1-dub 1115170275 218.168.142.133 (3 May 2005 18:31:15 -0700)
X-Original-Trace: 3 May 2005 18:31:15 -0700, 218-168-142-133.dynamic.hinet.net
Path: forums-1-dub!not-for-mail
Xref: forums-1-dub sybase.public.powerbuilder.objects:8379
Article PK: 735603

Hi,

PowerBuilder Script function Handle( ) can return the window handle
of a window control.
But while I use this function on a column control inside a datawindow
object, it return 0

For example :

Handle(dw_1.object.old_buyer) return 0

It is not a valid window handle.
How can we get the window handle of this type of object ?


Roy Kiesler [TeamSybase] Posted on 2005-05-04 02:24:06.0Z
From: "Roy Kiesler [TeamSybase]" <roy.kiesler@teamsybase.com>
Reply-To: SPAM_FRE_roy.kiesler@teamsybase.com
Organization: TeamSybase
User-Agent: Mozilla Thunderbird 1.0.2 (Windows/20050317)
X-Accept-Language: en-us, en
MIME-Version: 1.0
Newsgroups: sybase.public.powerbuilder.objects
Subject: Re: Window handle of a column control inside a datawindow object ?
References: <427825e3$1@forums-1-dub>
In-Reply-To: <427825e3$1@forums-1-dub>
Content-Type: text/plain; charset=ISO-8859-1; format=flowed
Content-Transfer-Encoding: 7bit
X-Original-NNTP-Posting-Host: 65.162.87.80
Message-ID: <42783242$1@forums-2-dub>
X-Original-Trace: 3 May 2005 19:24:02 -0700, 65.162.87.80
Lines: 26
X-Original-NNTP-Posting-Host: forums-2-dub.sybase.com
X-Original-Trace: 3 May 2005 19:24:03 -0700, forums-2-dub.sybase.com
NNTP-Posting-Host: forums-master.sybase.com
X-Original-NNTP-Posting-Host: forums-master.sybase.com
Date: 3 May 2005 19:24:06 -0700
X-Trace: forums-1-dub 1115173446 10.22.108.75 (3 May 2005 19:24:06 -0700)
X-Original-Trace: 3 May 2005 19:24:06 -0700, forums-master.sybase.com
X-Authenticated-User: ngsysop
Path: forums-1-dub!not-for-mail
Xref: forums-1-dub sybase.public.powerbuilder.objects:8380
Article PK: 735604

There is no handle to get, really -- a DataWindow is nothing but a big
bitmap w/ a floating edit control on top (great patent).

What exactly are you trying to accomplish? There are API calls you can
make, but it would help if we understood what it is you're trying to do
first.

--
Roy

Albert wrote:
> Hi,
>
> PowerBuilder Script function Handle( ) can return the window handle
> of a window control.
> But while I use this function on a column control inside a datawindow
> object, it return 0
>
> For example :
>
> Handle(dw_1.object.old_buyer) return 0
>
> It is not a valid window handle.
> How can we get the window handle of this type of object ?
>
>


Albert Posted on 2005-05-04 09:07:08.0Z
Reply-To: "Albert" <albert.mo@msa.hinet.net>
From: "Albert" <albert.mo@msa.hinet.net>
Newsgroups: sybase.public.powerbuilder.objects
References: <427825e3$1@forums-1-dub> <42783242$1@forums-2-dub>
Subject: Re: Window handle of a column control inside a datawindow object ?
Lines: 6120
X-Priority: 3
X-MSMail-Priority: Normal
X-Newsreader: Microsoft Outlook Express 6.00.3790.181
X-MimeOLE: Produced By Microsoft MimeOLE V6.00.3790.181
NNTP-Posting-Host: 218-168-140-117.dynamic.hinet.net
X-Original-NNTP-Posting-Host: 218-168-140-117.dynamic.hinet.net
Message-ID: <427890bc@forums-1-dub>
Date: 4 May 2005 02:07:08 -0700
X-Trace: forums-1-dub 1115197628 218.168.140.117 (4 May 2005 02:07:08 -0700)
X-Original-Trace: 4 May 2005 02:07:08 -0700, 218-168-140-117.dynamic.hinet.net
Path: forums-1-dub!not-for-mail
Xref: forums-1-dub sybase.public.powerbuilder.objects:8381
Article PK: 735610

Hi Roy,
I think your point of view is not exactly true. I have tried use
the Spy++ to trace the PB execution. Here are some
interestings I found.

Scenario :
1. I have a datawindow control called DW_2
2. The datawidow object of this control is
d_po_buyer_query
3. There are two columns inside d_po_buyer_query
Column 1 : old_buyer , integer
Column 2 : new_buyer, integer
4. Both of these two columns edit property are DropDownDW

While trace use the Spy++, There can find two edit controls window
handles, See 001.jpg
I am going to find a way to get these two window handles

Then, I tried to trace the window messages of these two window
controls.
The window messages type I wanna trace are, See 002.jpg
1. Edit Field Type
2. DropDown List Type

Here is the result of trace, See 003.jpg,
If I change the text of the edit controls, the window messages are
indeed sent to these two windows.
So I am sure these two window handles are correspond to the
old_buyer, new_buyer columns.
If I can get the window handles of these two column controls, then
I can call the SendMessage API
to send WM_SETTEXT, or use these two handles on calling other
window API.

Albert Mo


"Roy Kiesler [TeamSybase]" <roy.kiesler@teamsybase.com>
???????:42783242$1@forums-2-dub...

> There is no handle to get, really -- a DataWindow is nothing but a big
> bitmap w/ a floating edit control on top (great patent).
>
> What exactly are you trying to accomplish? There are API calls you can
> make, but it would help if we understood what it is you're trying to do
> first.
>
> --
> Roy
>
> Albert wrote:
> > Hi,
> >
> > PowerBuilder Script function Handle( ) can return the window
handle
> > of a window control.
> > But while I use this function on a column control inside a
datawindow
> > object, it return 0
> >
> > For example :
> >
> > Handle(dw_1.object.old_buyer) return 0
> >
> > It is not a valid window handle.
> > How can we get the window handle of this type of object ?
> >
> >

001.JPG
002.JPG
003.JPG

Bruce Armstrong [TeamSybase] Posted on 2005-05-04 12:55:36.0Z
From: "Bruce Armstrong [TeamSybase]" <NOCANSPAM_bruce.armstrong@teamsybase.com>
Newsgroups: sybase.public.powerbuilder.objects
Subject: Re: Window handle of a column control inside a datawindow object ?
Organization: TeamSybase
Reply-To: NOCANSPAM_bruce.armstrong@teamsybase.com
Message-ID: <qhhh719f1dhmvfp3v5q8ktpkk75iu7fs81@4ax.com>
References: <427825e3$1@forums-1-dub> <42783242$1@forums-2-dub> <427890bc@forums-1-dub>
X-Newsreader: Forte Agent 2.0/32.652
MIME-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: 7bit
NNTP-Posting-Host: 68-190-226-38.la-cbi.charterpipeline.net
X-Original-NNTP-Posting-Host: 68-190-226-38.la-cbi.charterpipeline.net
Date: 4 May 2005 05:55:36 -0700
X-Trace: forums-1-dub 1115211336 68.190.226.38 (4 May 2005 05:55:36 -0700)
X-Original-Trace: 4 May 2005 05:55:36 -0700, 68-190-226-38.la-cbi.charterpipeline.net
Lines: 128
X-Authenticated-User: TeamSybase
Path: forums-1-dub!not-for-mail
Xref: forums-1-dub sybase.public.powerbuilder.objects:8382
Article PK: 735606

If you're going to do all that, why bother using a DataWindow?

On 4 May 2005 02:07:08 -0700, "Albert" <albert.mo@msa.hinet.net>

wrote:

>Hi Roy,
> I think your point of view is not exactly true. I have tried use
>the Spy++ to trace the PB execution. Here are some
> interestings I found.
>
> Scenario :
> 1. I have a datawindow control called DW_2
> 2. The datawidow object of this control is
>d_po_buyer_query
> 3. There are two columns inside d_po_buyer_query
> Column 1 : old_buyer , integer
> Column 2 : new_buyer, integer
> 4. Both of these two columns edit property are DropDownDW
>
> While trace use the Spy++, There can find two edit controls window
>handles, See 001.jpg
> I am going to find a way to get these two window handles
>
> Then, I tried to trace the window messages of these two window
>controls.
> The window messages type I wanna trace are, See 002.jpg
> 1. Edit Field Type
> 2. DropDown List Type
>
> Here is the result of trace, See 003.jpg,
> If I change the text of the edit controls, the window messages are
>indeed sent to these two windows.
> So I am sure these two window handles are correspond to the
>old_buyer, new_buyer columns.
> If I can get the window handles of these two column controls, then
>I can call the SendMessage API
> to send WM_SETTEXT, or use these two handles on calling other
>window API.
>
>Albert Mo
>
>
>"Roy Kiesler [TeamSybase]" <roy.kiesler@teamsybase.com>
>???????:42783242$1@forums-2-dub...
>> There is no handle to get, really -- a DataWindow is nothing but a big
>> bitmap w/ a floating edit control on top (great patent).
>>
>> What exactly are you trying to accomplish? There are API calls you can
>> make, but it would help if we understood what it is you're trying to do
>> first.
>>
>> --
>> Roy
>>
>> Albert wrote:
>> > Hi,
>> >
>> > PowerBuilder Script function Handle( ) can return the window
>handle
>> > of a window control.
>> > But while I use this function on a column control inside a
>datawindow
>> > object, it return 0
>> >
>> > For example :
>> >
>> > Handle(dw_1.object.old_buyer) return 0
>> >
>> > It is not a valid window handle.
>> > How can we get the window handle of this type of object ?
>> >
>> >
>

Bruce Armstrong [TeamSybase]
http://www.teamsybase.com

Using DataWindow .NET with MSDN
http://go.microsoft.com/fwlink/?LinkId=43031

Seventh Annual Sybase Tools Seminar
http://seminar.powerobjects.com/

Vote for DataWindow.Net!
http://sys-con.com/dotnet/readerschoice2004/

TeamSybase blogs:
http://www.teamsybase.net/blogs

PowerBuilder Developer's Journal:
http://sys-con.com/pbdj/

Two 3rd party books on developing with PowerBuilder
http://www.pb9books.com?source=newsgroups

Need code sample? Check out CodeXchange:
http://www.codexchange.sybase.com

Preach the gospel at all times. If necessary, use words. - Francis of Assisi
http://www.needhim.org

---------------------------------------------------------------------
NOTE:

If you are using Google to post messages to the newsgroups, you will
*not* receive a reply. Messages posted through Google never reach the
Sybase newsgroup server, so we don't see them in order to respond to
them. You should post your question using a standard newsgroup reader
or the web based newsreaders at my.sybase.com or www.pfcguide.com.
Google is great for searching the Sybase newsgroups, but you can't post
to them from there.

---------------------------------------------------------------------
DISCLAIMER:

This newsgroup message is only intended for the recipient. Given that it
is a posting to a public newsgroup, that means if you can read this
message then you are the recipient. This message may contain information
that is confidential and protected from disclosure. And then again,
it may not.

Given that TeamSybase members are not employees of Sybase, the contents
of this message do not necessarily represent the views or policies of
Sybase. Given that TeamSybase is a diverse group of users of Sybase
products, the contents of this message do not necessarily represent the
views of a significant number of the members of TeamSybase. Given that the
author has multiple personalities and hears voices in his head, the contents
of this message do not necessarily represent his own views.


Albert Posted on 2005-05-04 14:08:50.0Z
Reply-To: "Albert" <albert.mo@msa.hinet.net>
From: "Albert" <albert.mo@msa.hinet.net>
Newsgroups: sybase.public.powerbuilder.objects
References: <427825e3$1@forums-1-dub> <42783242$1@forums-2-dub> <427890bc@forums-1-dub> <qhhh719f1dhmvfp3v5q8ktpkk75iu7fs81@4ax.com>
Subject: Re: Window handle of a column control inside a datawindow object ?
Lines: 184
X-Priority: 3
X-MSMail-Priority: Normal
X-Newsreader: Microsoft Outlook Express 6.00.3790.181
X-MimeOLE: Produced By Microsoft MimeOLE V6.00.3790.181
NNTP-Posting-Host: 218-168-140-117.dynamic.hinet.net
X-Original-NNTP-Posting-Host: 218-168-140-117.dynamic.hinet.net
Message-ID: <4278d772@forums-1-dub>
Date: 4 May 2005 07:08:50 -0700
X-Trace: forums-1-dub 1115215730 218.168.140.117 (4 May 2005 07:08:50 -0700)
X-Original-Trace: 4 May 2005 07:08:50 -0700, 218-168-140-117.dynamic.hinet.net
Path: forums-1-dub!not-for-mail
Xref: forums-1-dub sybase.public.powerbuilder.objects:8384
Article PK: 735605

Hi bruce,

I am not challenging about PB datawindow.... I just have met some
"DISCOVERIES" while in writing PB script.
Of course these may not be critical issues and things can be done in a
"STANDARD" and "EASY" way.
I even can not convice myself, "Fine, Let's do this in that way".
Believe me, no one want do things like that.
Using "WM_SETTEXT" to set text ?? I don't think so !!!

Here I just found some "PHENOMENA" and want to know the stories that
are not mentioned about in any
reference book or document as so far.
I can not tell you "WHY" and "WHAT" benefit it can provide. Windows
API like "WM_SETTEXT" are just
possible usage and mentioned in my previous thread as an example. But
this is not the "FOCUS". I just want
to know the story, that's all.

I am very glad with Roy's explaination about the picture of editor
control and bitmap. Although I know that
theory a long time ago, I am still very happy. Roy's reply said
"There is no handle to get". I think this is not
exact correct. So , I bring up my idea and evidence. I said "There is
an handle to get".

What are we doing here ?? We discuss with each other here. All
guru, experties, rookie discuss their problems
and ideas here. If you tell me that PB script can not get the window
handle, I won't be angry. I will said fine, then
if I have time, I will try to find a way to get the window handle in
PB script. If I don't have time, I will hold it until
someday I have got inspiration.

Furthermore, Sometimes things looks like trivial right now, may be a
critical clue in the future.

My english hand-writing is not good. I hope you can understand what I
am writing about.

Best Regards

Albert Mo


"Bruce Armstrong [TeamSybase]" <NOCANSPAM_bruce.armstrong@teamsybase.com>
???????:qhhh719f1dhmvfp3v5q8ktpkk75iu7fs81@4ax.com...

> If you're going to do all that, why bother using a DataWindow?
>
> On 4 May 2005 02:07:08 -0700, "Albert" <albert.mo@msa.hinet.net>
> wrote:
>
> >Hi Roy,
> > I think your point of view is not exactly true. I have tried
use
> >the Spy++ to trace the PB execution. Here are some
> > interestings I found.
> >
> > Scenario :
> > 1. I have a datawindow control called DW_2
> > 2. The datawidow object of this control is
> >d_po_buyer_query
> > 3. There are two columns inside d_po_buyer_query
> > Column 1 : old_buyer , integer
> > Column 2 : new_buyer, integer
> > 4. Both of these two columns edit property are DropDownDW
> >
> > While trace use the Spy++, There can find two edit controls
window
> >handles, See 001.jpg
> > I am going to find a way to get these two window handles
> >
> > Then, I tried to trace the window messages of these two window
> >controls.
> > The window messages type I wanna trace are, See 002.jpg
> > 1. Edit Field Type
> > 2. DropDown List Type
> >
> > Here is the result of trace, See 003.jpg,
> > If I change the text of the edit controls, the window messages
are
> >indeed sent to these two windows.
> > So I am sure these two window handles are correspond to the
> >old_buyer, new_buyer columns.
> > If I can get the window handles of these two column controls,
then
> >I can call the SendMessage API
> > to send WM_SETTEXT, or use these two handles on calling other
> >window API.
> >
> >Albert Mo
> >
> >
> >"Roy Kiesler [TeamSybase]" <roy.kiesler@teamsybase.com>
> >???????:42783242$1@forums-2-dub...
> >> There is no handle to get, really -- a DataWindow is nothing but a big
> >> bitmap w/ a floating edit control on top (great patent).
> >>
> >> What exactly are you trying to accomplish? There are API calls you can
> >> make, but it would help if we understood what it is you're trying to do
> >> first.
> >>
> >> --
> >> Roy
> >>
> >> Albert wrote:
> >> > Hi,
> >> >
> >> > PowerBuilder Script function Handle( ) can return the window
> >handle
> >> > of a window control.
> >> > But while I use this function on a column control inside a
> >datawindow
> >> > object, it return 0
> >> >
> >> > For example :
> >> >
> >> > Handle(dw_1.object.old_buyer) return 0
> >> >
> >> > It is not a valid window handle.
> >> > How can we get the window handle of this type of object ?
> >> >
> >> >
> >
>
> Bruce Armstrong [TeamSybase]
> http://www.teamsybase.com
>
> Using DataWindow .NET with MSDN
> http://go.microsoft.com/fwlink/?LinkId=43031
>
> Seventh Annual Sybase Tools Seminar
> http://seminar.powerobjects.com/
>
> Vote for DataWindow.Net!
> http://sys-con.com/dotnet/readerschoice2004/
>
> TeamSybase blogs:
> http://www.teamsybase.net/blogs
>
> PowerBuilder Developer's Journal:
> http://sys-con.com/pbdj/
>
> Two 3rd party books on developing with PowerBuilder
> http://www.pb9books.com?source=newsgroups
>
> Need code sample? Check out CodeXchange:
> http://www.codexchange.sybase.com
>
> Preach the gospel at all times. If necessary, use words. - Francis of
Assisi
> http://www.needhim.org
>
> ---------------------------------------------------------------------
> NOTE:
>
> If you are using Google to post messages to the newsgroups, you will
> *not* receive a reply. Messages posted through Google never reach the
> Sybase newsgroup server, so we don't see them in order to respond to
> them. You should post your question using a standard newsgroup reader
> or the web based newsreaders at my.sybase.com or www.pfcguide.com.
> Google is great for searching the Sybase newsgroups, but you can't post
> to them from there.
>
> ---------------------------------------------------------------------
> DISCLAIMER:
>
> This newsgroup message is only intended for the recipient. Given that it
> is a posting to a public newsgroup, that means if you can read this
> message then you are the recipient. This message may contain information
> that is confidential and protected from disclosure. And then again,
> it may not.
>
> Given that TeamSybase members are not employees of Sybase, the contents
> of this message do not necessarily represent the views or policies of
> Sybase. Given that TeamSybase is a diverse group of users of Sybase
> products, the contents of this message do not necessarily represent the
> views of a significant number of the members of TeamSybase. Given that
the
> author has multiple personalities and hears voices in his head, the
contents
> of this message do not necessarily represent his own views.


Jim O'Neil [Sybase] Posted on 2005-05-04 13:21:23.0Z
From: "Jim O'Neil [Sybase]" <joneil_at_sybase_dot_com>
Newsgroups: sybase.public.powerbuilder.objects
Subject: Re: Window handle of a column control inside a datawindow object ?
Message-ID: <bdih719guavfncbavshoirj0k4b262g05n@4ax.com>
References: <427825e3$1@forums-1-dub> <42783242$1@forums-2-dub> <427890bc@forums-1-dub>
X-Newsreader: Forte Agent 2.0/32.652
MIME-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: 7bit
NNTP-Posting-Host: joneilw2k.sybase.com
X-Original-NNTP-Posting-Host: joneilw2k.sybase.com
Date: 4 May 2005 06:21:23 -0700
X-Trace: forums-1-dub 1115212883 10.18.43.183 (4 May 2005 06:21:23 -0700)
X-Original-Trace: 4 May 2005 06:21:23 -0700, joneilw2k.sybase.com
Lines: 84
X-Authenticated-User: teamsybase
Path: forums-1-dub!not-for-mail
Xref: forums-1-dub sybase.public.powerbuilder.objects:8383
Article PK: 735608

Conceptually, Roy is correct. Think of the datawindow as a bitmap
with a floating edit control. As you discovered using SPY++ though
there can be multiple Windows controls. What you are seeing is the
fact that a separate Window control is create for each distinct edit
style on the datawindow. For example, if I have two columns that both
have an identical style of Edit, then I will see one Edit control.
If, however, I put a format mask on one of those columns and not the
other, then I'll see two Edit controls in Spy++. So while there may
be strictly more than one Edit control that floats over the bitmap, it
is NOT one per column.


On 4 May 2005 02:07:08 -0700, "Albert" <albert.mo@msa.hinet.net>

wrote:

>Hi Roy,
> I think your point of view is not exactly true. I have tried use
>the Spy++ to trace the PB execution. Here are some
> interestings I found.
>
> Scenario :
> 1. I have a datawindow control called DW_2
> 2. The datawidow object of this control is
>d_po_buyer_query
> 3. There are two columns inside d_po_buyer_query
> Column 1 : old_buyer , integer
> Column 2 : new_buyer, integer
> 4. Both of these two columns edit property are DropDownDW
>
> While trace use the Spy++, There can find two edit controls window
>handles, See 001.jpg
> I am going to find a way to get these two window handles
>
> Then, I tried to trace the window messages of these two window
>controls.
> The window messages type I wanna trace are, See 002.jpg
> 1. Edit Field Type
> 2. DropDown List Type
>
> Here is the result of trace, See 003.jpg,
> If I change the text of the edit controls, the window messages are
>indeed sent to these two windows.
> So I am sure these two window handles are correspond to the
>old_buyer, new_buyer columns.
> If I can get the window handles of these two column controls, then
>I can call the SendMessage API
> to send WM_SETTEXT, or use these two handles on calling other
>window API.
>
>Albert Mo
>
>
>"Roy Kiesler [TeamSybase]" <roy.kiesler@teamsybase.com>
>???????:42783242$1@forums-2-dub...
>> There is no handle to get, really -- a DataWindow is nothing but a big
>> bitmap w/ a floating edit control on top (great patent).
>>
>> What exactly are you trying to accomplish? There are API calls you can
>> make, but it would help if we understood what it is you're trying to do
>> first.
>>
>> --
>> Roy
>>
>> Albert wrote:
>> > Hi,
>> >
>> > PowerBuilder Script function Handle( ) can return the window
>handle
>> > of a window control.
>> > But while I use this function on a column control inside a
>datawindow
>> > object, it return 0
>> >
>> > For example :
>> >
>> > Handle(dw_1.object.old_buyer) return 0
>> >
>> > It is not a valid window handle.
>> > How can we get the window handle of this type of object ?
>> >
>> >
>


Albert Posted on 2005-05-04 14:24:03.0Z
Reply-To: "Albert" <albert.mo@msa.hinet.net>
From: "Albert" <albert.mo@msa.hinet.net>
Newsgroups: sybase.public.powerbuilder.objects
References: <427825e3$1@forums-1-dub> <42783242$1@forums-2-dub> <427890bc@forums-1-dub> <bdih719guavfncbavshoirj0k4b262g05n@4ax.com>
Subject: Re: Window handle of a column control inside a datawindow object ?
Lines: 104
X-Priority: 3
X-MSMail-Priority: Normal
X-Newsreader: Microsoft Outlook Express 6.00.3790.181
X-MimeOLE: Produced By Microsoft MimeOLE V6.00.3790.181
NNTP-Posting-Host: 218-168-140-117.dynamic.hinet.net
X-Original-NNTP-Posting-Host: 218-168-140-117.dynamic.hinet.net
Message-ID: <4278db03@forums-1-dub>
Date: 4 May 2005 07:24:03 -0700
X-Trace: forums-1-dub 1115216643 218.168.140.117 (4 May 2005 07:24:03 -0700)
X-Original-Trace: 4 May 2005 07:24:03 -0700, 218-168-140-117.dynamic.hinet.net
Path: forums-1-dub!not-for-mail
Xref: forums-1-dub sybase.public.powerbuilder.objects:8385
Article PK: 735609

Jim
"a separate Window control is create for each distinct edit style on
the datawindow"
"it is NOT one per column."

Here is another note I found.

Even the edit style is the same, if the referenced drop down datawindow
object is not the same,
there would two distinct window edit controls created for each column.


"Jim O'Neil [Sybase]" <joneil_at_sybase_dot_com>
???????:bdih719guavfncbavshoirj0k4b262g05n@4ax.com...

> Conceptually, Roy is correct. Think of the datawindow as a bitmap
> with a floating edit control. As you discovered using SPY++ though
> there can be multiple Windows controls. What you are seeing is the
> fact that a separate Window control is create for each distinct edit
> style on the datawindow. For example, if I have two columns that both
> have an identical style of Edit, then I will see one Edit control.
> If, however, I put a format mask on one of those columns and not the
> other, then I'll see two Edit controls in Spy++. So while there may
> be strictly more than one Edit control that floats over the bitmap, it
> is NOT one per column.
>
>
> On 4 May 2005 02:07:08 -0700, "Albert" <albert.mo@msa.hinet.net>
> wrote:
>
> >Hi Roy,
> > I think your point of view is not exactly true. I have tried
use
> >the Spy++ to trace the PB execution. Here are some
> > interestings I found.
> >
> > Scenario :
> > 1. I have a datawindow control called DW_2
> > 2. The datawidow object of this control is
> >d_po_buyer_query
> > 3. There are two columns inside d_po_buyer_query
> > Column 1 : old_buyer , integer
> > Column 2 : new_buyer, integer
> > 4. Both of these two columns edit property are DropDownDW
> >
> > While trace use the Spy++, There can find two edit controls
window
> >handles, See 001.jpg
> > I am going to find a way to get these two window handles
> >
> > Then, I tried to trace the window messages of these two window
> >controls.
> > The window messages type I wanna trace are, See 002.jpg
> > 1. Edit Field Type
> > 2. DropDown List Type
> >
> > Here is the result of trace, See 003.jpg,
> > If I change the text of the edit controls, the window messages
are
> >indeed sent to these two windows.
> > So I am sure these two window handles are correspond to the
> >old_buyer, new_buyer columns.
> > If I can get the window handles of these two column controls,
then
> >I can call the SendMessage API
> > to send WM_SETTEXT, or use these two handles on calling other
> >window API.
> >
> >Albert Mo
> >
> >
> >"Roy Kiesler [TeamSybase]" <roy.kiesler@teamsybase.com>
> >???????:42783242$1@forums-2-dub...
> >> There is no handle to get, really -- a DataWindow is nothing but a big
> >> bitmap w/ a floating edit control on top (great patent).
> >>
> >> What exactly are you trying to accomplish? There are API calls you can
> >> make, but it would help if we understood what it is you're trying to do
> >> first.
> >>
> >> --
> >> Roy
> >>
> >> Albert wrote:
> >> > Hi,
> >> >
> >> > PowerBuilder Script function Handle( ) can return the window
> >handle
> >> > of a window control.
> >> > But while I use this function on a column control inside a
> >datawindow
> >> > object, it return 0
> >> >
> >> > For example :
> >> >
> >> > Handle(dw_1.object.old_buyer) return 0
> >> >
> >> > It is not a valid window handle.
> >> > How can we get the window handle of this type of object ?
> >> >
> >> >
> >
>


Jim O'Neil [Sybase] Posted on 2005-05-04 19:55:11.0Z
From: "Jim O'Neil [Sybase]" <joneil_at_sybase_dot_com>
Newsgroups: sybase.public.powerbuilder.objects
Subject: Re: Window handle of a column control inside a datawindow object ?
Message-ID: <j0ai71l5clhhdmj403h1lfr89tvq02jtjp@4ax.com>
References: <427825e3$1@forums-1-dub> <42783242$1@forums-2-dub> <427890bc@forums-1-dub> <bdih719guavfncbavshoirj0k4b262g05n@4ax.com> <4278db03@forums-1-dub>
X-Newsreader: Forte Agent 2.0/32.652
MIME-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: 7bit
X-Original-NNTP-Posting-Host: joneilw2k.sybase.com
X-Original-Trace: 4 May 2005 12:55:07 -0700, joneilw2k.sybase.com
Lines: 117
X-Original-NNTP-Posting-Host: forums-2-dub.sybase.com
X-Original-Trace: 4 May 2005 12:55:10 -0700, forums-2-dub.sybase.com
NNTP-Posting-Host: forums-master.sybase.com
X-Original-NNTP-Posting-Host: forums-master.sybase.com
Date: 4 May 2005 12:55:11 -0700
X-Trace: forums-1-dub 1115236511 10.22.108.75 (4 May 2005 12:55:11 -0700)
X-Original-Trace: 4 May 2005 12:55:11 -0700, forums-master.sybase.com
X-Authenticated-User: ngsysop
Path: forums-1-dub!not-for-mail
Xref: forums-1-dub sybase.public.powerbuilder.objects:8389
Article PK: 735614

correct, differences in certain properties will cause multiple edit
controls, whereas differences in other properties may not. For
instance, two simple columns with different border styles don't cause
two edit controls to be created, but if the fomat string differs, then
two separate controls ARE created. Don't ask me for the rules though,
they are going to be buriedin the source code <g>. Additionally, any
implementation you might provide that relies on these internals would
be a very dangerous thing to exploit. There is no guarantee that
things will not change.

On 4 May 2005 07:24:03 -0700, "Albert" <albert.mo@msa.hinet.net>

wrote:

>Jim
> "a separate Window control is create for each distinct edit style on
>the datawindow"
> "it is NOT one per column."
>
> Here is another note I found.
>
> Even the edit style is the same, if the referenced drop down datawindow
>object is not the same,
> there would two distinct window edit controls created for each column.
>
>
>"Jim O'Neil [Sybase]" <joneil_at_sybase_dot_com>
>???????:bdih719guavfncbavshoirj0k4b262g05n@4ax.com...
>> Conceptually, Roy is correct. Think of the datawindow as a bitmap
>> with a floating edit control. As you discovered using SPY++ though
>> there can be multiple Windows controls. What you are seeing is the
>> fact that a separate Window control is create for each distinct edit
>> style on the datawindow. For example, if I have two columns that both
>> have an identical style of Edit, then I will see one Edit control.
>> If, however, I put a format mask on one of those columns and not the
>> other, then I'll see two Edit controls in Spy++. So while there may
>> be strictly more than one Edit control that floats over the bitmap, it
>> is NOT one per column.
>>
>>
>> On 4 May 2005 02:07:08 -0700, "Albert" <albert.mo@msa.hinet.net>
>> wrote:
>>
>> >Hi Roy,
>> > I think your point of view is not exactly true. I have tried
>use
>> >the Spy++ to trace the PB execution. Here are some
>> > interestings I found.
>> >
>> > Scenario :
>> > 1. I have a datawindow control called DW_2
>> > 2. The datawidow object of this control is
>> >d_po_buyer_query
>> > 3. There are two columns inside d_po_buyer_query
>> > Column 1 : old_buyer , integer
>> > Column 2 : new_buyer, integer
>> > 4. Both of these two columns edit property are DropDownDW
>> >
>> > While trace use the Spy++, There can find two edit controls
>window
>> >handles, See 001.jpg
>> > I am going to find a way to get these two window handles
>> >
>> > Then, I tried to trace the window messages of these two window
>> >controls.
>> > The window messages type I wanna trace are, See 002.jpg
>> > 1. Edit Field Type
>> > 2. DropDown List Type
>> >
>> > Here is the result of trace, See 003.jpg,
>> > If I change the text of the edit controls, the window messages
>are
>> >indeed sent to these two windows.
>> > So I am sure these two window handles are correspond to the
>> >old_buyer, new_buyer columns.
>> > If I can get the window handles of these two column controls,
>then
>> >I can call the SendMessage API
>> > to send WM_SETTEXT, or use these two handles on calling other
>> >window API.
>> >
>> >Albert Mo
>> >
>> >
>> >"Roy Kiesler [TeamSybase]" <roy.kiesler@teamsybase.com>
>> >???????:42783242$1@forums-2-dub...
>> >> There is no handle to get, really -- a DataWindow is nothing but a big
>> >> bitmap w/ a floating edit control on top (great patent).
>> >>
>> >> What exactly are you trying to accomplish? There are API calls you can
>> >> make, but it would help if we understood what it is you're trying to do
>> >> first.
>> >>
>> >> --
>> >> Roy
>> >>
>> >> Albert wrote:
>> >> > Hi,
>> >> >
>> >> > PowerBuilder Script function Handle( ) can return the window
>> >handle
>> >> > of a window control.
>> >> > But while I use this function on a column control inside a
>> >datawindow
>> >> > object, it return 0
>> >> >
>> >> > For example :
>> >> >
>> >> > Handle(dw_1.object.old_buyer) return 0
>> >> >
>> >> > It is not a valid window handle.
>> >> > How can we get the window handle of this type of object ?
>> >> >
>> >> >
>> >
>>
>


Roy Kiesler [TeamSybase] Posted on 2005-05-05 02:32:51.0Z
From: "Roy Kiesler [TeamSybase]" <roy.kiesler@teamsybase.com>
Reply-To: SPAM_FRE_roy.kiesler@teamsybase.com
Organization: TeamSybase
User-Agent: Mozilla Thunderbird 1.0.2 (Windows/20050317)
X-Accept-Language: en-us, en
MIME-Version: 1.0
Newsgroups: sybase.public.powerbuilder.objects
Subject: Re: Window handle of a column control inside a datawindow object ?
References: <427825e3$1@forums-1-dub> <42783242$1@forums-2-dub> <427890bc@forums-1-dub> <bdih719guavfncbavshoirj0k4b262g05n@4ax.com> <4278db03@forums-1-dub>
In-Reply-To: <4278db03@forums-1-dub>
Content-Type: text/plain; charset=ISO-8859-1; format=flowed
Content-Transfer-Encoding: 7bit
NNTP-Posting-Host: 65.162.87.80
X-Original-NNTP-Posting-Host: 65.162.87.80
Message-ID: <427985d3@forums-1-dub>
Date: 4 May 2005 19:32:51 -0700
X-Trace: forums-1-dub 1115260371 65.162.87.80 (4 May 2005 19:32:51 -0700)
X-Original-Trace: 4 May 2005 19:32:51 -0700, 65.162.87.80
Lines: 128
X-Authenticated-User: TeamSybase
Path: forums-1-dub!not-for-mail
Xref: forums-1-dub sybase.public.powerbuilder.objects:8391
Article PK: 735616

Semantics and computer science aside, I still don't quite understand
what it is that you are trying to do, and whu you feel that you need to
use WM_SETTEXT message rather than SetItem() to change the value of any
given column in your datawindow?

--
Roy

Albert wrote:
> Jim
> "a separate Window control is create for each distinct edit style on
> the datawindow"
> "it is NOT one per column."
>
> Here is another note I found.
>
> Even the edit style is the same, if the referenced drop down datawindow
> object is not the same,
> there would two distinct window edit controls created for each column.
>
>
> "Jim O'Neil [Sybase]" <joneil_at_sybase_dot_com>
> ???????:bdih719guavfncbavshoirj0k4b262g05n@4ax.com...
>
>>Conceptually, Roy is correct. Think of the datawindow as a bitmap
>>with a floating edit control. As you discovered using SPY++ though
>>there can be multiple Windows controls. What you are seeing is the
>>fact that a separate Window control is create for each distinct edit
>>style on the datawindow. For example, if I have two columns that both
>>have an identical style of Edit, then I will see one Edit control.
>>If, however, I put a format mask on one of those columns and not the
>>other, then I'll see two Edit controls in Spy++. So while there may
>>be strictly more than one Edit control that floats over the bitmap, it
>>is NOT one per column.
>>
>>
>> On 4 May 2005 02:07:08 -0700, "Albert" <albert.mo@msa.hinet.net>
>>wrote:
>>
>>
>>>Hi Roy,
>>> I think your point of view is not exactly true. I have tried
>
> use
>
>>>the Spy++ to trace the PB execution. Here are some
>>> interestings I found.
>>>
>>> Scenario :
>>> 1. I have a datawindow control called DW_2
>>> 2. The datawidow object of this control is
>>>d_po_buyer_query
>>> 3. There are two columns inside d_po_buyer_query
>>> Column 1 : old_buyer , integer
>>> Column 2 : new_buyer, integer
>>> 4. Both of these two columns edit property are DropDownDW
>>>
>>> While trace use the Spy++, There can find two edit controls
>
> window
>
>>>handles, See 001.jpg
>>> I am going to find a way to get these two window handles
>>>
>>> Then, I tried to trace the window messages of these two window
>>>controls.
>>> The window messages type I wanna trace are, See 002.jpg
>>> 1. Edit Field Type
>>> 2. DropDown List Type
>>>
>>> Here is the result of trace, See 003.jpg,
>>> If I change the text of the edit controls, the window messages
>
> are
>
>>>indeed sent to these two windows.
>>> So I am sure these two window handles are correspond to the
>>>old_buyer, new_buyer columns.
>>> If I can get the window handles of these two column controls,
>
> then
>
>>>I can call the SendMessage API
>>> to send WM_SETTEXT, or use these two handles on calling other
>>>window API.
>>>
>>>Albert Mo
>>>
>>>
>>>"Roy Kiesler [TeamSybase]" <roy.kiesler@teamsybase.com>
>>>???????:42783242$1@forums-2-dub...
>>>
>>>>There is no handle to get, really -- a DataWindow is nothing but a big
>>>>bitmap w/ a floating edit control on top (great patent).
>>>>
>>>>What exactly are you trying to accomplish? There are API calls you can
>>>>make, but it would help if we understood what it is you're trying to do
>>>>first.
>>>>
>>>>--
>>>>Roy
>>>>
>>>>Albert wrote:
>>>>
>>>>>Hi,
>>>>>
>>>>> PowerBuilder Script function Handle( ) can return the window
>>>
>>>handle
>>>
>>>>>of a window control.
>>>>> But while I use this function on a column control inside a
>>>
>>>datawindow
>>>
>>>>>object, it return 0
>>>>>
>>>>> For example :
>>>>>
>>>>> Handle(dw_1.object.old_buyer) return 0
>>>>>
>>>>> It is not a valid window handle.
>>>>> How can we get the window handle of this type of object ?
>>>>>
>>>>>
>>>
>
>


Ken Metz Posted on 2005-05-10 19:15:53.0Z
From: "Ken Metz" <kenneth.metz@kcpl.com>
Newsgroups: sybase.public.powerbuilder.objects
References: <427825e3$1@forums-1-dub> <42783242$1@forums-2-dub> <427890bc@forums-1-dub> <bdih719guavfncbavshoirj0k4b262g05n@4ax.com> <4278db03@forums-1-dub> <427985d3@forums-1-dub>
Subject: Re: Window handle of a column control inside a datawindow object ?
Lines: 150
X-Priority: 3
X-MSMail-Priority: Normal
X-Newsreader: Microsoft Outlook Express 6.00.2800.1409
X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1409
X-Original-NNTP-Posting-Host: 144.73.47.70
Message-ID: <42810865$1@forums-2-dub>
X-Original-Trace: 10 May 2005 12:15:49 -0700, 144.73.47.70
X-Original-NNTP-Posting-Host: forums-2-dub.sybase.com
X-Original-Trace: 10 May 2005 12:15:50 -0700, forums-2-dub.sybase.com
NNTP-Posting-Host: forums-master.sybase.com
X-Original-NNTP-Posting-Host: forums-master.sybase.com
Date: 10 May 2005 12:15:53 -0700
X-Trace: forums-1-dub 1115752553 10.22.108.75 (10 May 2005 12:15:53 -0700)
X-Original-Trace: 10 May 2005 12:15:53 -0700, forums-master.sybase.com
X-Authenticated-User: ngsysop
Path: forums-1-dub!not-for-mail
Xref: forums-1-dub sybase.public.powerbuilder.objects:8397
Article PK: 735620

The way I understand it, to the Windows OS, all the control objects for
which a handke is found are 'just windows',
and thus part of the Windows OS windows heighary.

I guess we could get all the handles and process all the messages and ...
But, this would be too much coding to be useful, so PowerBuilder does it for
us in the background.

Ok, way more than I know, but he can play with this:

http://vbnet.mvps.org/index.html?code/system/FindWindowLikesimple.html

Ken Metz

"Roy Kiesler [TeamSybase]" <roy.kiesler@teamsybase.com> wrote in message
news:427985d3@forums-1-dub...
> Semantics and computer science aside, I still don't quite understand
> what it is that you are trying to do, and whu you feel that you need to
> use WM_SETTEXT message rather than SetItem() to change the value of any
> given column in your datawindow?
>
> --
> Roy
>
> Albert wrote:
> > Jim
> > "a separate Window control is create for each distinct edit style
on
> > the datawindow"
> > "it is NOT one per column."
> >
> > Here is another note I found.
> >
> > Even the edit style is the same, if the referenced drop down
datawindow
> > object is not the same,
> > there would two distinct window edit controls created for each
column.
> >
> >
> > "Jim O'Neil [Sybase]" <joneil_at_sybase_dot_com>
> > ???????:bdih719guavfncbavshoirj0k4b262g05n@4ax.com...
> >
> >>Conceptually, Roy is correct. Think of the datawindow as a bitmap
> >>with a floating edit control. As you discovered using SPY++ though
> >>there can be multiple Windows controls. What you are seeing is the
> >>fact that a separate Window control is create for each distinct edit
> >>style on the datawindow. For example, if I have two columns that both
> >>have an identical style of Edit, then I will see one Edit control.
> >>If, however, I put a format mask on one of those columns and not the
> >>other, then I'll see two Edit controls in Spy++. So while there may
> >>be strictly more than one Edit control that floats over the bitmap, it
> >>is NOT one per column.
> >>
> >>
> >> On 4 May 2005 02:07:08 -0700, "Albert" <albert.mo@msa.hinet.net>
> >>wrote:
> >>
> >>
> >>>Hi Roy,
> >>> I think your point of view is not exactly true. I have tried
> >
> > use
> >
> >>>the Spy++ to trace the PB execution. Here are some
> >>> interestings I found.
> >>>
> >>> Scenario :
> >>> 1. I have a datawindow control called DW_2
> >>> 2. The datawidow object of this control is
> >>>d_po_buyer_query
> >>> 3. There are two columns inside d_po_buyer_query
> >>> Column 1 : old_buyer , integer
> >>> Column 2 : new_buyer, integer
> >>> 4. Both of these two columns edit property are DropDownDW
> >>>
> >>> While trace use the Spy++, There can find two edit controls
> >
> > window
> >
> >>>handles, See 001.jpg
> >>> I am going to find a way to get these two window handles
> >>>
> >>> Then, I tried to trace the window messages of these two window
> >>>controls.
> >>> The window messages type I wanna trace are, See 002.jpg
> >>> 1. Edit Field Type
> >>> 2. DropDown List Type
> >>>
> >>> Here is the result of trace, See 003.jpg,
> >>> If I change the text of the edit controls, the window messages
> >
> > are
> >
> >>>indeed sent to these two windows.
> >>> So I am sure these two window handles are correspond to the
> >>>old_buyer, new_buyer columns.
> >>> If I can get the window handles of these two column controls,
> >
> > then
> >
> >>>I can call the SendMessage API
> >>> to send WM_SETTEXT, or use these two handles on calling other
> >>>window API.
> >>>
> >>>Albert Mo
> >>>
> >>>
> >>>"Roy Kiesler [TeamSybase]" <roy.kiesler@teamsybase.com>
> >>>???????:42783242$1@forums-2-dub...
> >>>
> >>>>There is no handle to get, really -- a DataWindow is nothing but a big
> >>>>bitmap w/ a floating edit control on top (great patent).
> >>>>
> >>>>What exactly are you trying to accomplish? There are API calls you can
> >>>>make, but it would help if we understood what it is you're trying to
do
> >>>>first.
> >>>>
> >>>>--
> >>>>Roy
> >>>>
> >>>>Albert wrote:
> >>>>
> >>>>>Hi,
> >>>>>
> >>>>> PowerBuilder Script function Handle( ) can return the window
> >>>
> >>>handle
> >>>
> >>>>>of a window control.
> >>>>> But while I use this function on a column control inside a
> >>>
> >>>datawindow
> >>>
> >>>>>object, it return 0
> >>>>>
> >>>>> For example :
> >>>>>
> >>>>> Handle(dw_1.object.old_buyer) return 0
> >>>>>
> >>>>> It is not a valid window handle.
> >>>>> How can we get the window handle of this type of object ?
> >>>>>
> >>>>>
> >>>
> >
> >