Jump to content
Sign in to follow this  
enaiman

What happened to "_GUICtrlListViewJustifyColumn"

Recommended Posts

enaiman

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 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 :)

Share this post


Link to post
Share on other sites
BrettF

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

Share this post


Link to post
Share on other sites
enaiman

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 :)

Share this post


Link to post
Share on other sites
BrettF
enaiman

... oops I did it again ... :P

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 :)

Share this post


Link to post
Share on other sites
BrettF

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
Sign in to follow this  

×