Sign in to follow this  
Followers 0
lsakizada

The GUI is freezing on drag item

15 posts in this topic

#1 ·  Posted (edited)

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)!

Share this post


Link to post
Share on other sites



#2 ·  Posted (edited)

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.

Edited by Saunders

Share this post


Link to post
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)!

Share this post


Link to post
Share on other sites

Sounds like Windows default behavior to me.. but I may be wrong. Carry on.

No way it windows behaviour :)


Be Green Now or Never (BGNN)!

Share this post


Link to post
Share on other sites

Should I report bug?


Be Green Now or Never (BGNN)!

Share this post


Link to post
Share on other sites

Should I report bug?

Hello,

i still have the problem in 3.2.10.0.

Is there any fix ?

can i stop GUICtrlListView from having a drag behaviour ?

Thanks in advance.

Pook

Share this post


Link to post
Share on other sites

Hey guys, yes, i also have this problem :) Anyone know about solving this problem?

Share this post


Link to post
Share on other sites

Perhaps it's possible to create the gui, but having another script handle the listview? ie. first script creates all of gui BUT not the listview, then run the second script to create and handle the listview... Just a thought.

Share this post


Link to post
Share on other sites

#11 ·  Posted (edited)

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

Share this post


Link to post
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.

 

Share this post


Link to post
Share on other sites

#13 ·  Posted (edited)

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

Share this post


Link to post
Share on other sites

#14 ·  Posted (edited)

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

Share this post


Link to post
Share on other sites

#15 ·  Posted

Thanks a lot Gray Scripter ! it works great !!!

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  
Followers 0