Re: treeview item events

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

I came in on the back end of this, you can return any message
from/to treeview with this.

-- tagNMHDR NMHDR_hwndFrom = 0, 
    NMHDR_idFrom = 4,
    NMHDR_code = 8,
    SIZEOF_NMHDR = 12


elsif iMsg = WM_NOTIFY then

   id = peek4s(lParam + NMHDR_hwndFrom)

          if id = TreeView then              

              iMsg = peek4s(lParam + NMHDR_code)

-- with the returned value "iMsg", any of the NM_* constants
-- work as well as the TVN_* notification messages...

ofcourse win32lib's way, Im not so sure about.....
this is how standard API codeing works.

Euman
euman at bellsouth.net


From: "Derek Parnell" <ddparnell at bigpond.com>

> There doesn't seem to be a way to trap mouse events (other than clicks) in a
> treeview. I guess the control intercepts mouse messages before your prgram
> gets to see them.
> 
> From: <wick900 at operamail.com>
> > I was looking in the archives for information on treeviews, but most of
> > it didn't make sense.  I want to figure out how to trigger an event when
> > an treeview item gets a onMouse() event (or an equivalent).  Is this
> > possible?

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

Search



Quick Links

User menu

Not signed in.

Misc Menu