Suggestion for new win32lib routine

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

Derek,

I added a routine to my win32lib to delete all children for a tree view 
item.  I thought this might be worth considering as an addition to the 
library.  I placed this routine immediately after deleteItem.

Jonas

global procedure deleteTVChildren( atom id, integer pos )

    atom iItem

    -- Is a treeview?
    if window_type[ id ] = TreeView then
        -- take care of any children
        iItem = find(pos, tvitem_parent)
        while iItem do
            VOID = deleteItem( id, iItem )
	        iItem = find(pos, tvitem_parent)
        end while
    end if

end procedure

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

Search



Quick Links

User menu

Not signed in.

Misc Menu