Schlumpf Posted October 27, 2006 Share Posted October 27, 2006 Hi, in this sample the IPinputbox hasn't the standard font. is it possible to use GuiIPAddress with the standard font? expandcollapse popup#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] Link to comment Share on other sites More sharing options...
Danny35d Posted October 27, 2006 Share Posted October 27, 2006 You can use _GUICtrlIpAddressSetFont($hIPAddress, "MS Sans Serif", 10, 400, False) AutoIt Scripts:NetPrinter - Network Printer UtilityRobocopyGUI - GUI interface for M$ robocopy command line Link to comment Share on other sites More sharing options...
GaryFrost Posted October 28, 2006 Share Posted October 28, 2006 You can use _GUICtrlIpAddressSetFont($hIPAddress, "MS Sans Serif", 10, 400, False) all you reall need to do is _GUICtrlIpAddressSetFont($hIPAddress, "MS Sans Serif") The rest default to those values SciTE for AutoItDirections for Submitting Standard UDFs Don't argue with an idiot; people watching may not be able to tell the difference. Link to comment Share on other sites More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now