![]() |
Width in VB6
Hallo,
ich benutze eine COM-Komponente, deren Dokumentation leider nur in VB ist. Der Code: MyComponent.Width:= Form.Width. führt nicht zum gewünschten Ergebnis (Komponente an das Form anpassen). Kann es sein, dass Width unter VB nicht das gleiche ist wie unter Delphi. Heiko PS: Ich hatte mal sowas wie Twips im Kopf. |
Re: Width in VB6
Zitat:
Nachtrag: Korrekterweise solltest du so rechnen:
Delphi-Quellcode:
VBControl.Width := MulDiv(PixelWidth, 20 * Screen.PixelsPerInch, 72);
|
Alle Zeitangaben in WEZ +1. Es ist jetzt 10:51 Uhr. |
Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
LinkBacks Enabled by vBSEO © 2011, Crawlability, Inc.
Delphi-PRAXiS (c) 2002 - 2023 by Daniel R. Wolf, 2024-2025 by Thomas Breitkreuz