Funktionreferenz


_GUICtrlIpAddress_SetFont

Beschreibung anzeigen in

Setzt die Schrift des Controls

#include <GuiIPAddress.au3>
_GUICtrlIpAddress_SetFont ( $hWnd [, $sFaceName = "Arial" [, $iFontSize = 12 [, $iFontWeight = 400 [, $bFontItalic = False]]]] )

Parameter

$hWnd Handle des Controls
$sFaceName [optional] Der Schriftname der Schrift die benutzt wird
$iFontSize [optional] Die Schriftgröße
$iFontWeight [optional] Die Schriftbreite
$bFontItalic [optional] Kursivschrift

Rückgabewert

Keine.

Bemerkungen

- - - - - - - - Erklärung der Controls - - - - - - - -

Beispiel

#include <GuiConstantsEx.au3>
#include <GuiIPAddress.au3>

Example()

Func Example()
    Local $hGui, $hIPAddress, $hIPAddress2

    $hGui = GUICreate("IpAddress: Setzen der Schrift", 400, 50)
    $hIPAddress = _GUICtrlIpAddress_Create($hGui, 10, 10, 150, 30)
    $hIPAddress2 = _GUICtrlIpAddress_Create($hGui, 175, 10, 150, 30)
    GUISetState(@SW_SHOW)

    _GUICtrlIpAddress_Set($hIPAddress, "24.168.2.128")
    _GUICtrlIpAddress_SetFont($hIPAddress, "Times New Roman", 14, 800, True)
    _GUICtrlIpAddress_Set($hIPAddress2, "24.168.2.128")
    _GUICtrlIpAddress_SetFont($hIPAddress2, "Arial", 12, 300)

    ; Die Schleife wiederholt sich, bis der Benutzer die Beenden-Aktion der GUI auslöst.
    Do
    Until GUIGetMsg() = $GUI_EVENT_CLOSE
EndFunc   ;==>Example