AGB  ·  Datenschutz  ·  Impressum  







Anmelden
Nützliche Links
Registrieren
Thema durchsuchen
Ansicht
Themen-Optionen

Width in VB6

Ein Thema von hoika · begonnen am 22. Okt 2007 · letzter Beitrag vom 22. Okt 2007
Antwort Antwort
hoika
Online

Registriert seit: 5. Jul 2006
Ort: Magdeburg
8.270 Beiträge
 
Delphi 10.4 Sydney
 
#1

Width in VB6

  Alt 22. Okt 2007, 09:28
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.
Heiko
  Mit Zitat antworten Zitat
Benutzerbild von Flocke
Flocke

Registriert seit: 9. Jun 2005
Ort: Unna
1.172 Beiträge
 
Delphi 10.2 Tokyo Professional
 
#2

Re: Width in VB6

  Alt 22. Okt 2007, 10:02
Zitat von hoika:
Ich hatte mal sowas wie Twips im Kopf.
Korrekt - 20 Twips = 1 Point. Probiere mal den Faktor 20 (VB.Width = 20 * Delphi.Width).

Nachtrag: Korrekterweise solltest du so rechnen:
VBControl.Width := MulDiv(PixelWidth, 20 * Screen.PixelsPerInch, 72);
Volker
Besucht meine Garage
Aktuell: RtfLabel 1.3d, PrintToFile 1.4
  Mit Zitat antworten Zitat
Antwort Antwort


Forumregeln

Es ist dir nicht erlaubt, neue Themen zu verfassen.
Es ist dir nicht erlaubt, auf Beiträge zu antworten.
Es ist dir nicht erlaubt, Anhänge hochzuladen.
Es ist dir nicht erlaubt, deine Beiträge zu bearbeiten.

BB-Code ist an.
Smileys sind an.
[IMG] Code ist an.
HTML-Code ist aus.
Trackbacks are an
Pingbacks are an
Refbacks are aus

Gehe zu:

Impressum · AGB · Datenschutz · Nach oben
Alle Zeitangaben in WEZ +1. Es ist jetzt 14:59 Uhr.
Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
LinkBacks Enabled by vBSEO © 2011, Crawlability, Inc.
Delphi-PRAXiS (c) 2002 - 2023 by Daniel R. Wolf, 2024 by Thomas Breitkreuz