Hi, On 17/02/2014 11:57, Werner wrote: > Hi (probably Chris:-) ), > > I am trying to implement a kind of a "D&D" functionality for my wine > racks, i.e. user should be able to move a bottle stored in one rack > location to another one which has available capacity. > > The FC objects are basically a fc.Circle with some added information. > > Currently I have: > - on left down I show information about the wine in the object clicked > on (I am using a SuperToolTip for this and it works great) - > fc.EVT_FC_LEFT_DOWN > > Now I thought I could use fc.EVT_FC_ENTER_OBJECT to show information on > the new location, again using STT to show the information. > > My problem is that the second STT is shown when it shouldn't, i.e. it > should only show if the 'left mouse' is down and mouse 'entered an > object with available capacity', in other words it shouldn't show when > one just clicks on an object. > > Is there a way to detect the mouse state in the event handler or do I > need to set a flag in the left down handler and bind a left up handler > to reset it. > > I hope this is enough information that you can give me some tips on how > to go about this. Obviously, soon after I found " wx.GetMouseState().LeftIsDown()", so now I just need to code the actual moving.
Werner _______________________________________________ FloatCanvas mailing list [email protected] http://mailman.paulmcnett.com/cgi-bin/mailman/listinfo/floatcanvas
