Jump to content



Photo

Problem with Status bar Tip and resource files

status bar resource files

  • Please log in to reply
1 reply to this topic

#1 DiOgO

DiOgO

    Universalist

  • Active Members
  • PipPipPipPipPipPip
  • 331 posts

Posted 16 February 2012 - 04:28 PM

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"



Thanks for your time.

Heroes, there is no such thing








#2 DiOgO

DiOgO

    Universalist

  • Active Members
  • PipPipPipPipPipPip
  • 331 posts

Posted 16 February 2012 - 06:44 PM

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, 16 February 2012 - 07:01 PM.

Heroes, there is no such thing





0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users