Jump to content

GUIListViewEx - Deprecated Version


Melba23
 Share

Recommended Posts

  • Moderators

strikeraid,

I didn't declare an array

You should still be able to drag - but you do need to use the UDF function _GUIListViewEx_Insert to add lines to the ListView - otherwise it does not know they are there. I suspect this is what is happening to you.

If you want to post your code I would be happy to look at it. :)

M23

Public_Domain.png.2d871819fcb9957cf44f4514551a2935.png Any of my own code posted anywhere on the forum is available for use by others without any restriction of any kind

Open spoiler to see my UDFs:

Spoiler

ArrayMultiColSort ---- Sort arrays on multiple columns
ChooseFileFolder ---- Single and multiple selections from specified path treeview listing
Date_Time_Convert -- Easily convert date/time formats, including the language used
ExtMsgBox --------- A highly customisable replacement for MsgBox
GUIExtender -------- Extend and retract multiple sections within a GUI
GUIFrame ---------- Subdivide GUIs into many adjustable frames
GUIListViewEx ------- Insert, delete, move, drag, sort, edit and colour ListView items
GUITreeViewEx ------ Check/clear parent and child checkboxes in a TreeView
Marquee ----------- Scrolling tickertape GUIs
NoFocusLines ------- Remove the dotted focus lines from buttons, sliders, radios and checkboxes
Notify ------------- Small notifications on the edge of the display
Scrollbars ----------Automatically sized scrollbars with a single command
StringSize ---------- Automatically size controls to fit text
Toast -------------- Small GUIs which pop out of the notification area

 

Link to comment
Share on other sites

  • 2 months later...

Hi Melba23,

Thank you for all the good work, I am beginner, and i hope to reuse these awsome prototypes.

Example 1:LVEx_Example_1.au3 file has #include <GUIListViewEx_Sort.au3> and when i changed to #include <GUIListViewEx.au3> it compiled.

Example 3:LVEx_Example_3.au3

is throwing this error

C:\Data\Tait\autolt_script\Temp_playaround_files\GUIListViewEx\LVEx_Example_3.au3(66,28) : ERROR: $aLVEx_Data: undeclared global variable.

Switch $aLVEx_Data[0][1]

corrected by declaring Global $aLVEx_Data[1][5] = [[0, 0]]. But i cannot add any elements. Am i doing it wrong..

Cheers

Link to comment
Share on other sites

  • Moderators

Protocoder,

Thanks for that - it seems I did not correctly update all the examples after the last change. ;) At least the main UDF was not at fault. :huh2:

New zip with the amended examples in the first post. :alien:

M23

Public_Domain.png.2d871819fcb9957cf44f4514551a2935.png Any of my own code posted anywhere on the forum is available for use by others without any restriction of any kind

Open spoiler to see my UDFs:

Spoiler

ArrayMultiColSort ---- Sort arrays on multiple columns
ChooseFileFolder ---- Single and multiple selections from specified path treeview listing
Date_Time_Convert -- Easily convert date/time formats, including the language used
ExtMsgBox --------- A highly customisable replacement for MsgBox
GUIExtender -------- Extend and retract multiple sections within a GUI
GUIFrame ---------- Subdivide GUIs into many adjustable frames
GUIListViewEx ------- Insert, delete, move, drag, sort, edit and colour ListView items
GUITreeViewEx ------ Check/clear parent and child checkboxes in a TreeView
Marquee ----------- Scrolling tickertape GUIs
NoFocusLines ------- Remove the dotted focus lines from buttons, sliders, radios and checkboxes
Notify ------------- Small notifications on the edge of the display
Scrollbars ----------Automatically sized scrollbars with a single command
StringSize ---------- Automatically size controls to fit text
Toast -------------- Small GUIs which pop out of the notification area

 

Link to comment
Share on other sites

  • 3 weeks later...
  • Moderators

AutoitNewbie2011,

Simple answer - Example 3 does not have sortable ListViews! ;)

You need to set the $fSort parameter in _GUIListViewEx_Init if you want to sort - look at Example 1 to see how to do it. :huh2:

M23

Public_Domain.png.2d871819fcb9957cf44f4514551a2935.png Any of my own code posted anywhere on the forum is available for use by others without any restriction of any kind

Open spoiler to see my UDFs:

Spoiler

ArrayMultiColSort ---- Sort arrays on multiple columns
ChooseFileFolder ---- Single and multiple selections from specified path treeview listing
Date_Time_Convert -- Easily convert date/time formats, including the language used
ExtMsgBox --------- A highly customisable replacement for MsgBox
GUIExtender -------- Extend and retract multiple sections within a GUI
GUIFrame ---------- Subdivide GUIs into many adjustable frames
GUIListViewEx ------- Insert, delete, move, drag, sort, edit and colour ListView items
GUITreeViewEx ------ Check/clear parent and child checkboxes in a TreeView
Marquee ----------- Scrolling tickertape GUIs
NoFocusLines ------- Remove the dotted focus lines from buttons, sliders, radios and checkboxes
Notify ------------- Small notifications on the edge of the display
Scrollbars ----------Automatically sized scrollbars with a single command
StringSize ---------- Automatically size controls to fit text
Toast -------------- Small GUIs which pop out of the notification area

 

Link to comment
Share on other sites

  • Moderators

AutoitNewbie2011,

I see the problem and after a bit of detective work I understand completely why the sort does not work correctly - an array is declared as Local rather then Global. But I am very busy this weekend, please be patient and I will fix it as soon as I can. :huh2:

M23

Public_Domain.png.2d871819fcb9957cf44f4514551a2935.png Any of my own code posted anywhere on the forum is available for use by others without any restriction of any kind

Open spoiler to see my UDFs:

Spoiler

ArrayMultiColSort ---- Sort arrays on multiple columns
ChooseFileFolder ---- Single and multiple selections from specified path treeview listing
Date_Time_Convert -- Easily convert date/time formats, including the language used
ExtMsgBox --------- A highly customisable replacement for MsgBox
GUIExtender -------- Extend and retract multiple sections within a GUI
GUIFrame ---------- Subdivide GUIs into many adjustable frames
GUIListViewEx ------- Insert, delete, move, drag, sort, edit and colour ListView items
GUITreeViewEx ------ Check/clear parent and child checkboxes in a TreeView
Marquee ----------- Scrolling tickertape GUIs
NoFocusLines ------- Remove the dotted focus lines from buttons, sliders, radios and checkboxes
Notify ------------- Small notifications on the edge of the display
Scrollbars ----------Automatically sized scrollbars with a single command
StringSize ---------- Automatically size controls to fit text
Toast -------------- Small GUIs which pop out of the notification area

 

Link to comment
Share on other sites

  • Moderators

AutoitNewbie2011,

First some explanation of why the UDF did not sort correctly. When you call the _GUICtrlListView_SimpleSort function, the $vDescending parameter sets the required sort status of the column (Empty = not sorted, True = Sorted descending, False = Sorted ascending). Once sorted, the value is reset to reflect the required status for the next sort so that reclicking the column reverses the sort order. In the UDF I was mistakenly recreating this array as a Local variable each time the column was clicked, so the status was always Empty and the ListView was therefore always sorted in decending order. :huh2:

What I have now done is saved the $vDescending array within the existing Global array used to store information for initalised ListViews and it can therefore be reused each time the column is clicked to enable the automatic reverse sort on a subsequent click. ;)

A new version of the UDF is now in the first post. :alien:

M23

Edit: New version available.

Edited by Melba23

Public_Domain.png.2d871819fcb9957cf44f4514551a2935.png Any of my own code posted anywhere on the forum is available for use by others without any restriction of any kind

Open spoiler to see my UDFs:

Spoiler

ArrayMultiColSort ---- Sort arrays on multiple columns
ChooseFileFolder ---- Single and multiple selections from specified path treeview listing
Date_Time_Convert -- Easily convert date/time formats, including the language used
ExtMsgBox --------- A highly customisable replacement for MsgBox
GUIExtender -------- Extend and retract multiple sections within a GUI
GUIFrame ---------- Subdivide GUIs into many adjustable frames
GUIListViewEx ------- Insert, delete, move, drag, sort, edit and colour ListView items
GUITreeViewEx ------ Check/clear parent and child checkboxes in a TreeView
Marquee ----------- Scrolling tickertape GUIs
NoFocusLines ------- Remove the dotted focus lines from buttons, sliders, radios and checkboxes
Notify ------------- Small notifications on the edge of the display
Scrollbars ----------Automatically sized scrollbars with a single command
StringSize ---------- Automatically size controls to fit text
Toast -------------- Small GUIs which pop out of the notification area

 

Link to comment
Share on other sites

Hi Melba,

I started using this UDF and I feel very good with it.

I just need a further information: is it possible to use (i.e. click on) a single cell from a row and editing it?

Mainly aLL started looking at the other project you started and didn't follow but just gave the example for the community.

I need to manage a long .csv file (already converted to array to minimize effort)

A solution as the one you described for the 52 weeks in the year could be suitable, i.e. my interest is create 10 tabitems and for each of them 3 child gui where to put a subset of the main array (trough main filter given by tabitem and other filters for every child gui).

Then I need to have the possibility to change one value of a cell and save all.

Thanks,

Marco

Edited by marko001
Link to comment
Share on other sites

  • Moderators

marko001,

started looking at the other project you started

I assume you mean this script. I do not see integrating the UDF with that prototype editing code as a terribly difficult project, as long as you understand how to use message handlers. But it is not something that I am interested in pursuing at the moment - and your post seems to be asking me to produce the script for you! I suggest that you have a go at it yourself first and see how you get on. ;)

But please start a new topic in General Help if you do find you need help - that way we do not clutter up this thread which should deal solely with the GUICtrlListViewEx UDF. :huh2:

Have fun. :alien:

M23

Public_Domain.png.2d871819fcb9957cf44f4514551a2935.png Any of my own code posted anywhere on the forum is available for use by others without any restriction of any kind

Open spoiler to see my UDFs:

Spoiler

ArrayMultiColSort ---- Sort arrays on multiple columns
ChooseFileFolder ---- Single and multiple selections from specified path treeview listing
Date_Time_Convert -- Easily convert date/time formats, including the language used
ExtMsgBox --------- A highly customisable replacement for MsgBox
GUIExtender -------- Extend and retract multiple sections within a GUI
GUIFrame ---------- Subdivide GUIs into many adjustable frames
GUIListViewEx ------- Insert, delete, move, drag, sort, edit and colour ListView items
GUITreeViewEx ------ Check/clear parent and child checkboxes in a TreeView
Marquee ----------- Scrolling tickertape GUIs
NoFocusLines ------- Remove the dotted focus lines from buttons, sliders, radios and checkboxes
Notify ------------- Small notifications on the edge of the display
Scrollbars ----------Automatically sized scrollbars with a single command
StringSize ---------- Automatically size controls to fit text
Toast -------------- Small GUIs which pop out of the notification area

 

Link to comment
Share on other sites

  • Moderators

marko001,

From the function header for _GUIListViewEx_Init (always a good idea to read the function headers when the author has gone to the trouble to write them): ;)

; Syntax.........: _GUIListViewEx_Init($hLV, [$aArray = "", [$iStart = 0, [$iColour, [$fSort]]]])
;[...]
;                  $fSort   - True = ListView can be sorted by click on column header - (Default = False)

So set the $fSort parameter and you will be able to sort your columns. :huh2:

M23

Public_Domain.png.2d871819fcb9957cf44f4514551a2935.png Any of my own code posted anywhere on the forum is available for use by others without any restriction of any kind

Open spoiler to see my UDFs:

Spoiler

ArrayMultiColSort ---- Sort arrays on multiple columns
ChooseFileFolder ---- Single and multiple selections from specified path treeview listing
Date_Time_Convert -- Easily convert date/time formats, including the language used
ExtMsgBox --------- A highly customisable replacement for MsgBox
GUIExtender -------- Extend and retract multiple sections within a GUI
GUIFrame ---------- Subdivide GUIs into many adjustable frames
GUIListViewEx ------- Insert, delete, move, drag, sort, edit and colour ListView items
GUITreeViewEx ------ Check/clear parent and child checkboxes in a TreeView
Marquee ----------- Scrolling tickertape GUIs
NoFocusLines ------- Remove the dotted focus lines from buttons, sliders, radios and checkboxes
Notify ------------- Small notifications on the edge of the display
Scrollbars ----------Automatically sized scrollbars with a single command
StringSize ---------- Automatically size controls to fit text
Toast -------------- Small GUIs which pop out of the notification area

 

Link to comment
Share on other sites

  • 2 months later...
  • Moderators

[NEW VERSION] - 26 Aug 11

New: Now works with ListViews with checkboxes. Added a parameter to _GUIListViewEx_Return_Array to return either the text or the checkbox state of the ListView. Default is to return the text as at present, so this is not script-breaking.

Fixed: Now works correctly with native ListViews with null values in the columns.

Thanks to NunoBorges for the prods to get it working as he wanted! :)

New UDF, first example and zip in first post. :)

M23

Edit: Right name now! :mellow:

Edited by Melba23

Public_Domain.png.2d871819fcb9957cf44f4514551a2935.png Any of my own code posted anywhere on the forum is available for use by others without any restriction of any kind

Open spoiler to see my UDFs:

Spoiler

ArrayMultiColSort ---- Sort arrays on multiple columns
ChooseFileFolder ---- Single and multiple selections from specified path treeview listing
Date_Time_Convert -- Easily convert date/time formats, including the language used
ExtMsgBox --------- A highly customisable replacement for MsgBox
GUIExtender -------- Extend and retract multiple sections within a GUI
GUIFrame ---------- Subdivide GUIs into many adjustable frames
GUIListViewEx ------- Insert, delete, move, drag, sort, edit and colour ListView items
GUITreeViewEx ------ Check/clear parent and child checkboxes in a TreeView
Marquee ----------- Scrolling tickertape GUIs
NoFocusLines ------- Remove the dotted focus lines from buttons, sliders, radios and checkboxes
Notify ------------- Small notifications on the edge of the display
Scrollbars ----------Automatically sized scrollbars with a single command
StringSize ---------- Automatically size controls to fit text
Toast -------------- Small GUIs which pop out of the notification area

 

Link to comment
Share on other sites

  • 3 weeks later...
  • Moderators

Syed23,

It is there again now. I blame the forum software updowngrade. :graduated:

M23

Public_Domain.png.2d871819fcb9957cf44f4514551a2935.png Any of my own code posted anywhere on the forum is available for use by others without any restriction of any kind

Open spoiler to see my UDFs:

Spoiler

ArrayMultiColSort ---- Sort arrays on multiple columns
ChooseFileFolder ---- Single and multiple selections from specified path treeview listing
Date_Time_Convert -- Easily convert date/time formats, including the language used
ExtMsgBox --------- A highly customisable replacement for MsgBox
GUIExtender -------- Extend and retract multiple sections within a GUI
GUIFrame ---------- Subdivide GUIs into many adjustable frames
GUIListViewEx ------- Insert, delete, move, drag, sort, edit and colour ListView items
GUITreeViewEx ------ Check/clear parent and child checkboxes in a TreeView
Marquee ----------- Scrolling tickertape GUIs
NoFocusLines ------- Remove the dotted focus lines from buttons, sliders, radios and checkboxes
Notify ------------- Small notifications on the edge of the display
Scrollbars ----------Automatically sized scrollbars with a single command
StringSize ---------- Automatically size controls to fit text
Toast -------------- Small GUIs which pop out of the notification area

 

Link to comment
Share on other sites

Viva, ;)

I hope you are in good health, and your great sense of humor.

I have been using the UDF '11 Aug v.26' successful, contains very expectacular :graduated: functions.

As a good ;) detective, I needed to have a field more or less hidden, and was caught by surprise.

When i do the drag & drop, my hidden field not only appears and its content is changed.

But what a bore, it seems that only remains for me to not allow the user to perform drag & drop.

I put the "sample" used in anexxxo.

Sincerely

On behalf of NunoGomez

Nuno Borges

#include <GuiConstantsEx.au3>
#include <WindowsConstants.au3>
#include "GUIListViewEx.au3"
#include <Array.au3>
Global $iCount_Left = 20, $iCount_Right = 20, $vData, $sMsg, $aLV_List_Left, $aLV_List_Right
; Create GUI
$hGUI = GUICreate("LVEx Example 1", 640, 430)
; Create Left ListView
GUICtrlCreateLabel("Native ListView - Multiple selection - no count element - sortable", 10, 15, 300, 20)
$hListView_Left = GUICtrlCreateListView("Tom|Dick|Harry", 10, 40, 300, 300, $LVS_SHOWSELALWAYS)
_GUICtrlListView_SetExtendedListViewStyle($hListView_Left, BitOR($LVS_EX_FULLROWSELECT, $LVS_EX_CHECKBOXES))
_GUICtrlListView_SetColumnWidth($hListView_Left, 0, 93)
_GUICtrlListView_SetColumnWidth($hListView_Left, 1, 93)
_GUICtrlListView_SetColumnWidth($hListView_Left, 2, 93)
; Create array and fill Left listview
Global $aLV_List_Left[$iCount_Left]
For $i = 0 To UBound($aLV_List_Left) - 1
If Mod($i, 5) Then
$aLV_List_Left[$i] = "Tom " & $i & "|Dick " & $i & "|Harry " & $i
Else
$aLV_List_Left[$i] = "Tom " & $i & "||Harry " & $i
EndIf
GUICtrlCreateListViewItem($aLV_List_Left[$i], $hListView_Left)
Next
; Initiate LVEx - no count parameter - default insert mark colour (black)
$iLV_Left_Index = _GUIListViewEx_Init($hListView_Left, $aLV_List_Left, 0, 0, True, True)
; Create Right ListView
GUICtrlCreateLabel("UDF ListView - Single selection - count element - sortable", 330, 15, 300, 20)
$hListView_Right = _GUICtrlListView_Create($hGUI, "Peter", 330, 40, 300, 300, BitOR($LVS_DEFAULT, $WS_BORDER))
_GUICtrlListView_SetExtendedListViewStyle($hListView_Right, $LVS_EX_FULLROWSELECT)
;***NDB
_GUICtrlListView_AddColumn($hListView_Right, "Hidden")
_GUICtrlListView_AddColumn($hListView_Right, "Paul")
_GUICtrlListView_AddColumn($hListView_Right, "Mary")
_GUICtrlListView_SetColumnWidth($hListView_Right, 0, 93)
;***NDB
_GUICtrlListView_SetColumnWidth($hListView_Right, 1, 0)
_GUICtrlListView_SetColumnWidth($hListView_Right, 2, 93)
_GUICtrlListView_SetColumnWidth($hListView_Right, 3, 93)
; Create Array to fill listview
;*** NDB
Global $aLV_List_Right[$iCount_Right + 1][4] = [[$iCount_Right]]
For $i = 1 To UBound($aLV_List_Right) - 1
If Mod($i, 4) Then
$aLV_List_Right[$i][0] = "Peter " & $i - 1
;***NDB
$aLV_List_Right[$i][1] = "XXX XXX" & $i - 1
$aLV_List_Right[$i][2] = "Paul " & $i - 1
$aLV_List_Right[$i][3] = "Mary " & $i - 1
Else
$aLV_List_Right[$i][0] = "Peter " & $i - 1
$aLV_List_Right[$i][2] = "Paul " & $i - 1
$aLV_List_Right[$i][3] = "Mary " & $i - 1
EndIf
Next
; Fill listview
For $i = 1 To UBound($aLV_List_Right) - 1
_GUICtrlListView_AddItem($hListView_Right, $aLV_List_Right[$i][0])
;***NDB
_GUICtrlListView_AddSubItem($hListView_Right, $i - 1, $aLV_List_Right[$i][2], 2)
_GUICtrlListView_AddSubItem($hListView_Right, $i - 1, $aLV_List_Right[$i][3], 3)
Next
; Initiate LVEx - count parameter set - red insert mark
$iLV_Right_Index = _GUIListViewEx_Init($hListView_Right, $aLV_List_Right, 1, 0xFF0000, True, True)
; Create buttons
$hInsert_Button = GUICtrlCreateButton("Insert", 10, 350, 200, 30)
$hDelete_Button = GUICtrlCreateButton("Delete", 10, 390, 200, 30)
$hUp_Button = GUICtrlCreateButton("Move Up", 220, 350, 200, 30)
$hDown_Button = GUICtrlCreateButton("Move Down", 220, 390, 200, 30)
$hDisplay_Left_Button = GUICtrlCreateButton("Show Left", 430, 350, 100, 30)
$hDisplay_Right_Button = GUICtrlCreateButton("Show Right", 530, 350, 100, 30)
$hExit_Button = GUICtrlCreateButton("Exit", 430, 390, 200, 30)
GUISetState()
; Register for dragging
_GUIListViewEx_DragRegister()
; Set the left ListView as active
_GUIListViewEx_SetActive(1)
Switch _GUIListViewEx_GetActive()
Case 0
$sMsg = "No ListView is active"
Case 1
$sMsg = "The LEFT ListView is active" & @CRLF & "<--------------------------"
Case 2
$sMsg = "The RIGHT ListView is active" & @CRLF & "---------------------------->"
EndSwitch
MsgBox(0, "Active ListView", $sMsg)
While 1
Switch GUIGetMsg()
Case $GUI_EVENT_CLOSE, $hExit_Button
Exit
Case $hInsert_Button
; Prepare data for insertion
Switch $aGLVEx_Data[0][1]
Case 1
; String format with multi-column native ListView
$vData = "Tom " & $iCount_Left & "|Dick " & $iCount_Left & "|Harry " & $iCount_Left
$iCount_Left += 1
_GUIListViewEx_Insert($vData)
Case 2
; Array format with multi-column UDF ListView
Global $vData[3] = ["Peter " & $iCount_Right, "Paul " & $iCount_Right, "Mary " & $iCount_Right]
$iCount_Right += 1
_GUIListViewEx_Insert($vData)
EndSwitch
Case $hDelete_Button
_GUIListViewEx_Delete()
Case $hUp_Button
_GUIListViewEx_Up()
Case $hDown_Button
_GUIListViewEx_Down()
Case $hDisplay_Left_Button
$aLV_List_Left = _GUIListViewEx_Return_Array($iLV_Left_Index)
If Not @error Then
_ArrayDisplay($aLV_List_Left, "Returned Left")
Else
MsgBox(0, "Left", "Empty Array")
EndIf
$aLV_List_Left = _GUIListViewEx_Return_Array($iLV_Left_Index, 1)
If Not @error Then
_ArrayDisplay($aLV_List_Left, "Returned Left Checkboxes")
Else
MsgBox(0, "Left", "Empty Check Array")
EndIf
Case $hDisplay_Right_Button
$aLV_List_Right = _GUIListViewEx_Return_Array($iLV_Right_Index)
If Not @error Then
_ArrayDisplay($aLV_List_Right, "Returned Right")
Else
MsgBox(0, "Right", "Empty Array")
EndIf
EndSwitch

Steps to perform:

- Run the example

- Separate fields Peter and Paul from the right list.

- Stand in the register "Peter.13"

- Make drag & drop to record "Peter3"

:)

Edited by NunoBorges
Link to comment
Share on other sites

  • Moderators

NunoBorges

Firstly my most abject apologies for getting your name wrong. :graduated:

Your problem is caused by the fact that you were not adding the "hidden" values to the shadowing array - if you do this the "drag" function works fine for me. I just added this (<<<<<<<<<<) line and I get what I would expect when dragging rows: :)

; Fill listview
For $i = 1 To UBound($aLV_List_Right) - 1
    _GUICtrlListView_AddItem($hListView_Right, $aLV_List_Right[$i][0])
    ;***NDB
    _GUICtrlListView_AddSubItem($hListView_Right, $i - 1, $aLV_List_Right[$i][1], 1) ; <<<<<<<<<<<<<<<<<<<<<<<<
    _GUICtrlListView_AddSubItem($hListView_Right, $i - 1, $aLV_List_Right[$i][2], 2)
    _GUICtrlListView_AddSubItem($hListView_Right, $i - 1, $aLV_List_Right[$i][3], 3)
Next

Does it work for you now? ;)

M23

Edit: Tags screwed up again!

Edited by Melba23

Public_Domain.png.2d871819fcb9957cf44f4514551a2935.png Any of my own code posted anywhere on the forum is available for use by others without any restriction of any kind

Open spoiler to see my UDFs:

Spoiler

ArrayMultiColSort ---- Sort arrays on multiple columns
ChooseFileFolder ---- Single and multiple selections from specified path treeview listing
Date_Time_Convert -- Easily convert date/time formats, including the language used
ExtMsgBox --------- A highly customisable replacement for MsgBox
GUIExtender -------- Extend and retract multiple sections within a GUI
GUIFrame ---------- Subdivide GUIs into many adjustable frames
GUIListViewEx ------- Insert, delete, move, drag, sort, edit and colour ListView items
GUITreeViewEx ------ Check/clear parent and child checkboxes in a TreeView
Marquee ----------- Scrolling tickertape GUIs
NoFocusLines ------- Remove the dotted focus lines from buttons, sliders, radios and checkboxes
Notify ------------- Small notifications on the edge of the display
Scrollbars ----------Automatically sized scrollbars with a single command
StringSize ---------- Automatically size controls to fit text
Toast -------------- Small GUIs which pop out of the notification area

 

Link to comment
Share on other sites

Viva,

If you replace the line 39 of LVEx_Example_1.au3 for example,

_GUICtrlListView_SetExtendedListViewStyle ($ HListView_Right, LVS_EX_FULLROWSELECT $, $ LVS_EX_DOUBLEBUFFER)

The $LVS_EX_FULLROWSELECT, ceases to have effect.

Is this the normal behavior of $ LVS_EX_DOUBLEBUFFER?

hug

Link to comment
Share on other sites

  • Moderators

NunoBorges,

Look again at the syntax for _GUICtrlListView_SetExtendedListViewStyle in the Help file. ;)

If you want to combine the 2 styles, you need to use BitOR like this:

_GUICtrlListView_SetExtendedListViewStyle($hListView_Right, BitOr($LVS_EX_FULLROWSELECT, $LVS_EX_DOUBLEBUFFER))

If you want to know why, I recommend the Setting Styles tutorial in the Wiki.

The way you have it now, the second style is the $iExMask parameter which, acording to the Help file:

"Specifies which styles in $iExStyle are to be affected. [...] Only the extended styles in $iExMask will be changed. All other styles will be maintained as they are"

I have never used that parameter with _GUICtrlListView_SetExtendedListViewStyle so I cannot offer any more help than that. :graduated:

M23

P.S. If you have any more general queries like this, please post them in the General Help forum - this thread is specifically for the GUIListViewEx UDF.

Public_Domain.png.2d871819fcb9957cf44f4514551a2935.png Any of my own code posted anywhere on the forum is available for use by others without any restriction of any kind

Open spoiler to see my UDFs:

Spoiler

ArrayMultiColSort ---- Sort arrays on multiple columns
ChooseFileFolder ---- Single and multiple selections from specified path treeview listing
Date_Time_Convert -- Easily convert date/time formats, including the language used
ExtMsgBox --------- A highly customisable replacement for MsgBox
GUIExtender -------- Extend and retract multiple sections within a GUI
GUIFrame ---------- Subdivide GUIs into many adjustable frames
GUIListViewEx ------- Insert, delete, move, drag, sort, edit and colour ListView items
GUITreeViewEx ------ Check/clear parent and child checkboxes in a TreeView
Marquee ----------- Scrolling tickertape GUIs
NoFocusLines ------- Remove the dotted focus lines from buttons, sliders, radios and checkboxes
Notify ------------- Small notifications on the edge of the display
Scrollbars ----------Automatically sized scrollbars with a single command
StringSize ---------- Automatically size controls to fit text
Toast -------------- Small GUIs which pop out of the notification area

 

Link to comment
Share on other sites

Guest
This topic is now closed to further replies.
 Share

  • Recently Browsing   0 members

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