setTVINDEX addition to win32lib

new topic     » topic index » view thread      » older message » newer message

Hi Derek,

I don't know if other debuggers have reported this but setTVIndex() is 
missing,
setIndex doesn't include TreeView Support. Here is SetTVIndex,

Derek, Most People always expect this procedure to work (Visually) when 
the tree view has no focus.
	it won't display the selected rectangle unless TVS_SHOWSELALWAYS style 
flag 
is specified, So please make sure you add this to the Documentation. 
Here you go,

--Start: Jordah Ferguson
global procedure setTVIndex(atom tv,integer pos) 
atom void 
if pos>0 and pos<=length(tvitem_handle) then    
void = sendMessage(tv,TVM_SELECTITEM,TVGN_CARET,tvitem_handle[pos])
end if
end procedure
--End: Jordah Ferguson

Cheers,
Jordah Ferguson aka Sir LoJiK

new topic     » topic index » view thread      » older message » newer message

Search



Quick Links

User menu

Not signed in.

Misc Menu