myspacee Posted March 1, 2009 Posted March 1, 2009 Hello to all, i'm realizing a 'wizard' for a boring task in my office. An input box wait for a value to enable buttons and suggest user what to do. Is possible to update GUICtrlSetTip value after build my GUI ? thank you for help, m
whim Posted March 1, 2009 Posted March 1, 2009 (edited) Is possible to update GUICtrlSetTip Sure, just issue the command again ...whim Edited March 1, 2009 by whim
myspacee Posted March 1, 2009 Author Posted March 1, 2009 ok, but when i'm in my main cicle, how point tip to a specific button ? post some code to correct : expandcollapse popup#include <GUIConstantsEx.au3> #Include <Date.au3> Example() Func Example() Local $msg $time = _DateDiff( 's',"1970/01/01 00:00:00",_NowCalc()) GUICreate("My GUI control tip") ; will create a dialog box that when displayed is centered $Button_01 = GUICtrlCreateButton("1 - Share directory", 21, 103, 150, 25) GUICtrlSetTip(-1, $time) $Button_02 = GUICtrlCreateButton("2 - update my tip", 21, 150, 150, 25) GUICtrlSetTip(-1, "update tip on button 1") GUISetState() ; Run the GUI until the dialog is closed While 1 $msg = GUIGetMsg() If $msg = $GUI_EVENT_CLOSE Then ExitLoop $msg = GUIGetMsg() Select Case $msg = $GUI_EVENT_CLOSE Exit Case $msg = $Button_01 MsgBox(0, "", "i'm button 1", 2) Case $msg = $Button_01 MsgBox(0, "", "update tip on button 1", 2) GUICtrlSetTip($Button_01, "ok - i'm updated") EndSelect WEnd EndFunc ;==>Example - button 1 has a tip (time) - when press button 2 code must update tip on button 1 But i wrong something... can you help me ? m.
Moderators Melba23 Posted March 1, 2009 Moderators Posted March 1, 2009 myspacee,See something wrong here?Case $msg = $Button_01 <<<<<<<<<<<<<<<<<<<<<<<<<<<<<<MsgBox(0, "", "i'm button 1", 2)Case $msg = $Button_01 <<<<<<<<<<<<<<<<<<<<<<<<<<<<<<MsgBox(0, "", "update tip on button 1", 2)M23 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: Spoiler ArrayMultiColSort ---- Sort arrays on multiple columnsChooseFileFolder ---- Single and multiple selections from specified path treeview listingDate_Time_Convert -- Easily convert date/time formats, including the language usedExtMsgBox --------- A highly customisable replacement for MsgBoxGUIExtender -------- Extend and retract multiple sections within a GUIGUIFrame ---------- Subdivide GUIs into many adjustable framesGUIListViewEx ------- Insert, delete, move, drag, sort, edit and colour ListView itemsGUITreeViewEx ------ Check/clear parent and child checkboxes in a TreeViewMarquee ----------- Scrolling tickertape GUIsNoFocusLines ------- Remove the dotted focus lines from buttons, sliders, radios and checkboxesNotify ------------- Small notifications on the edge of the displayScrollbars ----------Automatically sized scrollbars with a single commandStringSize ---------- Automatically size controls to fit textToast -------------- Small GUIs which pop out of the notification area
myspacee Posted March 1, 2009 Author Posted March 1, 2009 i'm write example too quickly, correction made things works, thank you, m.
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