Kbase P6098: Using ActiveX in 4GL: ScaleMode problem with Win2k and WinXP
Autor |
  Progress Software Corporation - Progress |
Acesso |
  Público |
Publicação |
  18/03/2003 |
|
Status: Unverified
FACT(s) (Environment):
Windows NT 32 Intel/Windows 2000
FACT(s) (Environment):
Windows XP
SYMPTOM(s):
Using ActiveX
ClientHeight, ClientWidth, ClientTop and ClientLeft return wrong values
Problem with Progress 4GL but not with Visual Basic
CHANGE:
Upgrade to Windows 2000 or Windows XP
CAUSE:
Bug #20020614-003
CAUSE:
On Windows 2000 and Windows XP, the Progress session manages the TabStrip OCX (and perhaps other OCX) with an other Scale Mode: points instead of pixels.
This ratio is 1 on NT because it works in pixels.
FIX:
Valid on XP only: Correct the result with the ratio between the CONTROL-FRAME and the activeX that have the same actual size in most of the case.
On Windows 2000, it will be necessary to work out on which exact flavor of Windows the 4GL session is running to rework the ratio.