enaiman Posted July 24, 2008 Share Posted July 24, 2008 (edited) I tried to set the text in my listview to be alligned to left (instead of center) and couldn't find a way to do it. Searching the forum I found this old refference - wondering if this function might be around or not? $ActiveList = GUICtrlCreateListView("", 15, 68, 369, 213, -1, BitOR($WS_EX_CLIENTEDGE,$LVS_EX_GRIDLINES,$LVS_EX_FULLROWSELECT)) GUICtrlSendMsg(-1, 0x101E, 0, 50) GUICtrlSetFont(-1, 9, 400, 0, "Tahoma") GUICtrlSetOnEvent(-1, "ActiveListClick") _GUICtrlListView_AddColumn($ActiveList, "Item", 100, 2) _GUICtrlListView_AddColumn($ActiveList, "Value", 265, 2) $List_userID_0 = _GUICtrlListView_AddItem($ActiveList,"User ID") _GUICtrlListView_AddSubItem($ActiveList, 0, "dfgdfshgfghdfhgf", 1) $List_userN_1 = _GUICtrlListView_AddItem($ActiveList,"User Name") $List_loc_2 = _GUICtrlListView_AddItem($ActiveList,"Location") $List_type_3 = _GUICtrlListView_AddItem($ActiveList,"Type") The text is always centered. Thank you, Edited July 24, 2008 by enaiman SNMP_UDF ... for SNMPv1 and v2c so far, GetBulk and a new example script wannabe "Unbeatable" Tic-Tac-Toe Paper-Scissor-Rock ... try to beat it anyway :) Link to comment Share on other sites More sharing options...
BrettF Posted July 24, 2008 Share Posted July 24, 2008 I tried to set the text in my listview to be alligned to left (instead of center) and couldn't find a way to do it. Searching the forum I found this old refference - wondering if this function might be around or not? $ActiveList = GUICtrlCreateListView("", 15, 68, 369, 213, -1, BitOR($WS_EX_CLIENTEDGE,$LVS_EX_GRIDLINES,$LVS_EX_FULLROWSELECT)) GUICtrlSendMsg(-1, 0x101E, 0, 50) GUICtrlSetFont(-1, 9, 400, 0, "Tahoma") GUICtrlSetOnEvent(-1, "ActiveListClick") _GUICtrlListView_AddColumn($ActiveList, "Item", 100, 2) _GUICtrlListView_AddColumn($ActiveList, "Value", 265, 2) $List_userID_0 = _GUICtrlListView_AddItem($ActiveList,"User ID") _GUICtrlListView_AddSubItem($ActiveList, 0, "dfgdfshgfghdfhgf", 1) $List_userN_1 = _GUICtrlListView_AddItem($ActiveList,"User Name") $List_loc_2 = _GUICtrlListView_AddItem($ActiveList,"Location") $List_type_3 = _GUICtrlListView_AddItem($ActiveList,"Type") The text is always centered. Thank you,3.2.12.1- _GUICtrlListView_JustifyColumn All there muttley Vist my blog!UDFs: Opens The Default Mail Client | _LoginBox | Convert Reg to AU3 | BASS.au3 (BASS.dll) (Includes various BASS Libraries) | MultiLang.au3 (Multi-Language GUIs!)Example Scripts: Computer Info Telnet Server | "Secure" HTTP Server (Based on Manadar's Server)Software: AAMP- Advanced AutoIt Media Player | WorldCam | AYTU - Youtube Uploader Tutorials: Learning to Script with AutoIt V3Projects (Hardware + AutoIt): ArduinoUseful Links: AutoIt 1-2-3 | The AutoIt Downloads Section: | SciTE4AutoIt3 Full Version! Link to comment Share on other sites More sharing options...
enaiman Posted July 24, 2008 Author Share Posted July 24, 2008 I feel stupid right now ... muttley I've been looking over and over through help file (not trying to type-in the name or copy/paste) ... obviously haven't seen it. Searched the forum after that ... Downloaded the latest beta and had a look in the GuiListView.au3 included. Found the function there. Thought it was re-added. Started typing the function name in SCiTe and it was instantly recognized (thought ... "what the heck? maybe it is missing from help?") Had a closer look at the help file. Found the function right there in 3.2.12.1 Felt embarrased and came back to forum to delete the topic. Found Bart's reply. Felt more embarrased ... and decided to write this post. Thank you Bart All others - sorry for my silly mistake. SNMP_UDF ... for SNMPv1 and v2c so far, GetBulk and a new example script wannabe "Unbeatable" Tic-Tac-Toe Paper-Scissor-Rock ... try to beat it anyway :) Link to comment Share on other sites More sharing options...
BrettF Posted July 24, 2008 Share Posted July 24, 2008 Don't have a cow man! My names Brett (or use my nickname Bert...) muttley Vist my blog!UDFs: Opens The Default Mail Client | _LoginBox | Convert Reg to AU3 | BASS.au3 (BASS.dll) (Includes various BASS Libraries) | MultiLang.au3 (Multi-Language GUIs!)Example Scripts: Computer Info Telnet Server | "Secure" HTTP Server (Based on Manadar's Server)Software: AAMP- Advanced AutoIt Media Player | WorldCam | AYTU - Youtube Uploader Tutorials: Learning to Script with AutoIt V3Projects (Hardware + AutoIt): ArduinoUseful Links: AutoIt 1-2-3 | The AutoIt Downloads Section: | SciTE4AutoIt3 Full Version! Link to comment Share on other sites More sharing options...
enaiman Posted July 24, 2008 Author Share Posted July 24, 2008 ... oops I did it again ... Sorry Bert - won't happen again. SNMP_UDF ... for SNMPv1 and v2c so far, GetBulk and a new example script wannabe "Unbeatable" Tic-Tac-Toe Paper-Scissor-Rock ... try to beat it anyway :) Link to comment Share on other sites More sharing options...
BrettF Posted July 24, 2008 Share Posted July 24, 2008 ... oops I did it again ... Sorry Bert - won't happen again. Vist my blog!UDFs: Opens The Default Mail Client | _LoginBox | Convert Reg to AU3 | BASS.au3 (BASS.dll) (Includes various BASS Libraries) | MultiLang.au3 (Multi-Language GUIs!)Example Scripts: Computer Info Telnet Server | "Secure" HTTP Server (Based on Manadar's Server)Software: AAMP- Advanced AutoIt Media Player | WorldCam | AYTU - Youtube Uploader Tutorials: Learning to Script with AutoIt V3Projects (Hardware + AutoIt): ArduinoUseful Links: AutoIt 1-2-3 | The AutoIt Downloads Section: | SciTE4AutoIt3 Full Version! 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