Jump to content

Recommended Posts

Posted

Hi,

in this sample the IPinputbox hasn't the standard font. is it possible to use GuiIPAddress with the standard font?

#include <GuiIPAddress.au3>

Opt("MustDeclareVars", 1)

_Main()

Func _Main()
    Local $msg, $hgui, $button, $hIPAddress
    Local $tab, $tab_item, $tab_item2
   
    $hgui = GUICreate("IP Address Control", 300, 170)
   
    $tab = GUICtrlCreateTab(10, 10, 280, 130)
    $tab_item = GUICtrlCreateTabItem("test")
   
    $hIPAddress = _GUICtrlIpAddressCreate ($hgui, 20, 40, 121, 21)
    GUICtrlCreateInput("standard input", 20, 64, 121, 21)
    _GUICtrlIpAddressSet ($hIPAddress, "24.168.2.128")
    GUICtrlCreateTabItem("")
   
    $tab_item2 = GUICtrlCreateTabItem("test2")
    GUICtrlCreateTabItem("")
   
    $button = GUICtrlCreateButton("Exit", 100, 140, 100, 25)

    GUISetState(@SW_SHOW)


    While 1
        $msg = GUIGetMsg()
       
        Select
            Case $msg = $GUI_EVENT_CLOSE Or $msg = $button
                Exit
            Case $tab
                If GUICtrlRead($tab) = 0 Then
                    _GUICtrlIpAddressShowHide ($hIPAddress, @SW_SHOW)
                Else
                    _GUICtrlIpAddressShowHide ($hIPAddress, @SW_HIDE)
                EndIf
        EndSelect
    WEnd
EndFunc   ;==>_Main

[CENTER]Sorry for my bad English... ;)[/CENTER]

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...