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.

Transparent DW's

6 posts in Objects Last posting was on 2005-02-10 19:29:01.0Z
Eric Ullman Posted on 2005-01-25 22:12:12.0Z
From: "Eric Ullman" <ullman2k4@hotmail.com>
Newsgroups: sybase.public.powerbuilder.objects
Subject: Transparent DW's
Lines: 13
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
NNTP-Posting-Host: asconline.com
X-Original-NNTP-Posting-Host: asconline.com
Message-ID: <41f6c43c$1@forums-1-dub>
Date: 25 Jan 2005 14:12:12 -0800
X-Trace: forums-1-dub 1106691132 68.21.225.178 (25 Jan 2005 14:12:12 -0800)
X-Original-Trace: 25 Jan 2005 14:12:12 -0800, asconline.com
Path: forums-1-dub!not-for-mail
Xref: forums-1-dub sybase.public.powerbuilder.objects:8196
Article PK: 735461

Version: PB 9.0.2 Build 7509

Hello,
I have a standard visual object that is inherited from datawindow. I
want to place this control onto
a window that contains a picture in the background. I want to be able to
see the picture through the
datawindow(transparent). Is there any way to do this?

Thanks in advance,
Eric


Philip Salgannik Posted on 2005-01-26 04:52:53.0Z
From: "Philip Salgannik" <philemaxNOSPAM@comcast.net>
Newsgroups: sybase.public.powerbuilder.objects
References: <41f6c43c$1@forums-1-dub>
Subject: Re: Transparent DW's
Lines: 27
X-Priority: 3
X-MSMail-Priority: Normal
X-Newsreader: Microsoft Outlook Express 6.00.2900.2180
X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.2180
X-RFC2646: Format=Flowed; Original
X-Original-NNTP-Posting-Host: h005018067b6f.ne.client2.attbi.com
Message-ID: <41f72221$1@forums-2-dub>
X-Original-Trace: 25 Jan 2005 20:52:49 -0800, h005018067b6f.ne.client2.attbi.com
X-Original-NNTP-Posting-Host: forums-2-dub.sybase.com
X-Original-Trace: 25 Jan 2005 20:52:50 -0800, forums-2-dub.sybase.com
NNTP-Posting-Host: forums-master.sybase.com
X-Original-NNTP-Posting-Host: forums-master.sybase.com
Date: 25 Jan 2005 20:52:53 -0800
X-Trace: forums-1-dub 1106715173 10.22.108.75 (25 Jan 2005 20:52:53 -0800)
X-Original-Trace: 25 Jan 2005 20:52:53 -0800, forums-master.sybase.com
X-Authenticated-User: ngsysop
Path: forums-1-dub!not-for-mail
Xref: forums-1-dub sybase.public.powerbuilder.objects:8197
Article PK: 735463

Not the way you want it.
About the only thing you can do is put the picture inside the datawindow...

--
This is a FAQ, read Help, then search
www.groups.google.com/advanced_group_search

pbm_thisusuallydoesnothelp:-))
Philip Salgannik

"Eric Ullman" <ullman2k4@hotmail.com> wrote in message
news:41f6c43c$1@forums-1-dub...
> Version: PB 9.0.2 Build 7509
>
> Hello,
> I have a standard visual object that is inherited from datawindow. I
> want to place this control onto
> a window that contains a picture in the background. I want to be able to
> see the picture through the
> datawindow(transparent). Is there any way to do this?
>
> Thanks in advance,
> Eric
>
>


Chris Pollach Posted on 2005-01-26 13:08:39.0Z
From: "Chris Pollach" <PollachC@SCC-CSC.gc.ca>
Newsgroups: sybase.public.powerbuilder.objects
References: <41f6c43c$1@forums-1-dub> <41f72221$1@forums-2-dub>
Subject: Re: Transparent DW's
Lines: 36
Organization: The Supreme Court of Canada
X-Priority: 3
X-MSMail-Priority: Normal
X-Newsreader: Microsoft Outlook Express 6.00.2800.1478
X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1478
X-Original-NNTP-Posting-Host: firewall.scc-csc.gc.ca
Message-ID: <41f79653$1@forums-2-dub>
X-Original-Trace: 26 Jan 2005 05:08:35 -0800, firewall.scc-csc.gc.ca
X-Original-NNTP-Posting-Host: forums-2-dub.sybase.com
X-Original-Trace: 26 Jan 2005 05:08:36 -0800, forums-2-dub.sybase.com
NNTP-Posting-Host: forums-master.sybase.com
X-Original-NNTP-Posting-Host: forums-master.sybase.com
Date: 26 Jan 2005 05:08:39 -0800
X-Trace: forums-1-dub 1106744919 10.22.108.75 (26 Jan 2005 05:08:39 -0800)
X-Original-Trace: 26 Jan 2005 05:08:39 -0800, forums-master.sybase.com
X-Authenticated-User: ngsysop
Path: forums-1-dub!not-for-mail
Xref: forums-1-dub sybase.public.powerbuilder.objects:8198
Article PK: 735465

And ... make sure the picture is in the "Background" layer (note: this is
not the same as Front to Back).

"Philip Salgannik" <philemaxNOSPAM@comcast.net> wrote in message
news:41f72221$1@forums-2-dub...
> Not the way you want it.
> About the only thing you can do is put the picture inside the
datawindow...
>
> --
> This is a FAQ, read Help, then search
> www.groups.google.com/advanced_group_search
>
> pbm_thisusuallydoesnothelp:-))
> Philip Salgannik
>
> "Eric Ullman" <ullman2k4@hotmail.com> wrote in message
> news:41f6c43c$1@forums-1-dub...
> > Version: PB 9.0.2 Build 7509
> >
> > Hello,
> > I have a standard visual object that is inherited from datawindow. I
> > want to place this control onto
> > a window that contains a picture in the background. I want to be able
to
> > see the picture through the
> > datawindow(transparent). Is there any way to do this?
> >
> > Thanks in advance,
> > Eric
> >
> >
>
>


Eric Ullman Posted on 2005-01-28 16:18:12.0Z
From: "Eric Ullman" <ullman2k4@hotmail.com>
Newsgroups: sybase.public.powerbuilder.objects
References: <41f6c43c$1@forums-1-dub> <41f72221$1@forums-2-dub> <41f79653$1@forums-2-dub>
Subject: Re: Transparent DW's
Lines: 303
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
NNTP-Posting-Host: asconline.com
X-Original-NNTP-Posting-Host: asconline.com
Message-ID: <41fa65c4$1@forums-1-dub>
Date: 28 Jan 2005 08:18:12 -0800
X-Trace: forums-1-dub 1106929092 68.21.225.178 (28 Jan 2005 08:18:12 -0800)
X-Original-Trace: 28 Jan 2005 08:18:12 -0800, asconline.com
Path: forums-1-dub!not-for-mail
Xref: forums-1-dub sybase.public.powerbuilder.objects:8202
Article PK: 735469

Re-post: One more time....



Thought I'd post it one more time, to see if there are any takers?



Thanks,

Eric



-----Original Message-----

From: Pollach Chris [mailto:PollachC@scc-csc.gc.ca]

Sent: Wednesday, January 26, 2005 9:37 AM

To: Eric Ullman

Subject: RE: Transparent DW's





Eric;



That is what I am using in PB 10.1 and in PocketBuilder 2.0.1. It
works for the ST objects and your approach for the DWO Modify ( ) would have
been my approach as well - looks like you and I were thinking about the same
thing. However, the DWO processing model is a little more out of our control
I think.



The only other thought would be to create a super parent DW and map
all the other 47 DWO's to it as ShareData( )'s from a DataStore (where
updating is required). Then, since you would only have 1 DW Control .. the
background image would be easy to handle. However, this is a major
re-engineering of that dialog.



Hopefully, some one else might post another approach to the newsgroup.



Regards ... Chris





-----Original Message-----

From: Eric Ullman [mailto:ullmane@asconline.com]

Sent: Wednesday, January 26, 2005 9:30 AM

To: Pollach Chris

Subject: RE: Transparent DW's





Chris,

I did download an example of a transparent static text object which

maps a user event(ue_paint) to the pbm_paint event but it was written in a

previous version of PowerBuilder? I did try implementing this into my code

with no prevail, but I may have missed something. All I did was add the

code:



ll_color = 2^29

dw_control.modify("dataWindow.color='"+string(ll_color)+"'")



to the constructor and mapped a custom event(pbm_paint) in the dw object
with

the code:



if isValid(this) then

if ib_painting then return 0

ib_painting = true

this.visible = false

do while yield() ; loop

this.visible = true

ib_painting=false

end if



return 0



If the code you have contains additional info or examples, please send

it over, I'm willing to try anything.



Thanks,

Eric





-----Original Message-----

From: Pollach Chris [mailto:PollachC@scc-csc.gc.ca]

Sent: Wednesday, January 26, 2005 9:14 AM

To: Eric Ullman

Subject: RE: Transparent DW's





Eric;



I do have some sample code here at work. However it is PB 10.1 and
only for a statictext object. You would have to reverse engineer this back
to PB 9.0.2 and adapt the code in the ST ancestor to set the background
colour of the DW Object in the DW Control.



Thoughts?



Regards ... Chris







-----Original Message-----

From: Eric Ullman [mailto:ullmane@asconline.com]

Sent: Wednesday, January 26, 2005 9:00 AM

To: Pollach Chris

Subject: RE: Transparent DW's





Hey Chris,

Thanks for responding. PB Version 9.0.2 Build 7509. I was

looking into using windows dll's, user32.dll, gdi32.dll, but I don't

have too much time to research it. If you could dig up that transparent

script that would be much appreciated.



Thanks again,

Eric



-----Original Message-----

From: Pollach Chris [mailto:PollachC@scc-csc.gc.ca]

Sent: Wednesday, January 26, 2005 8:54 AM

To: Eric Ullman

Subject: RE: Transparent DW's





Eric;



Ouch .. 42 DW Controls!



I do have some example PB script that makes any control on a window
transparent. However, I can not remember what version of PB it is in (have
to de-archive it). What version of PB are you running?



Regards ... Chris





-----Original Message-----

From: Eric Ullman [mailto:ullmane@asconline.com]

Sent: Wednesday, January 26, 2005 8:35 AM

To: Pollach Chris

Subject: Re: Transparent DW's





Okay, that is what I thought. The only problem is that there are

42 datawindows on this one window, all of which I wanted to make

transparent to the picture in the background. I guess I'll have to

do without it. Thanks for your help.

"Chris Pollach" <PollachC@SCC-CSC.gc.ca> wrote in message
news:41f79653$1@forums-2-dub...
> And ... make sure the picture is in the "Background" layer (note: this is
> not the same as Front to Back).
>
> "Philip Salgannik" <philemaxNOSPAM@comcast.net> wrote in message
> news:41f72221$1@forums-2-dub...
> > Not the way you want it.
> > About the only thing you can do is put the picture inside the
> datawindow...
> >
> > --
> > This is a FAQ, read Help, then search
> > www.groups.google.com/advanced_group_search
> >
> > pbm_thisusuallydoesnothelp:-))
> > Philip Salgannik
> >
> > "Eric Ullman" <ullman2k4@hotmail.com> wrote in message
> > news:41f6c43c$1@forums-1-dub...
> > > Version: PB 9.0.2 Build 7509
> > >
> > > Hello,
> > > I have a standard visual object that is inherited from datawindow.
I
> > > want to place this control onto
> > > a window that contains a picture in the background. I want to be able
> to
> > > see the picture through the
> > > datawindow(transparent). Is there any way to do this?
> > >
> > > Thanks in advance,
> > > Eric
> > >
> > >
> >
> >
>
>


Mark Hampton Posted on 2005-02-10 19:29:01.0Z
From: "Mark Hampton" <mhampton.removeme@datavantagecorp.com>
Newsgroups: sybase.public.powerbuilder.objects
References: <41f6c43c$1@forums-1-dub> <41f72221$1@forums-2-dub> <41f79653$1@forums-2-dub> <41fa65c4$1@forums-1-dub>
Subject: Re: Transparent DW's
Lines: 329
X-Priority: 3
X-MSMail-Priority: Normal
X-Newsreader: Microsoft Outlook Express 6.00.2900.2180
X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.2180
X-RFC2646: Format=Flowed; Original
X-Original-NNTP-Posting-Host: firewall.datavantagecorp.com
Message-ID: <420bb5fa@forums-2-dub>
X-Original-Trace: 10 Feb 2005 11:28:58 -0800, firewall.datavantagecorp.com
X-Original-NNTP-Posting-Host: forums-2-dub.sybase.com
X-Original-Trace: 10 Feb 2005 11:28:59 -0800, forums-2-dub.sybase.com
NNTP-Posting-Host: forums-master.sybase.com
X-Original-NNTP-Posting-Host: forums-master.sybase.com
Date: 10 Feb 2005 11:29:01 -0800
X-Trace: forums-1-dub 1108063741 10.22.108.75 (10 Feb 2005 11:29:01 -0800)
X-Original-Trace: 10 Feb 2005 11:29:01 -0800, forums-master.sybase.com
X-Authenticated-User: ngsysop
Path: forums-1-dub!not-for-mail
Xref: forums-1-dub sybase.public.powerbuilder.objects:8211
Article PK: 735474

... Be very afraid of what I suggest.

Look up the following topics on MSDN (or a downloaded copy of the MS
Platform SDK):

Method one: Paint the bitmap on top of the datawindow yourself, using
windows API:
Alpha Blending [Win32]
AlphaBlend

Methods 2: Change the window's style bits to include WS_EX_TRANSPARENT
and hope that this works...

"Eric Ullman" <ullman2k4@hotmail.com> wrote in message
news:41fa65c4$1@forums-1-dub...
> Re-post: One more time....
>
>
>
> Thought I'd post it one more time, to see if there are any takers?
>
>
>
> Thanks,
>
> Eric
>
>
>
> -----Original Message-----
>
> From: Pollach Chris [mailto:PollachC@scc-csc.gc.ca]
>
> Sent: Wednesday, January 26, 2005 9:37 AM
>
> To: Eric Ullman
>
> Subject: RE: Transparent DW's
>
>
>
>
>
> Eric;
>
>
>
> That is what I am using in PB 10.1 and in PocketBuilder 2.0.1. It
> works for the ST objects and your approach for the DWO Modify ( ) would
> have
> been my approach as well - looks like you and I were thinking about the
> same
> thing. However, the DWO processing model is a little more out of our
> control
> I think.
>
>
>
> The only other thought would be to create a super parent DW and map
> all the other 47 DWO's to it as ShareData( )'s from a DataStore (where
> updating is required). Then, since you would only have 1 DW Control .. the
> background image would be easy to handle. However, this is a major
> re-engineering of that dialog.
>
>
>
> Hopefully, some one else might post another approach to the
> newsgroup.
>
>
>
> Regards ... Chris
>
>
>
>
>
> -----Original Message-----
>
> From: Eric Ullman [mailto:ullmane@asconline.com]
>
> Sent: Wednesday, January 26, 2005 9:30 AM
>
> To: Pollach Chris
>
> Subject: RE: Transparent DW's
>
>
>
>
>
> Chris,
>
> I did download an example of a transparent static text object which
>
> maps a user event(ue_paint) to the pbm_paint event but it was written in a
>
> previous version of PowerBuilder? I did try implementing this into my
> code
>
> with no prevail, but I may have missed something. All I did was add the
>
> code:
>
>
>
> ll_color = 2^29
>
> dw_control.modify("dataWindow.color='"+string(ll_color)+"'")
>
>
>
> to the constructor and mapped a custom event(pbm_paint) in the dw object
> with
>
> the code:
>
>
>
> if isValid(this) then
>
> if ib_painting then return 0
>
> ib_painting = true
>
> this.visible = false
>
> do while yield() ; loop
>
> this.visible = true
>
> ib_painting=false
>
> end if
>
>
>
> return 0
>
>
>
> If the code you have contains additional info or examples, please send
>
> it over, I'm willing to try anything.
>
>
>
> Thanks,
>
> Eric
>
>
>
>
>
> -----Original Message-----
>
> From: Pollach Chris [mailto:PollachC@scc-csc.gc.ca]
>
> Sent: Wednesday, January 26, 2005 9:14 AM
>
> To: Eric Ullman
>
> Subject: RE: Transparent DW's
>
>
>
>
>
> Eric;
>
>
>
> I do have some sample code here at work. However it is PB 10.1 and
> only for a statictext object. You would have to reverse engineer this back
> to PB 9.0.2 and adapt the code in the ST ancestor to set the background
> colour of the DW Object in the DW Control.
>
>
>
> Thoughts?
>
>
>
> Regards ... Chris
>
>
>
>
>
>
>
> -----Original Message-----
>
> From: Eric Ullman [mailto:ullmane@asconline.com]
>
> Sent: Wednesday, January 26, 2005 9:00 AM
>
> To: Pollach Chris
>
> Subject: RE: Transparent DW's
>
>
>
>
>
> Hey Chris,
>
> Thanks for responding. PB Version 9.0.2 Build 7509. I was
>
> looking into using windows dll's, user32.dll, gdi32.dll, but I don't
>
> have too much time to research it. If you could dig up that transparent
>
> script that would be much appreciated.
>
>
>
> Thanks again,
>
> Eric
>
>
>
> -----Original Message-----
>
> From: Pollach Chris [mailto:PollachC@scc-csc.gc.ca]
>
> Sent: Wednesday, January 26, 2005 8:54 AM
>
> To: Eric Ullman
>
> Subject: RE: Transparent DW's
>
>
>
>
>
> Eric;
>
>
>
> Ouch .. 42 DW Controls!
>
>
>
> I do have some example PB script that makes any control on a window
> transparent. However, I can not remember what version of PB it is in (have
> to de-archive it). What version of PB are you running?
>
>
>
> Regards ... Chris
>
>
>
>
>
> -----Original Message-----
>
> From: Eric Ullman [mailto:ullmane@asconline.com]
>
> Sent: Wednesday, January 26, 2005 8:35 AM
>
> To: Pollach Chris
>
> Subject: Re: Transparent DW's
>
>
>
>
>
> Okay, that is what I thought. The only problem is that there are
>
> 42 datawindows on this one window, all of which I wanted to make
>
> transparent to the picture in the background. I guess I'll have to
>
> do without it. Thanks for your help.
>
>
>
> "Chris Pollach" <PollachC@SCC-CSC.gc.ca> wrote in message
> news:41f79653$1@forums-2-dub...
>> And ... make sure the picture is in the "Background" layer (note: this is
>> not the same as Front to Back).
>>
>> "Philip Salgannik" <philemaxNOSPAM@comcast.net> wrote in message
>> news:41f72221$1@forums-2-dub...
>> > Not the way you want it.
>> > About the only thing you can do is put the picture inside the
>> datawindow...
>> >
>> > --
>> > This is a FAQ, read Help, then search
>> > www.groups.google.com/advanced_group_search
>> >
>> > pbm_thisusuallydoesnothelp:-))
>> > Philip Salgannik
>> >
>> > "Eric Ullman" <ullman2k4@hotmail.com> wrote in message
>> > news:41f6c43c$1@forums-1-dub...
>> > > Version: PB 9.0.2 Build 7509
>> > >
>> > > Hello,
>> > > I have a standard visual object that is inherited from datawindow.
> I
>> > > want to place this control onto
>> > > a window that contains a picture in the background. I want to be
>> > > able
>> to
>> > > see the picture through the
>> > > datawindow(transparent). Is there any way to do this?
>> > >
>> > > Thanks in advance,
>> > > Eric
>> > >
>> > >
>> >
>> >
>>
>>
>
>