EliTe_ThuT Posted April 16, 2008 Share Posted April 16, 2008 (edited) Hi, I have a window and I want to use a listview control. I have 3 tabs in my window...and when I put my code in the second tab, it stills displays the listview on all sheets... help plz !! $GUI = GuiCreate("WinTitle", 365, 335,-1, -1, "", $WS_EX_ACCEPTFILES) $font="Comic Sans MS" $PageControl1 = GUICtrlCreateTab(8, 1, 350, 268) ;[...some script here...] ;Sheet 2 Script Section... $TabSheet2 = GUICtrlCreateTabItem("Manager") $hListView = _GUICtrlListView_Create($GUI, "",10, 30, 320, 100, BitOr($LVS_REPORT, $LVS_SHOWSELALWAYS)) _GUICtrlListView_SetExtendedListViewStyle($hListView, BitOR($LVS_EX_GRIDLINES, $LVS_EX_FULLROWSELECT)) ; Add columns _GUICtrlListView_InsertColumn($hListView, 0, "Folder", 100) _GUICtrlListView_InsertColumn($hListView, 1, "Number of Files", 100) $FolderList = _FileListToArray ( @ScriptDir & "\Plugin" , "*", 2 ) ;Add Items Do _GUICtrlListView_AddItem($hListView, $FolderList[$FolderList[0]], 0) $FolderList[0]-=1 Until $FolderList[0] = 0 $FolderList = _FileListToArray ( @ScriptDir & "\Plugin" , "*",2 ) $FileList = _FileListToArray ( @ScriptDir & "\Plugin\" & $FolderList[$Folderlist[0]] , "*.dll", 1 ) $Count = 0 Do $FileList = _FileListToArray ( @ScriptDir & "\Plugin\" & $FolderList[$Folderlist[0]] , "*", 0 ) _GUICtrlListView_AddSubItem($hListView, 0 + $Count, $FileList[0], 1) $Folderlist[0]-=1 $Count +=1 Until $Folderlist[0]= 0 Edited April 16, 2008 by EliTe_ThuT Link to comment Share on other sites More sharing options...
GaryFrost Posted April 16, 2008 Share Posted April 16, 2008 Use GuiCtrlCreateListView instead 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...
Swift Posted April 16, 2008 Share Posted April 16, 2008 And for most of those functions use: $ListV=GUICtrlGetHandle($ListView) And use $ListV for your deleting...etc. Link to comment Share on other sites More sharing options...
GaryFrost Posted April 16, 2008 Share Posted April 16, 2008 And for most of those functions use:$ListV=GUICtrlGetHandle($ListView)And use $ListV for your deleting...etc. Don't need to with the latest betas 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...
EliTe_ThuT Posted April 16, 2008 Author Share Posted April 16, 2008 (edited) Use GuiCtrlCreateListView insteadYeah but the things I wanted to do aren't working with GUICtrlCreateListView ... Edited April 16, 2008 by EliTe_ThuT Link to comment Share on other sites More sharing options...
GaryFrost Posted April 16, 2008 Share Posted April 16, 2008 Yeah but the things I wanted to do aren't working with GUICtrlCreateListView ...Such as? All but one or two functions work with the built-in create in the beta. 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...
Swift Posted April 16, 2008 Share Posted April 16, 2008 Or, If your not using beta, as me, use what I suggested earlier. Link to comment Share on other sites More sharing options...
EliTe_ThuT Posted April 16, 2008 Author Share Posted April 16, 2008 (edited) Such as? All but one or two functions work with the built-in create in the beta.Yeah...but i'm not using betaOr, If your not using beta, as me, use what I suggested earlier. Edited April 16, 2008 by EliTe_ThuT Link to comment Share on other sites More sharing options...
Moderators SmOke_N Posted April 17, 2008 Moderators Share Posted April 17, 2008 Yeah...but i'm not using beta"Here's your sign"Beta has taken a whole other approach to the GUI* functions. I'd suggest just upgrading your autoit to it and be done with the issues.Otherwise you're asking how to make things compatible with 15 version releases ago (15 is a hypothetical number, I have no idea how many releases there have been since the stable). Common sense plays a role in the basics of understanding AutoIt... If you're lacking in that, do us all a favor, and step away from the computer. Link to comment Share on other sites More sharing options...
EliTe_ThuT Posted April 17, 2008 Author Share Posted April 17, 2008 "Here's your sign"Beta has taken a whole other approach to the GUI* functions. I'd suggest just upgrading your autoit to it and be done with the issues.Otherwise you're asking how to make things compatible with 15 version releases ago (15 is a hypothetical number, I have no idea how many releases there have been since the stable).But are my older scripts 3.2.10.0 gona work with beta ? Link to comment Share on other sites More sharing options...
GaryFrost Posted April 17, 2008 Share Posted April 17, 2008 But are my older scripts 3.2.10.0 gona work with beta ?They should.You can have both the release and beta installed at the same time.Just make a copy of the script in question and try it with the beta. 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