Autor Beitrag
Tweafis
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic star
Beiträge: 647

WinXP + fbsd
Delphi 5 Prof
BeitragVerfasst: Sa 28.06.03 20:24 
Durch den Thread von mimi bin ich neugierig geworden und wollte das kurz mal testen. Es geht zwar, aber ich würde doch gerne Wissen was die Einzelnen Sachen machen. z.B. das Drehen von der Schrift, funktioniert ja irgendwie über lfOrientation und lfEscaping (was bestimmt was???) und das schreiben auf das Canvas seh ich auch nicht
ausblenden Delphi-Quelltext
1:
2:
    DrawText(tmpCanvas.Handle, PChar(Texto), - 1, tmpRect, DT_BOTTOM or
      DT_SINGLELINE);

???

Würde auserdem gerne wissen wo ich hilfe zu LogFont bekomme, in der Onlinehilfe steht überhaupt nichts...

_________________
.: Es wird der Tag kommen, an dem wir es nicht mehr ändern können :.
tommie-lie
ontopic starontopic starontopic starontopic starontopic starofftopic starofftopic starofftopic star
Beiträge: 4373

Ubuntu 7.10 "Gutsy Gibbon"

BeitragVerfasst: Sa 28.06.03 20:43 
Wieso findest du das schreiben auf den Canvas nicht? Du hast es doch gepostet.
DrawText ist eine API-Funktion. Sie steht nicht in der normalen Onlinehilfe von Delphi, sondern im SDK (Download zu finden bei den hiesigen Links weiter unten).
Microsoft Win32-PSDK hat folgendes geschrieben:
ausblenden Quelltext
1:
2:
3:
4:
5:
6:
7:
int DrawText(
  HDC hDC,          // handle to DC
  LPCTSTR lpString, // text to draw
  int nCount,       // text length
  LPRECT lpRect,    // formatting dimensions
  UINT uFormat      // text-drawing options
);

Die zitierte Funktion zeichnet also auf den DC vom Canvas den Texto, welches ein Pointer ist, in der Größe tmpRect mit den Attributen DT_BOTTOM und DT_SINGLELINE. Was letzteres heißt, kann man im sDK oder im MSDN nachschauen, auch weitere Parameter findet man dort.

LogFont ist ebenfalls im SDK zu finden. Das ganze ist eine C-Structure die folgendermaßen deklariert ist:
Microsoft Win32-PSDK hat folgendes geschrieben:
ausblenden Quelltext
1:
2:
3:
4:
5:
6:
7:
8:
9:
10:
11:
12:
13:
14:
15:
16:
typedef struct tagLOGFONT { 
  LONG lfHeight; 
  LONG lfWidth; 
  LONG lfEscapement; 
  LONG lfOrientation; 
  LONG lfWeight; 
  BYTE lfItalic; 
  BYTE lfUnderline; 
  BYTE lfStrikeOut; 
  BYTE lfCharSet; 
  BYTE lfOutPrecision; 
  BYTE lfClipPrecision; 
  BYTE lfQuality; 
  BYTE lfPitchAndFamily; 
  TCHAR lfFaceName[LF_FACESIZE]; 
} LOGFONT, *PLOGFONT;

_________________
Your computer is designed to become slower and more unreliable over time, so you have to upgrade. But if you'd like some false hope, I can tell you how to defragment your disk. - Dilbert
Tweafis Threadstarter
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic star
Beiträge: 647

WinXP + fbsd
Delphi 5 Prof
BeitragVerfasst: Sa 28.06.03 21:06 
Vielleicht hab ich mich schlecht ausgedrückt:

Ich finde keine Konkrete Hilfe zu den einzelnen lf******** sachen. (lfWeight, lfUnderline). Die ienfachane weiß ich, ich brauch aber z.B.

lfEscaping und lfOrientation


P.S., wie kann ich einen string an
ausblenden Delphi-Quelltext
1:
    lfFaceName: array[0..LF_FACESIZE - 1of AnsiChar;					

übergeben? (lfFaceName := Font.Name geht nicht :()

_________________
.: Es wird der Tag kommen, an dem wir es nicht mehr ändern können :.
Gast
Gast
Erhaltene Danke: 1



BeitragVerfasst: Sa 28.06.03 22:54 
Dann lad dir das PSDK runter, oder laß es dir zuschicken (einer Person würde ich es noch schicken! Siehe Off-topic!)

Dort steht eine so ausführliche Hilfe zu allen von dir genannten Record-Members, daß ich Angst habe man wirft mich aus dem Forum, wenn ich es hier poste!

Deshalb nur der MSDN-Link:
msdn.microsoft.com/l...gdi/fontext_1wmq.asp
Tweafis Threadstarter
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic star
Beiträge: 647

WinXP + fbsd
Delphi 5 Prof
BeitragVerfasst: So 29.06.03 11:42 
Assarbad hat folgendes geschrieben:
Dann lad dir das PSDK runter, oder laß es dir zuschicken (einer Person würde ich es noch schicken! Siehe Off-topic!)

Dort steht eine so ausführliche Hilfe zu allen von dir genannten Record-Members, daß ich Angst habe man wirft mich aus dem Forum, wenn ich es hier poste!

Deshalb nur der MSDN-Link:
msdn.microsoft.com/l...gdi/fontext_1wmq.asp


Ne, danke für das Angebot, hab ja DSL, kann also ziehen. Ich find aber den Download nicht :oops:

_________________
.: Es wird der Tag kommen, an dem wir es nicht mehr ändern können :.
tommie-lie
ontopic starontopic starontopic starontopic starontopic starofftopic starofftopic starofftopic star
Beiträge: 4373

Ubuntu 7.10 "Gutsy Gibbon"

BeitragVerfasst: So 29.06.03 12:05 
Werden meine Posts eigentlich gelesen?
tommie-lie hat folgendes geschrieben:
(Download zu finden bei den hiesigen Links weiter unten)

Falls es zu schwer ist, in der Übersicht nach unten zu scrollen gibt's hier den Link zu diesen: www.delphi-forum.de/viewtopic.php?t=10641

Und wer immer noch zu faul ist, dort zu schauen, dem soll dieser Link an das Ziel führen (der genau so bei den Links steht):
Platform SDK (PSDK)

_________________
Your computer is designed to become slower and more unreliable over time, so you have to upgrade. But if you'd like some false hope, I can tell you how to defragment your disk. - Dilbert
mimi
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic star
Beiträge: 3458

Ubuntu, Win XP
Lazarus
BeitragVerfasst: So 29.06.03 15:01 
und weiter ?
ich finde es dort nicht :(

_________________
MFG
Michael Springwald, "kann kein englisch...."
Tweafis Threadstarter
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic star
Beiträge: 647

WinXP + fbsd
Delphi 5 Prof
BeitragVerfasst: So 29.06.03 15:02 
Bei mir steht da auch nur

Welcome to SDK Update
The Microsoft® Platform SDK site requires Microsoft Internet Explorer version 5.0 or later. You can download the latest Internet Explorer for free.

In addition, Microsoft ActiveX® controls are used to install components on your computer. If you are not running Microsoft Windows® or an operating system that is compatible with ActiveX controls, you cannot install the SDK using SDK Update.

mehr nicht...

_________________
.: Es wird der Tag kommen, an dem wir es nicht mehr ändern können :.
tommie-lie
ontopic starontopic starontopic starontopic starontopic starofftopic starofftopic starofftopic star
Beiträge: 4373

Ubuntu 7.10 "Gutsy Gibbon"

BeitragVerfasst: So 29.06.03 17:01 
Dann müsst ihr das machen, was dort steht.
MS Windows haben, IE ab Version 5.0 benutzen und ActiveX-Controls in den Einstellungen aktivieren.
Wer den IE nicht hat, kann ihn sich von der MS-Seite runterladen, der Link ist dort zu finden. ActiveX-Controls werden glaube ich in der Sichterheitsstufe "Hoch" deaktiviert, "Mittel" ist also das höchste, was man einstellen darf. Wie die Seite danach aussieht, weiß ich selbst nicht, ich habe beides nicht, und DSL habe ich auch nicht *g*

_________________
Your computer is designed to become slower and more unreliable over time, so you have to upgrade. But if you'd like some false hope, I can tell you how to defragment your disk. - Dilbert