Hypertrophy Posted April 16, 2009 Share Posted April 16, 2009 hello, my first post i've wondering if there is way to make control like edit that can be resize inside window. example: edit is inside child window and if take the corners of window and resize the edit will reisize with it. anyone know if there example scripts like this that would be great help. Link to comment Share on other sites More sharing options...
Yashied Posted April 16, 2009 Share Posted April 16, 2009 hello, my first post i've wondering if there is way to make control like edit that can be resize inside window. example: edit is inside child window and if take the corners of window and resize the edit will reisize with it. anyone know if there example scripts like this that would be great help.AutoIt Help File => $WS_SIZEBOX My UDFs: iKey | FTP Uploader | Battery Checker | Boot Manager | Font Viewer | UDF Keyword Manager | Run Dialog Replacement | USBProtect | 3D Axis | Calculator | Sleep | iSwitcher | TM | NetHelper | File Types Manager | Control Viewer | SynFolders | DLL Helper Animated Tray Icons UDF Library | Hotkeys UDF Library | Hotkeys Input Control UDF Library | Caret Shape UDF Library | Context Help UDF Library | Most Recently Used List UDF Library | Icons UDF Library | FTP UDF Library | Script Communications UDF Library | Color Chooser UDF Library | Color Picker Control UDF Library | IPHelper (Vista/7) UDF Library | WinAPI Extended UDF Library | WinAPIVhd UDF Library | Icon Chooser UDF Library | Copy UDF Library | Restart UDF Library | Event Log UDF Library | NotifyBox UDF Library | Pop-up Windows UDF Library | TVExplorer UDF Library | GuiHotKey UDF Library | GuiSysLink UDF Library | Package UDF Library | Skin UDF Library | AITray UDF Library | RDC UDF Library Appropriate path | Button text color | Gaussian random numbers | Header's styles (Vista/7) | ICON resource enumeration | Menu & INI | Tabbed string size | Tab's skin | Pop-up circular menu | Progress Bar without animation (Vista/7) | Registry export | Registry path jumping | Unique hardware ID | Windows alignment More... Link to comment Share on other sites More sharing options...
Hypertrophy Posted April 16, 2009 Author Share Posted April 16, 2009 thanks you. i entered that into my code and it correctly re-sizes the edit control but not the window. code below to help identify my problem expandcollapse popup; Code ; ; Created by coder09 ; #include <GuiConstantsEx.au3> #include <GuiEdit.au3> #include <WindowsConstants.au3> Global $lastdragIP = -1 Dim $hInput_GUI[50], $Input[50] $hGUI = GUICreate("Re-size edit control", 300, 200) $button = GUICtrlCreateButton("", 50, 50, 50, 20) GUISetState() While 1 $msg = GUIGetMsg() Switch $msg Case $GUI_EVENT_CLOSE ExitLoop Case $button If $lastdragIP < 49 Then $lastdragIP += 1 createNextdragIP($lastdragIP) EndIf EndSwitch WEnd Func createNextdragIP($nw) $start = WinGetPos($hgui) $hInput_GUI[$nw] = GUICreate("", 120, 22, 100, 100, $WS_POPUP, $WS_EX_TOOLWINDOW) GUICtrlSetStyle(-1, $WS_SIZEBOX) $Input[$nw] = GUICtrlCreateEdit("", 0, 0, 120, 22, BitOR($ES_AUTOVSCROLL, $ES_AUTOHSCROLL, $ES_WANTRETURN)) GUICtrlSetStyle(-1, $WS_SIZEBOX) GUISetState() EndFunc Link to comment Share on other sites More sharing options...
Yashied Posted April 16, 2009 Share Posted April 16, 2009 (edited) thanks you. i entered that into my code and it correctly re-sizes the edit control but not the window. code below to help identify my problem$hInput_GUI[$nw] = GUICreate("", 120, 22, 100, 100, BitOR($WS_POPUP, $WS_SIZEBOX), $WS_EX_TOOLWINDOW) $Input[$nw] = GUICtrlCreateEdit("", 0, 0, 120, 22, BitOR($ES_AUTOVSCROLL, $ES_AUTOHSCROLL, $ES_WANTRETURN, $WS_VSCROLL, $WS_HSCROLL)) GUICtrlSetResizing(-1, $GUI_DOCKAUTO) Also, your code will not work correctly. You must arrange your own loop for createNextdragIP(). Edited April 16, 2009 by Yashied My UDFs: iKey | FTP Uploader | Battery Checker | Boot Manager | Font Viewer | UDF Keyword Manager | Run Dialog Replacement | USBProtect | 3D Axis | Calculator | Sleep | iSwitcher | TM | NetHelper | File Types Manager | Control Viewer | SynFolders | DLL Helper Animated Tray Icons UDF Library | Hotkeys UDF Library | Hotkeys Input Control UDF Library | Caret Shape UDF Library | Context Help UDF Library | Most Recently Used List UDF Library | Icons UDF Library | FTP UDF Library | Script Communications UDF Library | Color Chooser UDF Library | Color Picker Control UDF Library | IPHelper (Vista/7) UDF Library | WinAPI Extended UDF Library | WinAPIVhd UDF Library | Icon Chooser UDF Library | Copy UDF Library | Restart UDF Library | Event Log UDF Library | NotifyBox UDF Library | Pop-up Windows UDF Library | TVExplorer UDF Library | GuiHotKey UDF Library | GuiSysLink UDF Library | Package UDF Library | Skin UDF Library | AITray UDF Library | RDC UDF Library Appropriate path | Button text color | Gaussian random numbers | Header's styles (Vista/7) | ICON resource enumeration | Menu & INI | Tabbed string size | Tab's skin | Pop-up circular menu | Progress Bar without animation (Vista/7) | Registry export | Registry path jumping | Unique hardware ID | Windows alignment More... Link to comment Share on other sites More sharing options...
Hypertrophy Posted April 17, 2009 Author Share Posted April 17, 2009 (edited) thank you very much good sir. i appreciate your help. Edited April 17, 2009 by coder09 Link to comment Share on other sites More sharing options...
Yashied Posted April 17, 2009 Share Posted April 17, 2009 --??? My UDFs: iKey | FTP Uploader | Battery Checker | Boot Manager | Font Viewer | UDF Keyword Manager | Run Dialog Replacement | USBProtect | 3D Axis | Calculator | Sleep | iSwitcher | TM | NetHelper | File Types Manager | Control Viewer | SynFolders | DLL Helper Animated Tray Icons UDF Library | Hotkeys UDF Library | Hotkeys Input Control UDF Library | Caret Shape UDF Library | Context Help UDF Library | Most Recently Used List UDF Library | Icons UDF Library | FTP UDF Library | Script Communications UDF Library | Color Chooser UDF Library | Color Picker Control UDF Library | IPHelper (Vista/7) UDF Library | WinAPI Extended UDF Library | WinAPIVhd UDF Library | Icon Chooser UDF Library | Copy UDF Library | Restart UDF Library | Event Log UDF Library | NotifyBox UDF Library | Pop-up Windows UDF Library | TVExplorer UDF Library | GuiHotKey UDF Library | GuiSysLink UDF Library | Package UDF Library | Skin UDF Library | AITray UDF Library | RDC UDF Library Appropriate path | Button text color | Gaussian random numbers | Header's styles (Vista/7) | ICON resource enumeration | Menu & INI | Tabbed string size | Tab's skin | Pop-up circular menu | Progress Bar without animation (Vista/7) | Registry export | Registry path jumping | Unique hardware ID | Windows alignment More... Link to comment Share on other sites More sharing options...
Hypertrophy Posted April 17, 2009 Author Share Posted April 17, 2009 anyway to remove scrollbars? Link to comment Share on other sites More sharing options...
Hypertrophy Posted April 18, 2009 Author Share Posted April 18, 2009 hello anyone understand how remove scrollbars? thanks you. Link to comment Share on other sites More sharing options...
P0ZiTR0N Posted April 18, 2009 Share Posted April 18, 2009 don't see scrollbars in your code.. can you post the image? or just say for what GUI control you don't want scrollbar Link to comment Share on other sites More sharing options...
Hypertrophy Posted April 18, 2009 Author Share Posted April 18, 2009 yes thank you ive understand how remove scrollbars $hInput_GUI[$nw] = GUICreate("", 120, 22, 100, 100, BitOR($WS_POPUP, $WS_SIZEBOX), $WS_EX_TOOLWINDOW) $Input[$nw] = GUICtrlCreateEdit("", 0, 0, 120, 22, BitOR($ES_AUTOVSCROLL, $ES_AUTOHSCROLL, $ES_WANTRETURN, $WS_VSCROLL, $WS_HSCROLL)) GUICtrlSetResizing(-1, $GUI_DOCKAUTO) take out $WS_VSCROLL, $WS_HSCROLL 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