ViewFrames, signals, and dnd



I'm trying to put some ViewFrames on a Canvas using the CanvasWidget
item and am running into a couple of problems.  

Button Press events don't seem to be getting propagated up from the
ViewFrame cover to the CanvasWidget.  When I attach to the CanvasItem's
event handler, I get motion events, but the button press events don't
make it to the handler.  Looking at the button press handler in view
frame, it returns FALSE, so I'm not sure what's happening here.  

I smell a canvas issue, but it got me thinking that a user_select (or
perhaps user_focus) signal in response to single button1 clicks on the
cover would come in handy.  In my case, I want to draw a box around the
viewframe in this situation. I also need to keep track of the selected
viewframe in order to delete the corresponding embeddable on an
Edit/Delete menu event or del keystroke. I suspect these are common
enough activities to warrant addition to the API.

I'm also interested in using covered viewframes as dnd sources.  Is this
possible? With the cover being private I'm assuming some interface
primitives would be needed to set it up as a source. 

I'm willing to work up patches for these if they're not totally moronic
ideas. 

Mike




[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]