Hello,
I didn't find the way to select a element from listview, I tryed sending message, but without success
SendMessage( oLvw:hWnd, LVM_SELECTITEM, nElemento, 0 )
some idea?
regards
Marcelo
Hello,
I didn't find the way to select a element from listview, I tryed sending message, but without success
SendMessage( oLvw:hWnd, LVM_SELECTITEM, nElemento, 0 )
some idea?
regards
Marcelo
oLvw:nOption is the selected item
#include "FiveWin.Ch"
//------------------------------------------------------------------//
function Main()
local oDlg, oLst
local n := 1
DEFINE DIALOG oDlg SIZE 400,400 PIXEL TITLE 'ListView'
@ 10,10 LISTVIEW oLst ;
PROMPTS 'One', 'Two', 'Three' ;
SIZE 200,100 PIXEL OF oDlg
ACTIVATE DIALOG oDlg CENTERED
return ( 0 )
//------------------------------------------------------------------//nageswaragunupudi ,
thanks for response, but what I want is not to know what item is selected, I want to define the selected item, some thing like oLvw:setSelect( nItem )
I hope now I am clear
regards
Marcelo