SYRAU3 Posted June 26, 2012 Share Posted June 26, 2012 Hello again........... big-minds!If i'm using this example:#include #include Opt('MustDeclareVars', 1) $Debug_LV = False ; Check ClassName being passed to ListView functions, set to True and use a handle to another control to see it work _Main() Func _Main() Local $hListView GUICreate("ListView Set Item Selected", 400, 300) $hListView = GUICtrlCreateListView("", 2, 2, 394, 268) GUISetState() ; Add columns _GUICtrlListView_AddColumn($hListView, "Items", 100) ; Add items For $i = 1 to 100 _GUICtrlListView_AddItem($hListView, "Item " & $i) Next ; Select item 2 _GUICtrlListView_SetItemSelected($hListView, 40) MsgBox(4160, "Information", "Item 40 Selected: " & _GUICtrlListView_GetItemSelected($hListView, 40)) ; Loop until user exits Do Until GUIGetMsg() = $GUI_EVENT_CLOSE GUIDelete() EndFunc ;==>_Mainis there any way to scroll to the selected item? _GUICtrlListView_Scroll doesn't help so much! Link to comment Share on other sites More sharing options...
AdmiralAlkex Posted June 27, 2012 Share Posted June 27, 2012 It sounds more like you want _GUICtrlListView_EnsureVisible(), that function scrolls to a particular item. SYRAU3 1 .Some of my scripts: ShiftER, Codec-Control, Resolution switcher for HTC ShiftSome of my UDFs: SDL UDF, SetDefaultDllDirectories, Converting GDI+ Bitmap/Image to SDL Surface Link to comment Share on other sites More sharing options...
SYRAU3 Posted June 27, 2012 Author Share Posted June 27, 2012 It sounds more like you want _GUICtrlListView_EnsureVisible(), that function scrolls to a particular item.That's it thank you 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