OK, I'm getting this into the NUG archive for the benefit of
future generations. :) This is in REALbasic 5.5.5:
If you are embedding a control (say, a pushbutton) into a Canvas
which you intend to scroll, you should have the pushbutton's
AutoDeactivate property set to True. Otherwise, when the button
is scrolled off the boundary of the canvas, it will appear
outside the canvas when the window is deactivated.
Also, you can't use Composite windows; they look even worse.
Sorry, future generations; it's all bunk. It now appears that
*nothing* will keep a scrolled control from appearing outside of
its parent canvas control, at least in my project.
Children of the future, listen when I tell you this. You must have
the Visible attribute of your controls set to True in the IDE or it
won't work. Put simply, the control must be visible *before* a
clone is created inside the canvas. So say I, after too many hours
of fussing around with this one damned window.
Furthermore, you must have at least one pixel of the template control
inside the bounds of your window. If it is not visible in your
window, it will reappear once the canvas is scrolled and the window
is deactivated.
Aren't you glad I'm finding all this out for you? Here are the rules
so far:
- No Composite windows.
- You must have Visible set to true.
- You have to set the parent of your new control to the canvas upon
which it will be scrolled.
- The control must be visible in the window by even the smallest
amount (a single pixel).
I'm going back to bed now.
Eric Williams
Oxalyn Software
http://software.oxalyn.com/
AE Monitor
http://software.oxalyn.com/AEMonitor/
_______________________________________________
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>