UserControl resize not working with scripting in IE
Posted on 2002-04-17
I have build ActiveX control which was working for years.
Now I decided to update it.I did not toch any sizing functionallity.After registering the new ocx,with comletely new ProgID,I'm able to change Height and Width from everywhere but NOT using scripting in IE.Same problem on different computers.This is the public method of my control I'm using to resize:
Public Sub Resize(HT, WD)
Print #1, "Resize(HT, WD),BEGIN"
Print #1, "Resize(HT, WD).Passed val:" & CStr(vLng(HT) * _
Screen.TwipsPerPixelY) & "," & CStr(vLng(WD) * Screen.TwipsPerPixelX)
UserControl.Height = vInt(HT) * Screen.TwipsPerPixelY
UserControl.Width = vLng(WD) * Screen.TwipsPerPixelX
Print #1, "Resize(HT, WD) control height=" & CStr(UserControl.Height)
Print #1, "Resize(HT, WD),END"
Private Sub UserControl_Resize()
This is the log file:
Resize(HT, WD).Passed val:3000,14385
Resize(HT, WD) control height=15
As you can see from the log,UserControl got 3000,
was trying to assing:
But after this it is still 15...