ljarutten Posted October 2, 2007 Share Posted October 2, 2007 Hi There, Does someone know if the size can be changed from GuiCtrlCreateListView when I click on a button ? I am searching for days now and I can't find it. Thanks in Advance !!! Link to comment Share on other sites More sharing options...
BrettF Posted October 2, 2007 Share Posted October 2, 2007 (edited) Hi There, Does someone know if the size can be changed from GuiCtrlCreateListView when I click on a button ? I am searching for days now and I can't find it. Thanks in Advance !!! #Include <GuiListView.au3> _GUICtrlListViewSetColumnWidth ( $h_listview, $i_col, $i_width ) I'm not sure if you mean the columns or the actual size? EDIT: Spelling Edited October 2, 2007 by Bert Vist my blog!UDFs: Opens The Default Mail Client | _LoginBox | Convert Reg to AU3 | BASS.au3 (BASS.dll) (Includes various BASS Libraries) | MultiLang.au3 (Multi-Language GUIs!)Example Scripts: Computer Info Telnet Server | "Secure" HTTP Server (Based on Manadar's Server)Software: AAMP- Advanced AutoIt Media Player | WorldCam | AYTU - Youtube Uploader Tutorials: Learning to Script with AutoIt V3Projects (Hardware + AutoIt): ArduinoUseful Links: AutoIt 1-2-3 | The AutoIt Downloads Section: | SciTE4AutoIt3 Full Version! Link to comment Share on other sites More sharing options...
ljarutten Posted October 2, 2007 Author Share Posted October 2, 2007 #Include <GuiListView.au3> _GUICtrlListViewSetColumnWidth ( $h_listview, $i_col, $i_width ) I'm not sure if you mean the columns or the actual size? EDIT: Spelling Thanks for your awnser, but I do not mean the columns size but the actual size of the controll Link to comment Share on other sites More sharing options...
smashly Posted October 2, 2007 Share Posted October 2, 2007 Hi,#include <GUIConstants.au3> Global $state $Gui = GUICreate("listview resize", 220, 200) $listview = GUICtrlCreateListView ("col1 |col2|col3 ", 10, 10, 200, 150) $button = GUICtrlCreateButton ("Resize",75,170,70,20) GUICtrlCreateListViewItem("item2|col22|col23",$listview) GUISetState() While 1 $msg = GUIGetMsg () Select Case $msg = $GUI_EVENT_CLOSE Exit Case $msg = $button If Not $state Then $state = 1 ControlMove($Gui, "", $listview, 40, 40, 140, 100) Else $state = 0 ControlMove($Gui, "", $listview, 10, 10, 200, 150) EndIf EndSelect WEndCheers Link to comment Share on other sites More sharing options...
ljarutten Posted October 2, 2007 Author Share Posted October 2, 2007 Hi,#include <GUIConstants.au3> Global $state $Gui = GUICreate("listview resize", 220, 200) $listview = GUICtrlCreateListView ("col1 |col2|col3 ", 10, 10, 200, 150) $button = GUICtrlCreateButton ("Resize",75,170,70,20) GUICtrlCreateListViewItem("item2|col22|col23",$listview) GUISetState() While 1 $msg = GUIGetMsg () Select Case $msg = $GUI_EVENT_CLOSE Exit Case $msg = $button If Not $state Then $state = 1 ControlMove($Gui, "", $listview, 40, 40, 140, 100) Else $state = 0 ControlMove($Gui, "", $listview, 10, 10, 200, 150) EndIf EndSelect WEndCheers Thanks u are the greatest 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