ACalcutt Posted February 13, 2006 Share Posted February 13, 2006 I am trying to use GUICtrlCreateListView to list programs that will be installed in my PrepSys program. i am running into a problem where the full path is not showing it the gui....it is acting like their is a column set IE if i click the "add extra autorun" button it adds the file into the list and does not have the column problem IE i am not really sure why it is doing this here is the code that is relevant $tab5 = GUICtrlCreateTabItem("Extra Programs");--->Extra Program Locations Tab $extralist = GUICtrlCreateListView("autorun files", 10, 30, 375, 250, $LVS_LIST) $addautorun = GUICtrlCreateButton("Add Extra Autorun", 20, 280, 180, 20) $deleteautorun = GUICtrlCreateButton("Delete Selected", 200, 280, 180, 20) $ExtraAutoRuns = IniReadSection($settings, "ExtraAutoRuns") If Not @error Then For $i = 1 To $ExtraAutoRuns[0][0] GUICtrlCreateListViewItem ($ExtraAutoRuns[$i][1], $extralist) Next EndIf button code Case $msg = $addautorun $extrafile = FileOpenDialog ( "Choost AutoRun File", $workingdir , "AutoRun (*.exe;*.bat)", 1 + 4) If Not @error Then GUICtrlCreateListViewItem ( $extrafile, $extralist ) Case $msg = $deleteautorun _GUICtrlListViewDeleteItemsSelected ($extralist) attached is the whole au3 file PrepSys.au3 Andrew Calcutt Http://www.Vistumbler.net Http://www.TechIdiots.net Its not an error, its a undocumented feature Link to comment Share on other sites More sharing options...
GaryFrost Posted February 13, 2006 Share Posted February 13, 2006 I am trying to use GUICtrlCreateListView to list programs that will be installed in my PrepSys program. i am running into a problem where the full path is not showing it the gui....it is acting like their is a column set IE if i click the "add extra autorun" button it adds the file into the list and does not have the column problem IE i am not really sure why it is doing this here is the code that is relevant $tab5 = GUICtrlCreateTabItem("Extra Programs");--->Extra Program Locations Tab $extralist = GUICtrlCreateListView("autorun files", 10, 30, 375, 250, $LVS_LIST) $addautorun = GUICtrlCreateButton("Add Extra Autorun", 20, 280, 180, 20) $deleteautorun = GUICtrlCreateButton("Delete Selected", 200, 280, 180, 20) $ExtraAutoRuns = IniReadSection($settings, "ExtraAutoRuns") If Not @error Then For $i = 1 To $ExtraAutoRuns[0][0] GUICtrlCreateListViewItem ($ExtraAutoRuns[$i][1], $extralist) Next EndIf button code Case $msg = $addautorun $extrafile = FileOpenDialog ( "Choost AutoRun File", $workingdir , "AutoRun (*.exe;*.bat)", 1 + 4) If Not @error Then GUICtrlCreateListViewItem ( $extrafile, $extralist ) Case $msg = $deleteautorun _GUICtrlListViewDeleteItemsSelected ($extralist) attached is the whole au3 file PrepSys.au3 try setting the column width i.e. $extralist = GUICtrlCreateListView("autorun files", 10, 30, 375, 250, $LVS_LIST) _GUICtrlListViewSetColumnWidth($extralist,0,360) 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...
ACalcutt Posted February 13, 2006 Author Share Posted February 13, 2006 Thanks that worked Andrew Calcutt Http://www.Vistumbler.net Http://www.TechIdiots.net Its not an error, its a undocumented feature 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