Jump to content

little tip on image mouse hover in GUI


Go to solution Solved by EKY32,

Recommended Posts

hi all

i am making a GUI script

i have a bout 5 images in the GUI

i want when the user hover with the mouse over the image the script display a little message (not messagebox) that describe the image

and when the user get the mouse off the image the message will automatically be hidden

i mean something near to this

download.jpg

any ideas ?

Edited by alexander95

Link to comment
Share on other sites

  • Solution

Well, I'm not sure this is what you want because the image you posted is not seen to me:

#include <GUIConstantsEx.au3>
#include <WindowsConstants.au3>

$Form1 = GUICreate("Form1", 243, 225, 192, 124)
$Pic1 = GUICtrlCreatePic("c:\image1.jpg", 0, 0, 113, 105)
GUICtrlSetTip(-1, "Image 1 tip")
$Pic2 = GUICtrlCreatePic("c:\image2.jpg", 128, 0, 113, 105)
GUICtrlSetTip(-1, "Image 1 tip")
$Button1 = GUICtrlCreateButton("Exit", 80, 168, 75, 25)
GUISetState(@SW_SHOW)


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

    EndSwitch
WEnd

[font="'trebuchet ms', helvetica, sans-serif;"]Please mark the answer of your question if you found it.[/font]

Link to comment
Share on other sites

If you need something other way around (when you hovering over an input box with a path to an image file) then have a look here: 

Br,

UEZ

Edited by UEZ

Please don't send me any personal message and ask for support! I will not reply!

Selection of finest graphical examples at Codepen.io

The own fart smells best!
Her 'sikim hıyar' diyene bir avuç tuz alıp koşma!
¯\_(ツ)_/¯  ٩(●̮̮̃•̃)۶ ٩(-̮̮̃-̃)۶ૐ

Link to comment
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
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...