sandin Posted December 6, 2008 Posted December 6, 2008 Is there a way to change _GUICtrlIpAddress_Create()'s style? Try using this example script, and when u run the _GUICtrlIpAddress_Create() looks normal, though if u turn on the line 16, then it looks like "3D" and user can't see any dots, so is there a way to loose "3D" corners of the _GUICtrlIpAddress_Create()? #include <GUIConstantsEx.au3> #include <WindowsConstants.au3> #include <StaticConstants.au3> #include <EditConstants.au3> #include <GuiIPAddress.au3> $Form2 = GUICreate("Form1", 160, 300, -1, -1, $WS_POPUP) GUICtrlCreateGraphic(0, -1, 160, 301, $SS_BLACKFRAME) $IP1 = _GUICtrlIpAddress_Create($Form2, 5, 90, 90, 20) GUICtrlCreateLabel(":", 96, 90, 3, 17) $PORT1 = GUICtrlCreateInput("", 100, 90, 55, 20, $ES_CENTER+$ES_NUMBER) GUICtrlSetLimit(-1, 5) $OK = GUICtrlCreateButton("OK", 2, 278, 78, 20) GUICtrlSetState(-1, $GUI_DISABLE) $CANCEL = GUICtrlCreateButton("Cancel", 80, 278, 78, 20) ;~ DllCall("user32.dll", "int", "AnimateWindow", "hwnd", $Form2, "int", 500, "long", 0x00040004) ; <-- TURN THIS LINE ON/OFF TO NOTICE DIFERENCE GUISetState(@SW_SHOW, $Form2) While 1 if GUIGetMsg() = $CANCEL then Exit Sleep(10) WEnd Some cool glass and image menu | WinLIRC remote controler | Happy Holidays to all... | Bounce the sun, a game in which you must save the sun from falling by bouncing it back into the sky | Hook Leadtek WinFast TV Card Remote Control Msges | GDI+ sliding toolbar | MIDI Keyboard (early alpha stage, with lots of bugs to fix) | Alt+Tab replacement | CPU Benchmark with pretty GUI | Ini Editor - Edit/Create your ini files with great ease | Window Manager (take total control of your windows) Pretty GUI! | Pop-Up window from a button | Box slider for toolbar | Display sound volume on desktop | Switch hotkeys with mouse scroll
Andreik Posted December 6, 2008 Posted December 6, 2008 Is there a way to change _GUICtrlIpAddress_Create()'s style? Try using this example script, and when u run the _GUICtrlIpAddress_Create() looks normal, though if u turn on the line 16, then it looks like "3D" and user can't see any dots, so is there a way to loose "3D" corners of the _GUICtrlIpAddress_Create()? #include <GUIConstantsEx.au3> #include <WindowsConstants.au3> #include <StaticConstants.au3> #include <EditConstants.au3> #include <GuiIPAddress.au3> $Form2 = GUICreate("Form1", 160, 300, -1, -1, $WS_POPUP) GUICtrlCreateGraphic(0, -1, 160, 301, $SS_BLACKFRAME) $IP1 = _GUICtrlIpAddress_Create($Form2, 5, 90, 90, 20) GUICtrlCreateLabel(":", 96, 90, 3, 17) $PORT1 = GUICtrlCreateInput("", 100, 90, 55, 20, $ES_CENTER+$ES_NUMBER) GUICtrlSetLimit(-1, 5) $OK = GUICtrlCreateButton("OK", 2, 278, 78, 20) GUICtrlSetState(-1, $GUI_DISABLE) $CANCEL = GUICtrlCreateButton("Cancel", 80, 278, 78, 20) ;~ DllCall("user32.dll", "int", "AnimateWindow", "hwnd", $Form2, "int", 500, "long", 0x00040004) ; <-- TURN THIS LINE ON/OFF TO NOTICE DIFERENCE GUISetState(@SW_SHOW, $Form2) While 1 if GUIGetMsg() = $CANCEL then Exit Sleep(10) WEnd You can set style and ex-style. _GUICtrlIpAddress_Create($hWnd, $iX, $iY, $iWidth = 125, $iHeigth = 25, $iStyles = 0x00000000, $iExstyles = 0x00000000)
ProgAndy Posted December 6, 2008 Posted December 6, 2008 Just redraw the form after WinAnimate (somehow, it is not correctly drawn when using AnimateWindow) _WinAPI_RedrawWindow($Form2) *GERMAN* [note: you are not allowed to remove author / modified info from my UDFs]My UDFs:[_SetImageBinaryToCtrl] [_TaskDialog] [AutoItObject] [Animated GIF (GDI+)] [ClipPut for Image] [FreeImage] [GDI32 UDFs] [GDIPlus Progressbar] [Hotkey-Selector] [Multiline Inputbox] [MySQL without ODBC] [RichEdit UDFs] [SpeechAPI Example] [WinHTTP]UDFs included in AutoIt: FTP_Ex (as FTPEx), _WinAPI_SetLayeredWindowAttributes
sandin Posted December 6, 2008 Author Posted December 6, 2008 Just redraw the form after WinAnimate (somehow, it is not correctly drawn when using AnimateWindow)_WinAPI_RedrawWindow($Form2)tnx =D Some cool glass and image menu | WinLIRC remote controler | Happy Holidays to all... | Bounce the sun, a game in which you must save the sun from falling by bouncing it back into the sky | Hook Leadtek WinFast TV Card Remote Control Msges | GDI+ sliding toolbar | MIDI Keyboard (early alpha stage, with lots of bugs to fix) | Alt+Tab replacement | CPU Benchmark with pretty GUI | Ini Editor - Edit/Create your ini files with great ease | Window Manager (take total control of your windows) Pretty GUI! | Pop-Up window from a button | Box slider for toolbar | Display sound volume on desktop | Switch hotkeys with mouse scroll
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