English
Source / code snippets

Gettextcolor Gettextfont

 
GetTextColor GetTextFont of Andreas Miethe:
CompileMarkSeparation
 $H Windows.ph
Declare Textmetric#,Buffer#
Dim TextMetric#,56
Dim Buffer#,260
cls
UseFont "Arial",24,0,1,0,0
Color 12,15
~GetTextMetrics(%hdc,TextMetric#)
Print "Fonthöhe  ",Long(Textmetric#,0)

If Long(Textmetric#,28) <> 400

    Print "           fett"

Else

    Print "           nicht fett"

Endif

If Byte(Textmetric#,49)

    Print "           unterstrichen"

Else

    Print "           nicht unterstrichen"

Endif

If Byte(Textmetric#,48)

    Print "           kursiv"

Else

    Print "           nicht kursiv"

Endif

Print "Farbe      $";Hex$(~GetTextColor(%hdc))
~GetTextFace(%hdc,260,Buffer#)
Print "Fontname  ",String$(Buffer#,0)
DrawText 0,90,"Testtext"
waitinput
Dispose TextMetric#
Dispose Buffer#
end
 
01/31/06  
 



Zum Quelltext


Topictitle, max. 100 characters.
 

Systemprofile:

no Systemprofil laid out. [anlegen]

XProfan:

 Posting  Font  Smilies  ▼ 

Please register circa a Posting To verfassen.
 

Topic-Options

1.745 Views

Untitledvor 0 min.
Georg02/19/13

Themeninformationen

this Topic has 1 subscriber:

iF (1x)


Admins  |  AGB  |  Applications  |  Authors  |  Chat  |  Privacy Policy  |  Download  |  Entrance  |  Help  |  Merchantportal  |  Imprint  |  Mart  |  Interfaces  |  SDK  |  Services  |  Games  |  Search  |  Support

One proposition all XProfan, The there's!


My XProfan
Private Messages
Own Storage Forum
Topics-Remember-List
Own Posts
Own Topics
Clipboard
Log off
 Deutsch English Français Español Italia
Translations

Privacy Policy


we use Cookies only as Session-Cookies because of the technical necessity and with us there no Cookies of Drittanbietern.

If you here on our Website click or navigate, stimmst You ours registration of Information in our Cookies on XProfan.Net To.

further Information To our Cookies and moreover, How You The control above keep, find You in ours nachfolgenden Datenschutzerklärung.


all rightDatenschutzerklärung
i want none Cookie