Jump to content

The GUI is freezing on drag item


Recommended Posts

When dragging listView item then the GUI is freezing until the focus of the main client is changed.

Steps:

1) Launch the example that come with the "_GUICtrlListView_Create" function. (came with the latest beta)

2) Drag an item to somewhere point on the control.

The GUI will be freeze until it will be minimize.

Is this a bug?

EDIT: Please Ignore the title ..(I was unable to correct the title..).

Actually the problem aoccurs when dragging an item

Edited by lsakizada

Be Green Now or Never (BGNN)!

Link to comment
Share on other sites

What version of AutoIt are you using?

*Edit: I can confirm it does exactly as you say on version 3.2.9.14 (last beta). But I don't have to minimize, if I just focus on another window it will unfreeze.

I am using beta 3.2.9.3.

If you drag it outside the client then the all computer will be freeze until performin 'Alt+Delete+ctrl'.

Be Green Now or Never (BGNN)!

Link to comment
Share on other sites

  • 2 months later...
  • 2 weeks later...

I'm still having this problem, I even did a complete uninstall, installed my previous version, installed 3.2.10.0 and then installed 3.2.11.0. :)

I'm able to reproduce it using your code from the other thread Gary:

#include <GuiConstantsEx.au3>
#include <GuiListView.au3>

Opt('MustDeclareVars', 1)


_Main()

Func _Main()

    Local $GUI, $hListView
    $GUI = GUICreate("(External) ListView Create", 400, 300)

    $hListView = _GUICtrlListView_Create ($GUI, "", 2, 2, 394, 268)
    _GUICtrlListView_SetExtendedListViewStyle ($hListView, BitOR($LVS_EX_GRIDLINES, $LVS_EX_FULLROWSELECT))
    GUISetState()
    
    ; Add columns
    _GUICtrlListView_InsertColumn ($hListView, 0, "Column 1", 100)
    _GUICtrlListView_InsertColumn ($hListView, 1, "Column 2", 100)
    _GUICtrlListView_InsertColumn ($hListView, 2, "Column 3", 100)

    ; Add items
    _GUICtrlListView_AddItem ($hListView, "Row 1: Col 1")
    _GUICtrlListView_AddSubItem ($hListView, 0, "Row 1: Col 2", 1)
    _GUICtrlListView_AddSubItem ($hListView, 0, "Row 1: Col 3", 2)
    _GUICtrlListView_AddItem ($hListView, "Row 2: Col 1")
    _GUICtrlListView_AddSubItem ($hListView, 1, "Row 2: Col 2", 1)
    _GUICtrlListView_AddItem ($hListView, "Row 3: Col 1", 2)

    ; Loop until user exits
    Do
    Until GUIGetMsg() = $GUI_EVENT_CLOSE
    GUIDelete()
EndFunc   ;==>_Main

I saw your post in Bug Tracker "When the control is created it needs a control id, fixed for next version." but I wasn't sure how that applied to the code above.

Edited by exodius
Link to comment
Share on other sites

I'm still having this problem, I even did a complete uninstall, installed my previous version, installed 3.2.10.0 and then installed 3.2.11.0. :)

I'm able to reproduce it using your code from the other thread Gary:

#include <GuiConstantsEx.au3>
#include <GuiListView.au3>

Opt('MustDeclareVars', 1)


_Main()

Func _Main()

    Local $GUI, $hListView
    $GUI = GUICreate("(External) ListView Create", 400, 300)

    $hListView = _GUICtrlListView_Create ($GUI, "", 2, 2, 394, 268)
    _GUICtrlListView_SetExtendedListViewStyle ($hListView, BitOR($LVS_EX_GRIDLINES, $LVS_EX_FULLROWSELECT))
    GUISetState()
    
    ; Add columns
    _GUICtrlListView_InsertColumn ($hListView, 0, "Column 1", 100)
    _GUICtrlListView_InsertColumn ($hListView, 1, "Column 2", 100)
    _GUICtrlListView_InsertColumn ($hListView, 2, "Column 3", 100)

    ; Add items
    _GUICtrlListView_AddItem ($hListView, "Row 1: Col 1")
    _GUICtrlListView_AddSubItem ($hListView, 0, "Row 1: Col 2", 1)
    _GUICtrlListView_AddSubItem ($hListView, 0, "Row 1: Col 3", 2)
    _GUICtrlListView_AddItem ($hListView, "Row 2: Col 1")
    _GUICtrlListView_AddSubItem ($hListView, 1, "Row 2: Col 2", 1)
    _GUICtrlListView_AddItem ($hListView, "Row 3: Col 1", 2)

    ; Loop until user exits
    Do
    Until GUIGetMsg() = $GUI_EVENT_CLOSE
    GUIDelete()
EndFunc   ;==>_Main

I saw your post in Bug Tracker "When the control is created it needs a control id, fixed for next version." but I wasn't sure how that applied to the code above.

Are you running it in 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

Are you running it in beta?

Yup, I'm guessing you're not having that same problem?

Edit: Confirmed that this happens on both my computer at work and my computer at home... At both locations AutoUpdateIt reports that my Production Version is 3.2.10.0 and my Beta Version is 3.2.11.0...

Edit #2: Installed 3.2.11.1 on my home computer, and it seems to be resolved now. Which is peculiar because I'm pretty confident that I have it installed on my work computer and it still doesn't work... But seeing that it works here at home, I'll troubleshoot it at work tomorrow.

Thanks for reply Gary, I know you're a busy fella. :)

Edited by exodius
Link to comment
Share on other sites

for itself I have solved this problem so:

#include <GuiConstantsEx.au3>
#include <GuiListView.au3>

Opt('MustDeclareVars', 1)


_Main()

Func _Main()

    Local $GUI, $hListView
    $GUI = GUICreate("(External) ListView Create", 400, 300)

    $hListView = GUICtrlCreateListView("", 2, 2, 394, 268)
    $hListView = GUICtrlGetHandle($hListView)
    _GUICtrlListView_SetExtendedListViewStyle ($hListView, BitOR($LVS_EX_GRIDLINES, $LVS_EX_FULLROWSELECT))
    GUISetState()
    
    ; Add columns
    _GUICtrlListView_InsertColumn ($hListView, 0, "Column 1", 100)
    _GUICtrlListView_InsertColumn ($hListView, 1, "Column 2", 100)
    _GUICtrlListView_InsertColumn ($hListView, 2, "Column 3", 100)

    ; Add items
    _GUICtrlListView_AddItem ($hListView, "Row 1: Col 1")
    _GUICtrlListView_AddSubItem ($hListView, 0, "Row 1: Col 2", 1)
    _GUICtrlListView_AddSubItem ($hListView, 0, "Row 1: Col 3", 2)
    _GUICtrlListView_AddItem ($hListView, "Row 2: Col 1")
    _GUICtrlListView_AddSubItem ($hListView, 1, "Row 2: Col 2", 1)
    _GUICtrlListView_AddItem ($hListView, "Row 3: Col 1", 2)

    ; Loop until user exits
    Do
    Until GUIGetMsg() = $GUI_EVENT_CLOSE
    GUIDelete()
EndFunc   ;==>_Main

Just use GUICtrlCreateListView() function instead of _GUICtrlListView_Create() :)

Edited by rasim
Link to comment
Share on other sites

  • 1 month later...

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...