Jump to content
Sign in to follow this  
AuToItItAlIaNlOv3R

Search on .ini file

Recommended Posts

Melba23

JohnOne,

Thanks for that confirmation. I am still puzzled as to why the WM_NOTIFY handler interfered when it was actually the WM_COMMAND handler that was causing the multiple updates. However, given that the system must have been pretty unstable at that point we should perhaps look no further and just be thankful that the whole thing did not just crash. :shifty:

AuToItItAlIaNlOv3R,

Another small thing you might like to change. You have a typo in your WM_NOTIFY handler - use this instead: :P

Switch $iCode
    Case $LVN_ITEMACTIVATE
        Local $nmia = DllStructCreate($tagNMITEMACTIVATE, $ilParam) ; You had $lParam here <<<<<<<<<<<<<<<<<
        $I = DllStructGetData($nmia, "Index")
    $SomeVariablex = _GUICtrlListView_GetItemTextArray($ListView, $I) ; Then you get a value you can use here <<<<<<<<<<<<<
    $gMediaObject.URL = $SomeVariablex[2]
EndSwitch

All good now? :x

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

 

Share this post


Link to post
Share on other sites
AuToItItAlIaNlOv3R

@Melba23

Thanks for your excellent work...now it work very well and is incredibly faster :x...

Just curious, what was wrong? Who caused that problem?

Thank's :P

Edited by AuToItItAlIaNlOv3R

Share this post


Link to post
Share on other sites
Melba23

AuToItItAlIaNlOv3R,

As I explained earlier, you caused it by putting a function which takes some time to run inside a Windows message handler. :P

As Windows is dependent on these messages to run smoothly you should not hold them up any longer than you must. That is why I always recommend just to set a flag within the handler and then action the flag within the idle loop - as in the first solution I suggested. :x

If you want to know a bit more about GUIRegisterMsg and Windows message handlers, I suggest you take a look at the GUIRegisterMsg tutorial in the Wiki where it is all explained in pretty simple terms. :shifty:

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

 

Share this post


Link to post
Share on other sites
AuToItItAlIaNlOv3R

:x The problem was caused by me :P ...sure take a look at the GUIRegisterMsg tutorial in the Wiki.

Thanks for all :shifty:

P.S. You know an autoit variable to "lock" the width of listview column?...I don't see nothing in Help file.

hi!

Share this post


Link to post
Share on other sites
Melba23

AuToItItAlIaNlOv3R,

You know an autoit variable to "lock" the width of listview column?

This is the way to lock the column sizes: :x

#include <GUIConstantsEx.au3>
#include <GuiListView.au3>

$hGUI = GUICreate("Test", 500, 500)

$hListView = GUICtrlCreateListView("col 1|Col 2|Col 3", 10, 10, 480, 280)

For $i = 1 To 5
    GUICtrlCreateListViewItem("Item " & $i & "|Sub Item 1" & $i & "|SubItem 2" & $i, $hListView)
Next

; Set column sizes
_GUICtrlListView_SetColumnWidth($hListView, 0, 160)
_GUICtrlListView_SetColumnWidth($hListView, 1, 160)
_GUICtrlListView_SetColumnWidth($hListView, 2, $LVSCW_AUTOSIZE_USEHEADER )

; Fix column sizes
ControlDisable($hGUI, "", HWnd(_GUICtrlListView_GetHeader($hListView))) ; <<<<<<<<<<<<<<<<<<<<<<<<<<<<<

GUISetState()

While 1

    Switch GUIGetMsg()
        Case $GUI_EVENT_CLOSE
            Exit
    EndSwitch

WEnd

You can use ControlEnable to activate the columns again. :shifty:

All clear? :P

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

 

Share this post


Link to post
Share on other sites
AuToItItAlIaNlOv3R

You are my hero x)...All clear =P

Hi!

Share this post


Link to post
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
Sign in to follow this  

×