From: Jürgen Knauf on 8 Jun 2010 12:05 Hi, I want to select another Treeviewitem by doubleclicking on it. When I try to catch the doubleclick event , i get only the TreeviewItem Changed Event. How can I additionally evaluate the mousedoubleclick event? Juergen
From: Simon Goodman on 8 Jun 2010 13:55 Hi Juergen The event has the control that was clicked so you can check the name for the control: oTreeViewItemChangedEvent:Control:NameSym = #YOURTREEVIEWNAME HTH Simon "J�rgen Knauf" <j.knauf(a)kp-software.de> wrote in message news:4c0e6a6a$0$6881$9b4e6d93(a)newsspool2.arcor-online.net... > Hi, > > I want to select another Treeviewitem by doubleclicking on it. > > When I try to catch the doubleclick event , i get only the TreeviewItem > Changed Event. > > How can I additionally evaluate the mousedoubleclick event? > > Juergen > > > > > >
From: Geoff Schaller on 8 Jun 2010 18:32 J�rgen, What does the regular MouseButtonDoubleClick() handler in the window give you as a control? Is it fired by the treeview Control? This is a standard handler available from the WED of course. If the event is not fired by the control you will need to subclass its dispatch or WndProc to provide the event to the window but I am reasonably sure it fires the standard handler. Geoff "J�rgen Knauf" <j.knauf(a)kp-software.de> wrote in message news:4c0e6a6a$0$6881$9b4e6d93(a)newsspool2.arcor-online.net: > Hi, > > I want to select another Treeviewitem by doubleclicking on it. > > When I try to catch the doubleclick event , i get only the TreeviewItem > Changed Event. > > How can I additionally evaluate the mousedoubleclick event? > > Juergen
From: Jürgen Knauf on 9 Jun 2010 10:43 Hi Geoff, When I select another Treeviewitem by doubleclicking on it, there is an event in the "TreeViewSelectionChanged" Method of the Window. Then when I repeat the doubleclick, I get the correct event handler the TreeViewMouseButtonDoubleClick" Method I want to do 2 operations with one doubleclick: First change the TreeviewItem and then start the doubleclik action. "Geoff Schaller" <geoffx(a)softxwareobjectives.com.au> schrieb im Newsbeitrag news:9yzPn.1801$Ls1.1592(a)news-server.bigpond.net.au... > J�rgen, > > What does the regular MouseButtonDoubleClick() handler in the window give > you as a control? Is it fired by the treeview Control? This is a standard > handler available from the WED of course. > > If the event is not fired by the control you will need to subclass its > dispatch or WndProc to provide the event to the window but I am reasonably > sure it fires the standard handler. > > Geoff > > > > "J�rgen Knauf" <j.knauf(a)kp-software.de> wrote in message > news:4c0e6a6a$0$6881$9b4e6d93(a)newsspool2.arcor-online.net: > >> Hi, >> >> I want to select another Treeviewitem by doubleclicking on it. >> >> When I try to catch the doubleclick event , i get only the TreeviewItem >> Changed Event. >> >> How can I additionally evaluate the mousedoubleclick event? >> >> Juergen >
From: Geoff Schaller on 9 Jun 2010 17:38
This is no problem but you are going to have to trap the events with a subclassed WndProc. You must always get both events because both always happen.Do you know how to do this? Geoff "J�rgen Knauf" <j.knauf(a)kp-software.de> wrote in message news:4c0fa884$0$7668$9b4e6d93(a)newsspool1.arcor-online.net: > Hi Geoff, > > When I select another Treeviewitem by doubleclicking on it, there is an > event in the "TreeViewSelectionChanged" Method of the Window. > > Then when I repeat the doubleclick, I get the correct event handler the > TreeViewMouseButtonDoubleClick" Method > > I want to do 2 operations with one doubleclick: > First change the TreeviewItem and then start the doubleclik action. > > > "Geoff Schaller" <geoffx(a)softxwareobjectives.com.au> schrieb im Newsbeitrag > news:9yzPn.1801$Ls1.1592(a)news-server.bigpond.net.au... > > > J�rgen, > > > > What does the regular MouseButtonDoubleClick() handler in the window give > > you as a control? Is it fired by the treeview Control? This is a standard > > handler available from the WED of course. > > > > If the event is not fired by the control you will need to subclass its > > dispatch or WndProc to provide the event to the window but I am reasonably > > sure it fires the standard handler. > > > > Geoff > > > > > > > > "J�rgen Knauf" <j.knauf(a)kp-software.de> wrote in message > > news:4c0e6a6a$0$6881$9b4e6d93(a)newsspool2.arcor-online.net: > > > > >> Hi, > >> > >> I want to select another Treeviewitem by doubleclicking on it. > >> > >> When I try to catch the doubleclick event , i get only the TreeviewItem > >> Changed Event. > >> > >> How can I additionally evaluate the mousedoubleclick event? > >> > >> Juergen > > > |