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.

Dockable Windows Question for Roy...

7 posts in Objects Last posting was on 2002-07-18 19:40:04.0Z
Jeff Gibson Posted on 2002-07-17 07:17:10.0Z
Newsgroups: sybase.public.powerbuilder.objects
From: "Jeff Gibson" <jgibson@interceptsolutions.com>
Subject: Dockable Windows Question for Roy...
Date: Wed, 17 Jul 2002 02:17:10 -0500
Lines: 31
Organization: Intercept Solutions
X-Priority: 3
X-MSMail-Priority: Normal
X-Newsreader: Microsoft Outlook Express 5.00.2919.6600
X-MimeOLE: Produced By Microsoft MimeOLE V5.00.2919.6600
NNTP-Posting-Host: pcp01727704pcs.nash01.tn.comcast.net 68.52.234.181
Message-ID: <364_hp6h0OWLCHA.654@forums.sybase.com>
Path: forums-1-dub!forums-1-dub!forums-master.sybase.com!forums.sybase.com
Xref: forums-1-dub sybase.public.powerbuilder.objects:1105
Article PK: 713671

Roy,

As per our many discussions on this topic, I have two questions...

1. Do you know if Sybase is looking at implementing dockable windows in PB9,
or even a later version (10, 11, etc.)?

2. You are correct when you say it takes a lot of work to get the dockable
windows working. So, I am trying to emulate it right now, since it is only
specific to my navigation window. I can emulated the changing of the window
from docked to floating with the opening, closing and hiding of specific
types of windows with the presentation I am looking for. However, in some
of the Visual Studio products, when you click on a window, and are getting
ready to undock it, you get that transparent/crosshatched/dotted border that
appears around the border of the dockable object. Then, during the drag
operation, you see that border until you release the window. Sometimes that
border can get thicker, based on where you are dragging.

My question on this would be, what is that border referred to under the
Win32 documentation, and, can something like that be implemented via some
API calls from PowerBuilder?

Any pointers would be appreciated.

Thanks a bunch.

Jeff Gibson
Intercept Solutions
Nashville, TN


Philip_Salgannik Posted on 2002-07-17 16:22:30.0Z
Newsgroups: sybase.public.powerbuilder.objects
From: Philip_Salgannik
Date: Wed, 17 Jul 2002 12:22:30 -0400
Subject: Re: Dockable Windows Question for Roy...
Lines: 25
MIME-Version: 1.0
Content-Type: text/plain; charset="us-ascii"
Content-Transfer-Encoding: 7bit
Message-ID: <364_292CBABBBEDD77F50059F38185256BF9.002C398D85256BF9@webforums>
References: <364_hp6h0OWLCHA.654@forums.sybase.com>
Path: forums-1-dub!forums-1-dub!forums-master.sybase.com!forums.sybase.com!webforums.sybase.com!news
Xref: forums-1-dub sybase.public.powerbuilder.objects:1101
Article PK: 713661

2. I think what you are looking for is a so called xored border or
something along these lines :-)
Here is an example of drawing an xored split bar:
static WORD _dotPatternBmp[8] = { 0x00aa, 0x00cc, 0x00aa, 0x00cc, 0x00aa,
0x00cc, 0x00aa, 0x00cc};

void DrawXorBar(HDC hDC, RECT rc)
{
HBITMAP hBm;
HBRUSH hBr, hBrushOld;

hBm = CreateBitmap(8, 8, 1, 1, _dotPatternBmp);
hBr = CreatePatternBrush(hBm);
UnrealizeObject(hBr);
SetBrushOrg(hDC, rc.left, rc.top);
hBrushOld = (HBRUSH)SelectObject(hDC, hBr);
PatBlt(hDC, rc.left, rc.top, rc.right-rc.left,
rc.bottom-rc.top,
PATINVERT);
SelectObject(hDC, hBrushOld);
DeleteObject(hBr);
DeleteObject(hBm);
}

In case of a border I guess you'll need to create a region versus a
rectangle, but the idea will be the same...


Jeff Gibson Posted on 2002-07-17 16:21:28.0Z
Newsgroups: sybase.public.powerbuilder.objects
From: "Jeff Gibson" <jgibson@interceptsolutions.com>
Subject: Re: Dockable Windows Question for Roy...
Date: Wed, 17 Jul 2002 11:21:28 -0500
Lines: 38
Organization: Intercept Solutions
X-Priority: 3
X-MSMail-Priority: Normal
X-Newsreader: Microsoft Outlook Express 5.50.4807.1700
X-MimeOLE: Produced By Microsoft MimeOLE V5.50.4807.1700
NNTP-Posting-Host: 66-0-110-241.deltacom.net 66.0.110.241
Message-ID: <364_mp9b5#aLCHA.582@forums.sybase.com>
References: <364_hp6h0OWLCHA.654@forums.sybase.com> <364_292CBABBBEDD77F50059F38185256BF9.002C398D85256BF9@webforums>
Path: forums-1-dub!forums-1-dub!forums-master.sybase.com!forums.sybase.com
Xref: forums-1-dub sybase.public.powerbuilder.objects:1100
Article PK: 713663

Thanks for the heads up Philip.

I really appreciated it.

Jeff Gibson
Intercept Solutions
Nashville, TN

<Philip_Salgannik> wrote in message
news:292CBABBBEDD77F50059F38185256BF9.002C398D85256BF9@webforums...
> 2. I think what you are looking for is a so called xored border or
> something along these lines :-)
> Here is an example of drawing an xored split bar:
> static WORD _dotPatternBmp[8] = { 0x00aa, 0x00cc, 0x00aa, 0x00cc, 0x00aa,
> 0x00cc, 0x00aa, 0x00cc};
>
> void DrawXorBar(HDC hDC, RECT rc)
> {
> HBITMAP hBm;
> HBRUSH hBr, hBrushOld;
>
> hBm = CreateBitmap(8, 8, 1, 1, _dotPatternBmp);
> hBr = CreatePatternBrush(hBm);
> UnrealizeObject(hBr);
> SetBrushOrg(hDC, rc.left, rc.top);
> hBrushOld = (HBRUSH)SelectObject(hDC, hBr);
> PatBlt(hDC, rc.left, rc.top, rc.right-rc.left,
> rc.bottom-rc.top,
> PATINVERT);
> SelectObject(hDC, hBrushOld);
> DeleteObject(hBr);
> DeleteObject(hBm);
> }
>
> In case of a border I guess you'll need to create a region versus a
> rectangle, but the idea will be the same...


Roy Kiesler [TeamSybase] Posted on 2002-07-17 15:50:47.0Z
Newsgroups: sybase.public.powerbuilder.objects
From: "Roy Kiesler [TeamSybase]" <SPAM_FREE_roy.kiesler@teamsybase.com>
Subject: Re: Dockable Windows Question for Roy...
Date: Wed, 17 Jul 2002 11:50:47 -0400
Lines: 61
X-Priority: 3
X-MSMail-Priority: Normal
X-Newsreader: Microsoft Outlook Express 6.00.2600.0000
X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2600.0000
NNTP-Posting-Host: host131.percussion.com 208.252.62.131
Message-ID: <364_jA37gtaLCHA.306@forums.sybase.com>
References: <364_hp6h0OWLCHA.654@forums.sybase.com>
Path: forums-1-dub!forums-1-dub!forums-master.sybase.com!forums.sybase.com
Xref: forums-1-dub sybase.public.powerbuilder.objects:1103
Article PK: 713665

Not again!!!!! not those damn docking windows<g>

1. Nothing in PB9 on this front
2. No idea on PB10 (not even worthy folks like myself are in the know...)

That "transparent/crosshatched/dotted border" is commonly referred to in C++
terms as a "tracker". Both MFC and WTL have "standard" (if that word means
anything anymore in Redmond<g>) implementations you can use.

Bottom line -- unless _ALL_ your clients are guaranteed to have a 1.4 P4
chip and 512+ MB of RAM on their machines, don't bother with API calls --
rather, code a helper C++ DLL that can use a memory DC for flicker-free
drawing.

I actually coded such a DLL in the past (PB 6.5 on a PII machine with 256 MB
RAM) but I still had flicker, so I ditched this.

--
<hopethishelps/>
Roy Kiesler [TeamSybase]
Sybase Developer Network -- http://sdn.sybase.com

"Jeff Gibson" <jgibson@interceptsolutions.com> wrote in message
news:hp6h0OWLCHA.654@forums.sybase.com...
> Roy,
>
> As per our many discussions on this topic, I have two questions...
>
> 1. Do you know if Sybase is looking at implementing dockable windows in
PB9,
> or even a later version (10, 11, etc.)?
>
> 2. You are correct when you say it takes a lot of work to get the dockable
> windows working. So, I am trying to emulate it right now, since it is only
> specific to my navigation window. I can emulated the changing of the
window
> from docked to floating with the opening, closing and hiding of specific
> types of windows with the presentation I am looking for. However, in some
> of the Visual Studio products, when you click on a window, and are getting
> ready to undock it, you get that transparent/crosshatched/dotted border
that
> appears around the border of the dockable object. Then, during the drag
> operation, you see that border until you release the window. Sometimes
that
> border can get thicker, based on where you are dragging.
>
> My question on this would be, what is that border referred to under the
> Win32 documentation, and, can something like that be implemented via some
> API calls from PowerBuilder?
>
> Any pointers would be appreciated.
>
> Thanks a bunch.
>
> Jeff Gibson
> Intercept Solutions
> Nashville, TN
>
>


Jeff Gibson Posted on 2002-07-18 17:19:01.0Z
Newsgroups: sybase.public.powerbuilder.objects
From: "Jeff Gibson" <jgibson@interceptsolutions.com>
Subject: Re: Dockable Windows Question for Roy...
Date: Thu, 18 Jul 2002 12:19:01 -0500
Lines: 89
Organization: Intercept Solutions
X-Priority: 3
X-MSMail-Priority: Normal
X-Newsreader: Microsoft Outlook Express 5.50.4807.1700
X-MIMEOLE: Produced By Microsoft MimeOLE V5.50.4807.1700
NNTP-Posting-Host: 66-0-110-241.deltacom.net 66.0.110.241
Message-ID: <364_OZGn0DoLCHA.196@forums.sybase.com>
References: <364_hp6h0OWLCHA.654@forums.sybase.com> <364_jA37gtaLCHA.306@forums.sybase.com>
Path: forums-1-dub!forums-1-dub!forums-master.sybase.com!forums.sybase.com
Xref: forums-1-dub sybase.public.powerbuilder.objects:1094
Article PK: 713655

Roy (or Philip)

In looking through some of the MSDN documentation, it looks like
"CRectTracker" is what I want to try and implement, to get this border
effect I'm looking for.

I found the header file that crecttracker is defined in, but is there a DLL
that this functionality is implemented in? I'm just trying to get the right
direction as far as trying to implement some of this.

Or do I have to implement my own DLL with this functionality in it? I'm
sorry if I sound so clueless, I was just under the impression that MFC
functionality was implemented within certain DLL's in the OS.

Any information or point in the right direction would be greatly
appreciated.

Jeff Gibson
Intercept Solutions
Nashville, TN

"Roy Kiesler [TeamSybase]" <SPAM_FREE_roy.kiesler@teamsybase.com> wrote in
message news:jA37gtaLCHA.306@forums.sybase.com...
> Not again!!!!! not those damn docking windows<g>
>
> 1. Nothing in PB9 on this front
> 2. No idea on PB10 (not even worthy folks like myself are in the know...)
>
> That "transparent/crosshatched/dotted border" is commonly referred to in
C++
> terms as a "tracker". Both MFC and WTL have "standard" (if that word means
> anything anymore in Redmond<g>) implementations you can use.
>
> Bottom line -- unless _ALL_ your clients are guaranteed to have a 1.4 P4
> chip and 512+ MB of RAM on their machines, don't bother with API calls --
> rather, code a helper C++ DLL that can use a memory DC for flicker-free
> drawing.
>
> I actually coded such a DLL in the past (PB 6.5 on a PII machine with 256
MB
> RAM) but I still had flicker, so I ditched this.
>
> --
> <hopethishelps/>
> Roy Kiesler [TeamSybase]
> Sybase Developer Network -- http://sdn.sybase.com
>
> "Jeff Gibson" <jgibson@interceptsolutions.com> wrote in message
> news:hp6h0OWLCHA.654@forums.sybase.com...
> > Roy,
> >
> > As per our many discussions on this topic, I have two questions...
> >
> > 1. Do you know if Sybase is looking at implementing dockable windows in
> PB9,
> > or even a later version (10, 11, etc.)?
> >
> > 2. You are correct when you say it takes a lot of work to get the
dockable
> > windows working. So, I am trying to emulate it right now, since it is
only
> > specific to my navigation window. I can emulated the changing of the
> window
> > from docked to floating with the opening, closing and hiding of specific
> > types of windows with the presentation I am looking for. However, in
some
> > of the Visual Studio products, when you click on a window, and are
getting
> > ready to undock it, you get that transparent/crosshatched/dotted border
> that
> > appears around the border of the dockable object. Then, during the drag
> > operation, you see that border until you release the window. Sometimes
> that
> > border can get thicker, based on where you are dragging.
> >
> > My question on this would be, what is that border referred to under the
> > Win32 documentation, and, can something like that be implemented via
some
> > API calls from PowerBuilder?
> >
> > Any pointers would be appreciated.
> >
> > Thanks a bunch.
> >
> > Jeff Gibson
> > Intercept Solutions
> > Nashville, TN


Roy Kiesler [TeamSybase] Posted on 2002-07-18 19:40:04.0Z
Newsgroups: sybase.public.powerbuilder.objects
From: "Roy Kiesler [TeamSybase]" <SPAM_FREE_roy.kiesler@teamsybase.com>
Subject: Re: Dockable Windows Question for Roy...
Date: Thu, 18 Jul 2002 15:40:04 -0400
Lines: 114
X-Priority: 3
X-MSMail-Priority: Normal
X-Newsreader: Microsoft Outlook Express 6.00.2600.0000
X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2600.0000
NNTP-Posting-Host: host131.percussion.com 208.252.62.131
Message-ID: <364_$RlxYSpLCHA.306@forums.sybase.com>
References: <364_hp6h0OWLCHA.654@forums.sybase.com> <364_jA37gtaLCHA.306@forums.sybase.com> <364_OZGn0DoLCHA.196@forums.sybase.com>
Path: forums-1-dub!forums-1-dub!forums-master.sybase.com!forums.sybase.com
Xref: forums-1-dub sybase.public.powerbuilder.objects:1093
Article PK: 713654

mfc42.dll (or mfc70.dll for .NET) -- that being said, the CRectTracker class
is not exported or callable -- it can only be instantiated by an MFC app (or
DLL). You can then call your DLL from PowerBuilder.

--
<hopethishelps/>
Roy Kiesler [TeamSybase]
Sybase Developer Network -- http://sdn.sybase.com

"Jeff Gibson" <jgibson@interceptsolutions.com> wrote in message
news:OZGn0DoLCHA.196@forums.sybase.com...
> Roy (or Philip)
>
> In looking through some of the MSDN documentation, it looks like
> "CRectTracker" is what I want to try and implement, to get this border
> effect I'm looking for.
>
> I found the header file that crecttracker is defined in, but is there a
DLL
> that this functionality is implemented in? I'm just trying to get the
right
> direction as far as trying to implement some of this.
>
> Or do I have to implement my own DLL with this functionality in it? I'm
> sorry if I sound so clueless, I was just under the impression that MFC
> functionality was implemented within certain DLL's in the OS.
>
> Any information or point in the right direction would be greatly
> appreciated.
>
> Jeff Gibson
> Intercept Solutions
> Nashville, TN
>
> "Roy Kiesler [TeamSybase]" <SPAM_FREE_roy.kiesler@teamsybase.com> wrote in
> message news:jA37gtaLCHA.306@forums.sybase.com...
> > Not again!!!!! not those damn docking windows<g>
> >
> > 1. Nothing in PB9 on this front
> > 2. No idea on PB10 (not even worthy folks like myself are in the
know...)
> >
> > That "transparent/crosshatched/dotted border" is commonly referred to in
> C++
> > terms as a "tracker". Both MFC and WTL have "standard" (if that word
means
> > anything anymore in Redmond<g>) implementations you can use.
> >
> > Bottom line -- unless _ALL_ your clients are guaranteed to have a 1.4 P4
> > chip and 512+ MB of RAM on their machines, don't bother with API
calls --
> > rather, code a helper C++ DLL that can use a memory DC for flicker-free
> > drawing.
> >
> > I actually coded such a DLL in the past (PB 6.5 on a PII machine with
256
> MB
> > RAM) but I still had flicker, so I ditched this.
> >
> > --
> > <hopethishelps/>
> > Roy Kiesler [TeamSybase]
> > Sybase Developer Network -- http://sdn.sybase.com
> >
> > "Jeff Gibson" <jgibson@interceptsolutions.com> wrote in message
> > news:hp6h0OWLCHA.654@forums.sybase.com...
> > > Roy,
> > >
> > > As per our many discussions on this topic, I have two questions...
> > >
> > > 1. Do you know if Sybase is looking at implementing dockable windows
in
> > PB9,
> > > or even a later version (10, 11, etc.)?
> > >
> > > 2. You are correct when you say it takes a lot of work to get the
> dockable
> > > windows working. So, I am trying to emulate it right now, since it is
> only
> > > specific to my navigation window. I can emulated the changing of the
> > window
> > > from docked to floating with the opening, closing and hiding of
specific
> > > types of windows with the presentation I am looking for. However, in
> some
> > > of the Visual Studio products, when you click on a window, and are
> getting
> > > ready to undock it, you get that transparent/crosshatched/dotted
border
> > that
> > > appears around the border of the dockable object. Then, during the
drag
> > > operation, you see that border until you release the window.
Sometimes
> > that
> > > border can get thicker, based on where you are dragging.
> > >
> > > My question on this would be, what is that border referred to under
the
> > > Win32 documentation, and, can something like that be implemented via
> some
> > > API calls from PowerBuilder?
> > >
> > > Any pointers would be appreciated.
> > >
> > > Thanks a bunch.
> > >
> > > Jeff Gibson
> > > Intercept Solutions
> > > Nashville, TN
>
>


Jeff Gibson Posted on 2002-07-17 16:07:57.0Z
Newsgroups: sybase.public.powerbuilder.objects
From: "Jeff Gibson" <jgibson@interceptsolutions.com>
Subject: Re: Dockable Windows Question for Roy...
Date: Wed, 17 Jul 2002 11:07:57 -0500
Lines: 77
Organization: Intercept Solutions
X-Priority: 3
X-MSMail-Priority: Normal
X-Newsreader: Microsoft Outlook Express 5.50.4807.1700
X-MimeOLE: Produced By Microsoft MimeOLE V5.50.4807.1700
NNTP-Posting-Host: 66-0-110-241.deltacom.net 66.0.110.241
Message-ID: <364_kl6oW3aLCHA.654@forums.sybase.com>
References: <364_hp6h0OWLCHA.654@forums.sybase.com> <364_jA37gtaLCHA.306@forums.sybase.com>
Path: forums-1-dub!forums-1-dub!forums-master.sybase.com!forums.sybase.com
Xref: forums-1-dub sybase.public.powerbuilder.objects:1102
Article PK: 713664


"Roy Kiesler [TeamSybase]" <SPAM_FREE_roy.kiesler@teamsybase.com> wrote in
message news:jA37gtaLCHA.306@forums.sybase.com...
> Not again!!!!! not those damn docking windows<g>

;-)

> 1. Nothing in PB9 on this front
> 2. No idea on PB10 (not even worthy folks like myself are in the know...)
>
> That "transparent/crosshatched/dotted border" is commonly referred to in
C++
> terms as a "tracker". Both MFC and WTL have "standard" (if that word means
> anything anymore in Redmond<g>) implementations you can use.

That's what I was looking for. Thanks for the info. If I'm successful in
implementing this I'll pass it up to you.

Jeff Gibson
Intercept Solutions
Nashville, TN

> Bottom line -- unless _ALL_ your clients are guaranteed to have a 1.4 P4
> chip and 512+ MB of RAM on their machines, don't bother with API calls --
> rather, code a helper C++ DLL that can use a memory DC for flicker-free
> drawing.
>
> I actually coded such a DLL in the past (PB 6.5 on a PII machine with 256
MB
> RAM) but I still had flicker, so I ditched this.
>
> --
> <hopethishelps/>
> Roy Kiesler [TeamSybase]
> Sybase Developer Network -- http://sdn.sybase.com
>
> "Jeff Gibson" <jgibson@interceptsolutions.com> wrote in message
> news:hp6h0OWLCHA.654@forums.sybase.com...
> > Roy,
> >
> > As per our many discussions on this topic, I have two questions...
> >
> > 1. Do you know if Sybase is looking at implementing dockable windows in
> PB9,
> > or even a later version (10, 11, etc.)?
> >
> > 2. You are correct when you say it takes a lot of work to get the
dockable
> > windows working. So, I am trying to emulate it right now, since it is
only
> > specific to my navigation window. I can emulated the changing of the
> window
> > from docked to floating with the opening, closing and hiding of specific
> > types of windows with the presentation I am looking for. However, in
some
> > of the Visual Studio products, when you click on a window, and are
getting
> > ready to undock it, you get that transparent/crosshatched/dotted border
> that
> > appears around the border of the dockable object. Then, during the drag
> > operation, you see that border until you release the window. Sometimes
> that
> > border can get thicker, based on where you are dragging.
> >
> > My question on this would be, what is that border referred to under the
> > Win32 documentation, and, can something like that be implemented via
some
> > API calls from PowerBuilder?
> >
> > Any pointers would be appreciated.
> >
> > Thanks a bunch.
> >
> > Jeff Gibson
> > Intercept Solutions
> > Nashville, TN