Jump to content

_GUICtrlListView


Recommended Posts

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 by EliTe_ThuT
Link to comment
Share on other sites

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

  • Moderators

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

"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

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

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...