|
-
Jun 11th, 2011, 06:06 PM
#1
Thread Starter
PowerPoster
[VB6] - creating activex controls
very people knows create activex controls, but theres somethings, importants, that we need understand
1 - how we know that we can use it in another OOPL(Oriented Object Programming Language?
i try use my own controls in Visual C++ 6(ok.. i'm new in these program.. but i think that it's easy use controls on it), but i receive some errors....
why these errors?
ok.. i understand that, for draw\paint something, the object must be showed\created(not initializate or terminate(why i said Terminate??? because these event, sadly, is activated after the control is created)) events.
can anyone explain to me these behavior?
(sorry my bad english.. but i don't know all words... if some words aren't ok, please correct me)
-
Jun 12th, 2011, 11:53 AM
#2
Re: [VB6] - creating activex controls
Some things to consider
1. Not all designers accept windowless controls. Those that do not will force the windowless control to become windowed.
2. Do not reference the Extender object in your code. Not all designers provide an extender. Those that do, the Extender properties you are expecting may not exist or may be named differently.
3. The Ambient.UserMode property does not have to be implemented by any designers. This means you may not have a definitive way to know if your uc is in design view or runtime view.
4. As you pointed out, events may not be called in the order you expect.
When a uc is moving from design mode to runtime, it is first destroyed in design mode and re-created in runtime mode.
Any recommendation I could offer would be to find documentation for the designer you are trying to make your control compatible with. Good luck.
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|