
"ctl3dv2.dll" usage question
Quote:
> >I presume you are using VB3. If so I have written some code that will
> >enable you to use CTL3DV2 with VB with no extra VBX/DLL's, just the
> >CTL3DV2 alone. The code is on WinSite and mirrors. (ftp.winsite.com or
> >www.winsite.com) it's in the win3/programr/vbasic directory. The file
> >is called ctl3d4vb.zip
> This does the job, thanks.
> The window border is blue (title bar) when I use a 3-fixed border, but
> grey when I use a 2-sizable border (modified the code to do its stuff
> with both). This is the "fp.backcolor" stuff. Is there any way to
> have it do grey with fixed borders?
John,
I'm a little confused by your question. The code works as follows:
1) If the borderstyle=2 (sizable):
The window edge will look the same as it does without CTL3DV2 active.
The background will be set to light grey and the controls made 3D.
2) If the borderstyle=3 (Fixed double):
The window edge is turned grey and made to look like part of the main
window. Again the window background is set to grey and the controls
made 3D.
This is exactly as with MS apps that use CTL3D. This all assumes you
have
set the Button_face colour to light grey (the default) If you alter this
colour (using the control panel) then all the colours will change. Is
this
the problem you are seeing. Alternativly, are you asking if Sizable
windows
can be made to look like the dialog examples. If so the answer is no,
microsoft have made CTL3DV2 to leave the edge of these windows the way
they are, as a visual indication that they may be resized.
If I've got the wrong end of the stick please let me know, probably best
via e-mail as I don't get to read news as often as I would like. My
address
is listed below.
HTH
Ken
----------------------------------------------------------------------
Applications Programmer/Network Manager Phone : (+44) (0)1865 224149
Diabetes Research, RI, Oxford, England Fax : (+44) (0)1865 723884