Information générale
Catégorie:
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.
Précédent
Répondre
Voir le fil de ce thread
Voir le fil de ce thread à partir de ce message seulement
Voir tous les messages de ce thread
Voir tous les messages de ce thread à partir de ce message seulement