Sign in to follow this  
Followers 0
Armand

Clicking on a listview calls the TAB's OnEvent Func ?!?!

9 posts in this topic

anyhow, i've just discovered some bug which makes my gui as if launch the OnEvent function of the TAB control when i click specifically with the left mouse button on the 4th entry of the listview, anyhow have encountered it ? any clue on how to fix it ?

P.S - it happens only on .10 version of AU3.

Any help will be appreciated - THANKS!


[u]My Au3 Scripts:[/u]____________(E)Lephant, A Share download manager (RS/MU etc)Http1.1 Console, The Ez Way!Internet Reconnection Automation Suite & A Macro Recording Tool.SK's Alarm Clock, Playing '.MP3 & .Wav' Files._________________Is GOD a mistake of the Humanity Or the Humanity is a mistake of GOD ?!

Share this post


Link to post
Share on other sites



You having that many posts should know POST CODE.

Share this post


Link to post
Share on other sites

#4 ·  Posted (edited)

Well... at first i was almost sure it was something wrong in my script which is over 15K lines so there was no point in posting it... but here it is... on this tiny piece of Cr@P....

#include <GUIConstants.au3>
#include <GuiListView.au3>

Opt("GUIOnEventMode", 1)
#Region ### START Koda GUI section ### Form=
$Form1 = GUICreate("Form1", 633, 257, 193, 125)
GUISetOnEvent($GUI_EVENT_CLOSE, "Form1Close")
GUISetOnEvent($GUI_EVENT_MINIMIZE, "Form1Minimize")
GUISetOnEvent($GUI_EVENT_MAXIMIZE, "Form1Maximize")
GUISetOnEvent($GUI_EVENT_RESTORE, "Form1Restore")
$Tab1 = GUICtrlCreateTab(20, 15, 389, 228)
GUICtrlSetResizing(-1, $GUI_DOCKWIDTH+$GUI_DOCKHEIGHT)
$TabSheet1 = GUICtrlCreateTabItem("TabSheet1")
$TabSheet2 = GUICtrlCreateTabItem("TabSheet2")
$TabSheet3 = GUICtrlCreateTabItem("TabSheet3")
GUICtrlSetState(-1,$GUI_SHOW)
$ListView1 = GUICtrlCreateListView("Shit|Shit|Shit3", 30, 50, 371, 181)
$ListView1H = GUICtrlGetHandle($ListView1)
GUICtrlSetOnEvent(-1, "ListView1Click")
GUICtrlCreateTabItem("")
GUICtrlSetOnEvent(-1, "Tab1Change")
GUISetState(@SW_SHOW)
#EndRegion ### END Koda GUI section ###

$url = "XTXTTXTXXT"

    $index = _GUICtrlListView_AddItem($ListView1H, $url)
    _GUICtrlListView_SetItemText($ListView1H, $index, "Verifying...", 1)
        $index = _GUICtrlListView_AddItem($ListView1H, $url)
    _GUICtrlListView_SetItemText($ListView1H, $index, "Verifying...", 1)
        $index = _GUICtrlListView_AddItem($ListView1H, $url)
    _GUICtrlListView_SetItemText($ListView1H, $index, "Verifying...", 1)
        $index = _GUICtrlListView_AddItem($ListView1H, $url)
    _GUICtrlListView_SetItemText($ListView1H, $index, "Verifying...", 1)
        $index = _GUICtrlListView_AddItem($ListView1H, $url)
    _GUICtrlListView_SetItemText($ListView1H, $index, "Verifying...", 1)
        $index = _GUICtrlListView_AddItem($ListView1H, $url)
    _GUICtrlListView_SetItemText($ListView1H, $index, "Verifying...", 1)


While 1
    Sleep(100)
WEnd

Func Form1Close()

EndFunc
Func Form1Maximize()

EndFunc
Func Form1Minimize()

EndFunc
Func Form1Restore()

EndFunc
Func ListView1Click()

EndFunc
Func Tab1Change()

EndFunc

i guess it's an AU3 bug after all... no wander i hate this .10 version... i also think the ListViews are working slower, the entire script is all of the sudden SLOWER !!!

bah i'll finish converting my script and i'll make my choices afterwards... meanwhile bug-fixing/searching in new version.

EDIT:

@GaryFrost

Thanks alot for the response !!!

-> I love au3, just not the latest version... however it seems to have a lot more functionality which i'd like to use in the future... hopefully i'll manage to coop with this version.

P.S -> is there a list of all known and fixed bugs ?!

THANKS AGAIN!!!!

Edited by Armand

[u]My Au3 Scripts:[/u]____________(E)Lephant, A Share download manager (RS/MU etc)Http1.1 Console, The Ez Way!Internet Reconnection Automation Suite & A Macro Recording Tool.SK's Alarm Clock, Playing '.MP3 & .Wav' Files._________________Is GOD a mistake of the Humanity Or the Humanity is a mistake of GOD ?!

Share this post


Link to post
Share on other sites

Well... at first i was almost sure it was something wrong in my script which is over 15K lines so there was no point in posting it... but here it is... on this tiny piece of Cr@P....

#include <GUIConstants.au3>
#include <GuiListView.au3>

Opt("GUIOnEventMode", 1)
#Region ### START Koda GUI section ### Form=
$Form1 = GUICreate("Form1", 633, 257, 193, 125)
GUISetOnEvent($GUI_EVENT_CLOSE, "Form1Close")
GUISetOnEvent($GUI_EVENT_MINIMIZE, "Form1Minimize")
GUISetOnEvent($GUI_EVENT_MAXIMIZE, "Form1Maximize")
GUISetOnEvent($GUI_EVENT_RESTORE, "Form1Restore")
$Tab1 = GUICtrlCreateTab(20, 15, 389, 228)
GUICtrlSetResizing(-1, $GUI_DOCKWIDTH+$GUI_DOCKHEIGHT)
$TabSheet1 = GUICtrlCreateTabItem("TabSheet1")
$TabSheet2 = GUICtrlCreateTabItem("TabSheet2")
$TabSheet3 = GUICtrlCreateTabItem("TabSheet3")
GUICtrlSetState(-1,$GUI_SHOW)
$ListView1 = GUICtrlCreateListView("Shit|Shit|Shit3", 30, 50, 371, 181)
$ListView1H = GUICtrlGetHandle($ListView1)
GUICtrlSetOnEvent(-1, "ListView1Click")
GUICtrlCreateTabItem("")
GUICtrlSetOnEvent(-1, "Tab1Change")
GUISetState(@SW_SHOW)
#EndRegion ### END Koda GUI section ###

$url = "XTXTTXTXXT"

    $index = _GUICtrlListView_AddItem($ListView1H, $url)
    _GUICtrlListView_SetItemText($ListView1H, $index, "Verifying...", 1)
        $index = _GUICtrlListView_AddItem($ListView1H, $url)
    _GUICtrlListView_SetItemText($ListView1H, $index, "Verifying...", 1)
        $index = _GUICtrlListView_AddItem($ListView1H, $url)
    _GUICtrlListView_SetItemText($ListView1H, $index, "Verifying...", 1)
        $index = _GUICtrlListView_AddItem($ListView1H, $url)
    _GUICtrlListView_SetItemText($ListView1H, $index, "Verifying...", 1)
        $index = _GUICtrlListView_AddItem($ListView1H, $url)
    _GUICtrlListView_SetItemText($ListView1H, $index, "Verifying...", 1)
        $index = _GUICtrlListView_AddItem($ListView1H, $url)
    _GUICtrlListView_SetItemText($ListView1H, $index, "Verifying...", 1)


While 1
    Sleep(100)
WEnd

Func Form1Close()

EndFunc
Func Form1Maximize()

EndFunc
Func Form1Minimize()

EndFunc
Func Form1Restore()

EndFunc
Func ListView1Click()

EndFunc
Func Tab1Change()

EndFunc

i guess it's an AU3 bug after all... no wander i hate this .10 version... i also think the ListViews are working slower, the entire script is all of the sudden SLOWER !!!

bah i'll finish converting my script and i'll make my choices afterwards... meanwhile bug-fixing/searching in new version.

EDIT:

@GaryFrost

Thanks alot for the response !!!

-> I love au3, just not the latest version... however it seems to have a lot more functionality which i'd like to use in the future... hopefully i'll manage to coop with this version.

THANKS AGAIN!!!!

and thus they released .11 :D

Share this post


Link to post
Share on other sites

well... just tried and installed the BETA .11 but it seems to have a lot of changes from .10... almost all of my constants are not working in there... is there a specific reason for that ?!

i mean... same code just many constants used freely in .10 are reported as:

WARNING: $WS_EX_TOOLWINDOW: possibly used before declaration.
WARNING: $WS_EX_WINDOWEDGE: possibly used before declaration.
WARNING: $WS_EX_TOPMOST: possibly used before declaration.
WARNING: $TCS_HOTTRACK: possibly used before declaration.

and these are basic globals...

and yet again - thanks for minding my posts....


[u]My Au3 Scripts:[/u]____________(E)Lephant, A Share download manager (RS/MU etc)Http1.1 Console, The Ez Way!Internet Reconnection Automation Suite & A Macro Recording Tool.SK's Alarm Clock, Playing '.MP3 & .Wav' Files._________________Is GOD a mistake of the Humanity Or the Humanity is a mistake of GOD ?!

Share this post


Link to post
Share on other sites

#7 ·  Posted (edited)

WARNING: $WS_EX_TOOLWINDOW: possibly used before declaration.

WARNING: $WS_EX_WINDOWEDGE: possibly used before declaration.

WARNING: $WS_EX_TOPMOST: possibly used before declaration.

WARNING: $TCS_HOTTRACK: possibly used before declaration.

Try using #include <GUIConstantsEx.au3> instead of #include <GUIConstants.au3>

Anyhow, judging by your apparent attitude, how you make an issue of everyday constants, and your syntax:

GUICtrlCreateListView("Shit|Shit|Shit3"...

I'm going to have to refer you NOW to Verse 3 of the Official Canon of Valik, listed below in my signature.

Edited by Squirrely1

Das Häschen benutzt Radar

Share this post


Link to post
Share on other sites

#8 ·  Posted (edited)

Try using #include <GUIConstantsEx.au3> instead of #include <GUIConstants.au3>

???

As of beta .11, those files are the same, in that they DO NOT include everything, which the latter you mention used to do.

The issue you (Armand) are having with undeclared constants is because GUIConstants.au3 used to include every GUI related (and several non-GUI related) constant available, and it no longer does this because it was unnecessary. You have to include the constants files you need on a case by case basis now. In your case, it looks like you need to include, at least, WindowsConstants.au3 and TabConstants.au3.

*Edit: Clarification

Edited by Saunders

Share this post


Link to post
Share on other sites

@Squirrely1

well... writing all night long and trying to ""solve"" a built-in bug for the last 3 hrs makes u go "Shit... Shit... SHIT!!!"

@Saunders

will try doing so, thanks for the help and consideration !!!


[u]My Au3 Scripts:[/u]____________(E)Lephant, A Share download manager (RS/MU etc)Http1.1 Console, The Ez Way!Internet Reconnection Automation Suite & A Macro Recording Tool.SK's Alarm Clock, Playing '.MP3 & .Wav' Files._________________Is GOD a mistake of the Humanity Or the Humanity is a mistake of GOD ?!

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