Click to See Complete Forum and Search --> : Object with Subobjects?
John
Nov 20th, 1999, 05:12 PM
The way to do this is using classes. Obviously you must be using a class for the WAMessage object.
You should create some more classes, one each for the menu, toolbar and DAPI. Then, in the WAMessage class's general declarations, put something like this:
Public DAPI As New clsDAPI
'etc...
------------------
John Percival
Editor, VB-World.net
john@vb-world.net
John
Nov 21st, 1999, 04:14 AM
Yup, that's right.
------------------
John Percival
Editor, VB-World.net
john@vb-world.net
ShadowCrawler
Nov 21st, 1999, 04:36 AM
Tried it...split the code into the 3 classes, compiled it, and now it won't even let me insert it into my project. Moved the code back to the Control, killed the classes, recompiled, and it worked again. Any ideas?
------------------
(¯`·.¸¸.·´¯`·->ShadowCrawler<-·´¯`·.¸¸.·´¯)
Teenage Programmer
Visual Basic, HTML, C++, JavaScript
http://welcome.to/X12Tech
Email: craigkovatch@compuserve.com
ICQ#: 9872708 (http://wwp.mirabilis.com/9872708)
ShadowCrawler
Nov 21st, 1999, 11:59 AM
Actually, the WAMessage component is an ActiveX contol...so would I just add 3 classes into that?
------------------
(¯`·.¸¸.·´¯`·->ShadowCrawler<-·´¯`·.¸¸.·´¯)
Teenage Programmer
Visual Basic, HTML, C++, JavaScript
http://welcome.to/X12Tech
Email: craigkovatch@compuserve.com
ICQ#: 9872708 (http://wwp.mirabilis.com/9872708)
Use the Class Builder utillity and crate a collection with it.
It makes some pretty looking code witch is commented.
If it still doesn't work i could email a sample project.
------------------
Vincent van den Braken
EMail: azzmodan@azzmodan.demon.nl
ICQ: 15440110 (http://www.icq.com/15440110)
Homepage: http://www.azzmodan.demon.nl
vbforums.com
Copyright Internet.com Inc., All Rights Reserved.