Click to See Complete Forum and Search --> : ActiveX-Controls at DHTML-Pages
January 26th, 2000, 03:15 PM
I would use ActiveX-Controls at DHTMLPages, i say also. My ActiveX-Controls are using Evenst, but this Events not fired.
At Forms their was perfect.
What's happend ??? Please Help
Johnny101
January 26th, 2000, 03:33 PM
Can you explain a little more what the problem is? Like which events aren't firing for what controls. When you say ActiveX control, do you actually mean like you created a cab file that intalls over the internet and runs the control, or more like User Documents?
John
John Pirkey
MCSD
www.ShallowWaterSystems.com
Snoopy
January 27th, 2000, 03:47 PM
Hello
I mean ActiveX-Controls they are made at VB. That's a input for Text and masked some keys, depenting a property.
This Property are alphanumeric, real, integer, money or date. All invalid keys are masked.
I Use them at DHTML-Page. Events like Click DblClick i fired with 'RaiseEvent Click', but nothing doing at DHTML-Page.
At VB_Forms this same Control are Works. Think it's problem with event-Object for Document.
Johnny101
January 27th, 2000, 03:57 PM
When coding for the web, some of the event names are different. Like the Click event in VB becomes OnClick and Load becomes OnLoad. Try renaming some of your event names to their equivalent for the web and see what happens. KeyPress becomes OnKeyPress and MouseOver becomes two events: OnMouseOver and OnMouseOut.
I can't think of any other reasons why this might be happening, but give it a try - what can it hurt.
hope this helps a little,
John
John Pirkey
MCSD
www.ShallowWaterSystems.com
Snoopy
January 28th, 2000, 12:44 PM
thanks, but thats not the solution
That's my Example
1. Open new VB-Project "ActiveX Control"
2. Put a Standard-Textbox, named cText
3. Insert Code
Event onClick()
private Sub cText_Click()
RaiseEvent onClick
End Sub
4. Add VB-Project "DHTML-Application"
5. Put my own Control on it
6. Write this code
private Sub CtrlText1_onClick()
MsgBox "onCLick"
End Sub
Debug-Mode: Event cText_Click fired, but CtrlText1_onClick is not fired.
Replace 4. with Add VB-Project "Standard EXE"
5. and 6. the same
Result: Both Events are fired.
Replace 5. with Add a HTML-Textbox on the DHTML-Page
Also both Events are fired
?????
? ?
?
?
?
?
?
?
???
???
Today i made a Control with ATL on VC++, this Events are OK but i don't speak C++.
codeguru.com
Copyright Internet.com Inc., All Rights Reserved.