Jump to content

Recommended Posts

Posted

What's wrong with the GuiListView.au3 UDF that comes with AutoIt?

 

Posted
25 minutes ago, Verssuss said:

in that udf u have like 200 function ready to use what orgin dont have ???

You OBVIOUSLY haven't even looked at the one that comes with the current version of AutoIt. They both have exactly the same number (158) of current functions.  They both have the exact same function names.  The only difference is the one that comes with AutoIt works and the old one that you referred to hasn't been updated in over 7 years and was written using v3.3.7.20.   :huh2:

Posted (edited)

:wtf:  I just told you that the UDFs are the same except the one in the current AutoIt has been updated.

image.thumb.png.a1afe35294b170f66dea2fa749f8a09d.png

Edited by TheXman
Posted (edited)

select 3 random items an drag move it on end of the list
or do it by button

then edit  it...
save to file.......
exit program............
load it.........................

with udf i want its 2 minutes of work for me

 

#include <GuiConstantsEx.au3>
#include <WindowsConstants.au3>
#include <GUIListView.au3>

HotKeySet("{ESC}", "_quit")

$GUI = GUICreate("gui", 300, 300,500,600)
GUISetState()

$menu_file = GUICtrlCreateMenu("File")
$menu_file_save = GUICtrlCreateMenuItem("Save Settings", $menu_file)
$menu_file_load = GUICtrlCreateMenuItem("Load Settings", $menu_file)

$button_copy = GUICtrlCreateButton("COPY", 220, 0, 50, 25)
$button_up = GUICtrlCreateButton("UP", 220, 40, 50, 25)
$button_down = GUICtrlCreateButton("DOWN", 220, 80, 50, 25)

$ListView = GUICtrlCreateListView("Name", 10, 10, 200, 250, $LVS_SHOWSELALWAYS)
_GUICtrlListView_SetExtendedListViewStyle($ListView, BitOR($LVS_EX_FULLROWSELECT, $LVS_EX_GRIDLINES))

For $i = 0 To 9
    _GUICtrlListView_InsertItem($Listview, "Item " & $i, $i)
Next

While 1
    Sleep(10)

    Switch GUIGetMsg()
        Case $GUI_EVENT_CLOSE
            Exit
        Case $button_up

        Case $button_down

        Case $button_copy
            _GUICtrlListView_CopyItems($ListView, $ListView)
    EndSwitch
WEnd

Func _quit()
    Exit
EndFunc

 

Edited by Verssuss
Posted

Every function in your script is in the included listview UDF, so I'm not seeing the problem.

If I posted any code, assume that code was written using the latest release version unless stated otherwise. Also, if it doesn't work on XP I can't help with that because I don't have access to XP, and I'm not going to.
Give a programmer the correct code and he can do his work for a day. Teach a programmer to debug and he can do his work for a lifetime - by Chirag Gude
How to ask questions the smart way!

I hereby grant any person the right to use any code I post, that I am the original author of, on the autoitscript.com forums, unless I've specifically stated otherwise in the code or the thread post. If you do use my code all I ask, as a courtesy, is to make note of where you got it from.

Back up and restore Windows user files _Array.au3 - Modified array functions that include support for 2D arrays.  -  ColorChooser - An add-on for SciTE that pops up a color dialog so you can select and paste a color code into a script.  -  Customizable Splashscreen GUI w/Progress Bar - Create a custom "splash screen" GUI with a progress bar and custom label.  -  _FileGetProperty - Retrieve the properties of a file  -  SciTE Toolbar - A toolbar demo for use with the SciTE editor  -  GUIRegisterMsg demo - Demo script to show how to use the Windows messages to interact with controls and your GUI.  -   Latin Square password generator

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
×
×
  • Create New...