General information
Category:
Visual FoxPro Beta
>>>Hi David,
>>>
>>>>
>>>>Of course, you would then have to deal with users who drag the docked window out of its position and then have no idea what "went wrong." Maybe some smart person will figure out a way to disallow or override that once you have them docked the way you specify programmatically.
>>>>
>>>
>>>For Toolbars, I would set Movable = .F., but that doesn't seem to work with dockable forms.
>>
>>I think we could use the beforedock event in VFP9 to prevent undocking.
>
>No, we can't. Here's what help says about this (under BeforeDock method):
>
>"Returning .F. (False) from code in the event or adding the NODEFAULT command does not prevent docking."
Yes I saw that, but I suppose (not tried) that with could use a combination of GetDockState and Dock Method to redock the window in its initial position ? I hope that the final version of VFP9 will permit a NODEFAULT.
Previous
Reply
View the map of this thread
View the map of this thread starting from this message only
View all messages of this thread
View all messages of this thread starting from this message only