darzanmihai Posted April 19, 2010 Share Posted April 19, 2010 I try to set a tiptext to one part o f the status bar but I can't figure it out. Please help me on this one. This is the code: #include <GUIConstantsEx.au3> #include <GuiStatusBar.au3> #include <StaticConstants.au3> #include <WindowsConstants.au3> $Form1 = GUICreate("Form", 1042, 710, -1, -1) $StatusBar1 = _GUICtrlStatusBar_Create($Form1) Dim $StatusBar1_PartsWidth[3] = [300, 600, -1] _GUICtrlStatusBar_SetParts($StatusBar1, $StatusBar1_PartsWidth) _GUICtrlStatusBar_SetText($StatusBar1, "Utilizator: ", 0) _GUICtrlStatusBar_SetText($StatusBar1, "Permisiuni: ", 1) $hIcon = _WinAPI_LoadShell32Icon (23) _GUICtrlStatusBar_SetIcon ($StatusBar1, 2, $hIcon) _GUICtrlStatusBar_SetText($StatusBar1, "Info: ", 2) _GUICtrlStatusBar_SetTipText($StatusBar1, 2, "SAg - Scriere Agenda"&@CRLF&"SPa - Schimbare Parola"&@CRLF&"SPe - Schimbare Permisiuni"&@CRLF&"CUs - Creare Useri"&@CRLF&"AFi - Agenda Firma") _GUICtrlStatusBar_SetMinHeight($StatusBar1, 27) GUISetState(@SW_SHOW) While 1 $nMsg = GUIGetMsg() Switch $nMsg Case $GUI_EVENT_CLOSE Exit EndSwitch Wend I do not like stupid and idiot people that write idiot things...If you are one, do not write. Link to comment Share on other sites More sharing options...
martin Posted April 19, 2010 Share Posted April 19, 2010 I try to set a tiptext to one part o f the status bar but I can't figure it out. Please help me on this one. This is the code: #include <GUIConstantsEx.au3> #include <GuiStatusBar.au3> #include <StaticConstants.au3> #include <WindowsConstants.au3> $Form1 = GUICreate("Form", 1042, 710, -1, -1) $StatusBar1 = _GUICtrlStatusBar_Create($Form1) Dim $StatusBar1_PartsWidth[3] = [300, 600, -1] _GUICtrlStatusBar_SetParts($StatusBar1, $StatusBar1_PartsWidth) _GUICtrlStatusBar_SetText($StatusBar1, "Utilizator: ", 0) _GUICtrlStatusBar_SetText($StatusBar1, "Permisiuni: ", 1) $hIcon = _WinAPI_LoadShell32Icon (23) _GUICtrlStatusBar_SetIcon ($StatusBar1, 2, $hIcon) _GUICtrlStatusBar_SetText($StatusBar1, "Info: ", 2) _GUICtrlStatusBar_SetTipText($StatusBar1, 2, "SAg - Scriere Agenda"&@CRLF&"SPa - Schimbare Parola"&@CRLF&"SPe - Schimbare Permisiuni"&@CRLF&"CUs - Creare Useri"&@CRLF&"AFi - Agenda Firma") _GUICtrlStatusBar_SetMinHeight($StatusBar1, 27) GUISetState(@SW_SHOW) While 1 $nMsg = GUIGetMsg() Switch $nMsg Case $GUI_EVENT_CLOSE Exit EndSwitch Wend Might be worth reading the help for _GUICtrlStatusBar_SetTipText? Function _GUICtrlStatusBar_SetTipTextRemarksThe status bar must have been created with the $SBARS_TOOLTIPS style to enable ToolTips Serial port communications UDF Includes functions for binary transmission and reception.printing UDF Useful for graphs, forms, labels, reports etc.Add User Call Tips to SciTE for functions in UDFs not included with AutoIt and for your own scripts.Functions with parameters in OnEvent mode and for Hot Keys One function replaces GuiSetOnEvent, GuiCtrlSetOnEvent and HotKeySet.UDF IsConnected2 for notification of status of connected state of many urls or IPs, without slowing the script. Link to comment Share on other sites More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now