Morthawt Posted December 27, 2019 Posted December 27, 2019 (edited) Edit (I'd delete but I don't think I can) I think I figured it out. The documentation was a bit spread out but I think I have it figured out. Just not sure about the text alignment thing. Hi. Just experimenting on a little program I am re-making. I have not dealt much with status bars. But I see a minor mention of simple mode but I see no documentation, that I have found any way, to say what it is? I had to do a consolewrite and add the constants include to even find out what number the supplied variable went to (I figured they'd always supply the number as well as the variable, but that's besides the point here lol) What is a simple mode status bar? How come there's no simple mode for the create function but there is for the SetText function for it? I am just a bit confused. I eventually managed to get it to where I can set text which is good for what I need but I would like to know what simple mode is? Also a bonus question, is it possible to align the text like centre, right etc on a status bar? Edited December 27, 2019 by Morthawt Free and easy Autoit scripting video tutorials (plus more videos always coming!) General video tutorials, especially correct and safe TeamSpeak permissions tutorials.
Nine Posted December 27, 2019 Posted December 27, 2019 Simple mode means that the status bar has not multiple parts. Yes you can align text by using @TAB like this : #include <GUIConstants.au3> #include <GuiStatusBar.au3> Local $a_PartsRightEdge[3] = [100, 250, -1] Local $a_PartsText[3] = [@TAB & @TAB & "Text Right", "Left" & @TAB & "Center" & @TAB & "Right", @TAB & "Centered"] $gui = GUICreate("Status Bar Create", 500) $StatusBar1 = _GUICtrlStatusBar_Create($gui, $a_PartsRightEdge, $a_PartsText) GUISetState(@SW_SHOW) While 1 $msg = GUIGetMsg() Select Case $msg = $GUI_EVENT_CLOSE ExitLoop EndSelect WEnd “They did not know it was impossible, so they did it” ― Mark Twain Spoiler Block all input without UAC Save/Retrieve Images to/from Text Monitor Management (VCP commands) Tool to search in text (au3) files Date Range Picker Virtual Desktop Manager Sudoku Game 2020 Overlapped Named Pipe IPC HotString 2.0 - Hot keys with string x64 Bitwise Operations Multi-keyboards HotKeySet Recursive Array Display Fast and simple WCD IPC Multiple Folders Selector Printer Manager GIF Animation (cached) Debug Messages Monitor UDF Screen Scraping Round Corner GUI UDF Multi-Threading Made Easy
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