Jump to content

Problem with Status bar Tip and resource files


Kyan
 Share

Recommended Posts

Hi to all :)

I'm trying to create a status bar what would display some error texts, and for the more longer warning mensages I want to display it in form of a ballon tip.

The problem is, after I read all the help file related to "_GUICtrlStatusBar", I can't create a ballon tip on status.

example:

#include <GUIConstantsEx.au3>

#include <GuiStatusBar.au3>
#include <WindowsConstants.au3>

$Form1 = GUICreate("Example app", 400, 60, 192, 124)
$Status = _GUICtrlStatusBar_Create($Form1, -1, "", $SBARS_TOOLTIPS)

_GUICtrlStatusBar_SetSimple($Status)
_GUICtrlStatusBar_SetText($Status, "Ready")
_GUICtrlStatusBar_SetTipText($Status, -1, "Tip Text...")

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

EndSwitch
WEnd

The other problem is setting a icon to a context menu and include in the rc_data a "file.exe"

#AutoIt3Wrapper_Res_Icon_Add=C:\files\icon.ico
#AutoIt3Wrapper_Res_File_Add=C:\files\file.exe, Binary, _myexe
while 1
    TraySetIcon(@ScriptFullPath,-5)
    Sleep(1000)
    runwait(@ScriptFullPath,_myexe)
WEnd

Thanks for your time.

Heroes, there is no such thing

One day I'll discover what IE.au3 has of special for so many users using it.
C'mon there's InetRead and WinHTTP, way better
happy.png

Link to comment
Share on other sites

I read somewhere that the text present on the statusbar should be more than the width of displaying GUI

my gui is 400px width, so it would be enough

_GUICtrlStatusBar_SetText($Status, "Ready                                                                                                                                         ")
_GUICtrlStatusBar_SetTipText($Status, -1, "Tip Text...")

but keeps happening the same ;)

EDIT: The problem was setting this: _GUICtrlStatusBar_SetSimple($Status), now only need to solve the resources problem :)

Edited by DiOgO

Heroes, there is no such thing

One day I'll discover what IE.au3 has of special for so many users using it.
C'mon there's InetRead and WinHTTP, way better
happy.png

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