I found that this is what I needed _kEventWindowDragCompleted In 10.7 I just redraw the contents On Sep 19, 2011, at 12:35 PM, Steve wrote: > Bernie, > > This issue only occurs in 10.7 and just installing the handler below on the window eliminates the problem. I don't do anything in the contentviewdraw handler fn. > > It is causing an issue when collapsing a window with a toolbar. Lines are drawn erratically in the content region of the toolbar when it is collapsed using fn ShowHideWindowToolbar( window ( _wndRef ), _false, _false ) > > Thanks > > Steve > > > On Sep 19, 2011, at 11:55 AM, Bernie wrote: > >> >> Steve wrote: >> >>> When I drag a window from one monitor to another the background of the window is redrawn. I cannot capture the event and haven't found it in the documentation. >>> >>> What event should I be looking for? >> >> If compositing window, I suppose you could install a control draw handler on its content view. >> >> Bernie >> >> '--------------- >> include "Tlbx HIView.incl" >> include "Util_CE.incl" >> >> local fn MyContentViewDrawHandler( nextHandler as EventHandlerCallRef, theEvent as EventRef, userData as pointer ) >> '~'1 >> // do something..... >> beep >> end fn = _noErr >> >> dim as HIViewRef contentView >> appearance window 1,"Drag me", (0,0)-(480,360), _kDocumentWindowClass, _kWindowCompositingAttribute >> fn HIViewFindByID( fn HIViewGetRoot( window( _wndRef ) ), kHIViewWindowContentID, @contentView ) >> fn CEAddEvent( _kEventClassControl, _kEventControlDraw ) >> fn CEInstallControlEventHandler( contentView, @fn MyContentViewDrawHandler, NULL, NULL ) >> RunApplicationEventLoop() >> '--------------- >> >> >> >> -- >> To unsubscribe, send ANY message to: futurebasic-unsubscribe@... >> To access the list archives, go to: http://freegroups.net/groups/futurebasic/ >> > > > -- > To unsubscribe, send ANY message to: futurebasic-unsubscribe@... > To access the list archives, go to: http://freegroups.net/groups/futurebasic/ >