"ctl3dv2.dll" usage question 
Author Message
 "ctl3dv2.dll" usage question

Thanks to VBAssist I can use CTL3DV2.DLL to create nice modern looking
msgbox's and dialogs.  How do I extend this to my own forms?

When I try the same commands before loading a form (and just after loading)
I merely succeed in sending my system into a serious GPF failure (so bad even
the DOS I'm booted into is unstable).

+-------------------------------------------------------------------------+
| John David Rohner       Author: Juggernaut '97 BBS+MAIL Software        |

. POB 340304                   ftp.srgames.org  /juggernaut               .
. Milwaukee, WI 53215     The most features of any BBS package. [for DOS] .
:                                                                         :
| (c) 1997                                      "To die is to fail."--JDR |
+---------- ---- ---  -                              - --- ---- ----------+



Mon, 27 Sep 1999 03:00:00 GMT  
 "ctl3dv2.dll" usage question

Quote:

> Thanks to VBAssist I can use CTL3DV2.DLL to create nice modern looking
> msgbox's and dialogs.  How do I extend this to my own forms?

> When I try the same commands before loading a form (and just after loading)
> I merely succeed in sending my system into a serious GPF failure (so bad even
> the DOS I'm booted into is unstable).

> +-------------------------------------------------------------------------+
> | John David Rohner       Author: Juggernaut '97 BBS+MAIL Software        |

> . POB 340304                   ftp.srgames.org  /juggernaut               .
> . Milwaukee, WI 53215     The most features of any BBS package. [for DOS] .
> :                                                                         :
> | (c) 1997                                      "To die is to fail."--JDR |
> +---------- ---- ---  -                              - --- ---- ----------+

John
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
Have fun
Ken

----------------------------------------------------------------------

Applications Programmer/Network Manager  Phone : (+44) (0)1865 224149
Diabetes Research, RI, Oxford, England     Fax : (+44) (0)1865 723884



Mon, 27 Sep 1999 03:00:00 GMT  
 "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 David Rohner       Author: Juggernaut '97 BBS+MAIL Software        |

. POB 340304                   ftp.srgames.org  /juggernaut               .
. Milwaukee, WI 53215     The most features of any BBS package. [for DOS] .
:                                                                         :
| (c) 1997                                      "To die is to fail."--JDR |
+---------- ---- ---  -                              - --- ---- ----------+



Thu, 30 Sep 1999 03:00:00 GMT  
 "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



Fri, 01 Oct 1999 03:00:00 GMT  
 
 [ 4 post ] 

 Relevant Pages 

1. DLL or something like "#"#ยค#"!"#

2. CTL3dv2.dll usage

3. please help: usage of "ZoomTimescale "

4. Uncertain about usage of "Nothing" keyword

5. Uncertain about usage of "Nothing" keyword

6. Need HELP with usage of "inputbox"

7. *"*-.,._,.-*"* I"LL TRADE VISUAL C++ FOR VBASIC *"*-.,_,.-*"*

8. C DLL and VB "wrapper DLL"

9. "Error in Loading DLL" conflicting DLLs

10. GetObject("","InternetExplorer.Application") fails in Excel VBA

11. SysCmd 603, "path","path"

12. Disabling "BACK"/"FORWARD" buttons

 

 
Powered by phpBB® Forum Software