Sign in to follow this  
Followers 0
caramen

GUICtrlCreateListView Help plz :)

6 posts in this topic

I got this script

#include <MsgBoxConstants.au3>
#include <ButtonConstants.au3>
#include <EditConstants.au3>
#include <GUIConstantsEx.au3>
#include <ListViewConstants.au3>
#include <ButtonConstants.au3>
#include <WindowsConstants.au3>
#include <GuiListView.au3>
#include <File.au3>

Opt("GUIOnEventMode", 1)


Global $Console = GUICreate("Console", 200, 200)
Global $Var01 = 01


Global $ConsoleArea = GUICtrlCreateListView("", 10,10 , 180, 180,$LVS_LIST,$LVS_EX_FULLROWSELECT)
GUISetState(@SW_SHOW, $Console)



While 1
   Message01 ()
WEnd




Func Message01 ()

   Local $iTimeout = 10

   Sleep (300)

   $Var01 = $Var01 + 1

   GUICtrlCreateListViewItem ("Numero de la variable = "& $Var01, $ConsoleArea)
   _GUICtrlListView_AddItem($ConsoleArea,"Numero de la variable = "& $Var01)


EndFunc

Help 1

I whould like to know How can i change the scale (left , right ) to a scale (up, down)

Help 2

How can i keep focus on last line ?

Damn i tryed so much thing and i cant get what i want :(!

Share this post


Link to post
Share on other sites



I don't got what you mean.

Saludos

Share this post


Link to post
Share on other sites

#3 ·  Posted (edited)

ANSWER 1

I was getting confused becose of one thing i did not put a name into my function :

Global $ConsoleArea = GUICtrlCreateListView("", 10,10 , 180, 180,$LVS_LIST,$LVS_EX_FULLROWSELECT)

It is working like this :(so i can see the colum (cant without name ;) ))

Global $ConsoleArea = GUICtrlCreateListView("Console    ", 10,10 , 180, 180,$LVS_LIST,$LVS_EX_FULLROWSELECT)

About the Question 2 :

I will explaine better :

The list is making one item after one

Value = 1

Value = 2

Value = 3

Value = 4

Value = 5

Value = 6

Value = 7

Value = 8

etc...

When the value 10 is coming i cant see it i need to scroll the windows down

I whould like to see the last item added without scrolling, it is possible ?

 

EDIT : Danyfirex (Nyuuuuuuuuu! )





			
				


	Edited  by caramen
	
	

			
		

Share this post


Link to post
Share on other sites

use _GUICtrlListView_Scroll 

Saludos

Share this post


Link to post
Share on other sites

#6 ·  Posted (edited)

thx

both solution is working but last one is much apreciated :)

Thx to both of you guys :)

Edited by caramen

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  
Followers 0