Jump to content

Recommended Posts

  • Moderators
Posted

argumentum,

I have never seen a tooltip when exiting. To make sure we are all looking at the same thing, can you please provide a script which shows this behaviour? :)

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:

  Reveal hidden contents

 

Posted (edited)

  On 5/6/2014 at 11:32 AM, Melba23 said:

argumentum,

I have never seen a tooltip when exiting. To make sure we are all looking at the same thing, can you please provide a script which shows this behaviour? :)

M23

#Region ;**** Directives created by AutoIt3Wrapper_GUI ****
#AutoIt3Wrapper_UseUpx=y
#EndRegion ;**** Directives created by AutoIt3Wrapper_GUI ****
#cs ----------------------------------------------------------------------------

 AutoIt Version: 3.3.10.2
 Author:         myName

 Script Function:
    Template AutoIt script.

#ce ----------------------------------------------------------------------------

; Script Start - Add your code below here
#include <EditConstants.au3>
#include <GUIConstantsEx.au3>
#include <WindowsConstants.au3>
#Region ### START Koda GUI section ###
$hForm = GUICreate("Some caption", 266, 135, 211, 141)
$hEdit = GUICtrlCreateEdit("", 8, 8, 249, 121, BitOR($GUI_SS_DEFAULT_EDIT,$ES_READONLY))
GUICtrlSetData(-1, "some text")
GUICtrlSetFont(-1, 10, 400, 0, "Arial")
GUISetState(@SW_SHOW)
#EndRegion ### END Koda GUI section ###

While 1
    $nMsg = GUIGetMsg()
    Switch $nMsg
        Case $GUI_EVENT_CLOSE
            Exit

    EndSwitch
WEnd

this example produces a "Close" tooltip under the cursor after a second or so of closing the script, compiled or not compiled.

Is the same tooltip that appears under the cursor when hovering over the "X" to close the GUI

Edited by argumentum

Follow the link to my code contribution ( and other things too ).
FAQ - Please Read Before Posting.
autoit_scripter_blue_userbar.png

Posted (edited)

Confirmed. If you hoover over the "X" in the right upper corner, there appears a tooltip "close".

This tooltip has a little delay. If you press X at once, the tool tip appears after the window has closed.

If you exit by ESC, no tooltip appears.

Solution:

Case $GUI_EVENT_CLOSE
            GUIDelete($hForm)
            Exit
Edited by Exit

App: Au3toCmd              UDF: _SingleScript()                             

  • Solution
Posted (edited)
  On 5/6/2014 at 2:48 PM, Exit said:

 

Confirmed. If you hoover over the "X" in the right upper corner, there appears a tooltip "close".

This tooltip has a little delay. If you press X at once, the tool tip appears after the window has closed.

If you exit by ESC, no tooltip appears.

Solution:

Case $GUI_EVENT_CLOSE
            GUIDelete($hForm)
            Exit

yes, exactly.

Edit: dude, I love you !. I've been after this for years. I never put 2 and 2 together. Thanks so very much.

Melba23, thank you too for your prompt attention.

Edited by argumentum

Follow the link to my code contribution ( and other things too ).
FAQ - Please Read Before Posting.
autoit_scripter_blue_userbar.png

  • Moderators
Posted

argumentum,

I only get the tooltip if I hover over the [X] for a few seconds. Even if it is being displayed it vanishes immediately I click the [X]. As I said I have never seen a tooltip under those conditions - but if deleting the GUI before exit prevents it on your machine, so well and good. :)

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:

  Reveal hidden contents

 

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
×
×
  • Create New...