James,

Just out of curiosity, if you flip the windows asynchronous window attribute to be on, does the timer still not fire until you let go of the mouse??

This code should make window events fire (and timers and threads within the window) continue to fire even with the mouse down. I'm not sure if the windows execution is interrupted still a control receives the event, but if the window receives the event (click, drag, whatever) then I can verify that this works fine from within RB 5.5.5 and up.

Cheers,
Tom Benson

Declare Function ChangeWindowAttributes Lib "Carbon" (window as WindowPtr, setTheseAttributes as Integer, clearTheseAttributes as Integer) as Integer

  if b then

    If GesaltLib.IsPanther() Then
      call ChangeWindowAttributes(w, 8388608, 0) //asynchronous on
    else
      call ChangeWindowAttributes(w, 0, 8388608) //asynchronous off
    end

  End If


On 10/01/2007, at 8:55 AM, James Sentman wrote:


On Jan 9, 2007, at 2:39 PM, Chris Halford wrote:

Is there a trick to get container controls to correctly clip the controls that they are containing?
Having scrolled containers peek out of the sides is a real problem...


Hello Chris!

Are you telling me this is still broken with the more recent versions of RB? I've been digging around for my checkbook the last few days to finally update my RB5 to 07 and was hoping that might be fixed.

My version of RB5 doesn't have the container control, but if you put controls on a canvas and scroll them off the edge the same thing happens.

What I've done is to create a timer with a very short time interval in the window and in the scroll bar's changed event I set the timer to mode 1. It fires as soon as you let go of the mouse and just does a refresh of the window which makes the parts that are peaking through go away. It's messy but ends up with the window looking properly after a flash of seeing the peaky controls. Can you tap the scroll methods for a container as well?

Good Luck!
 James
_______________________________________________
Unsubscribe or switch delivery mode:
<http://www.realsoftware.com/support/listmanager/>

Search the archives of this list here:
<http://support.realsoftware.com/listarchives/lists.html>

_______________________________________________
Unsubscribe or switch delivery mode:
<http://www.realsoftware.com/support/listmanager/>

Search the archives of this list here:
<http://support.realsoftware.com/listarchives/lists.html>

Reply via email to