Jump to content
Sign in to follow this  
mozart90

2 Lines in Listview?

Recommended Posts

mozart90

Hi,

is it possibel to display 2 lines in a listview field ?

just for the idea:

GUICtrlCreateListViewItem("index 0|Firstline: long Text  - Secondline more text  |more2", $listview)

the second column should be dislpayded as two lines....

adding a @crlf displays just the charcter itself....

regards

mozart90

Edited by mozart90

Share this post


Link to post
Share on other sites
cppman

This should answer your question lol...

GUICreate("", 500, 500)
$listview = GUICtrlCreateListview("test|test2|", 10, 10, 300, 300)
GUICtrlCreateListViewItem("test"&@CRLF&"testing"&"|test|", $listview)
GUISetState()
While (GUIGetMsg() <> -3)
    sleep(10)
WEnd

Don't think you can..

Edited by CHRIS95219

Share this post


Link to post
Share on other sites
mozart90

This should answer your question lol...

GUICreate("", 500, 500)
$listview = GUICtrlCreateListview("test|test2|", 10, 10, 300, 300)
GUICtrlCreateListViewItem("test"&@CRLF&"testing"&"|test|", $listview)
GUISetState()
While (GUIGetMsg() <> -3)
    sleep(10)
WEnd

... hehe yes that's what I tried first. :)

perhaps any other suggestions?

greetings

mozart90

Share this post


Link to post
Share on other sites

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  

×