Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Stopping a toolbar from Undocking
Message
From
06/06/2001 05:41:06
Alexandre Palma
Harms Software, Inc.
Alverca, Portugal
 
 
To
06/06/2001 05:16:20
General information
Forum:
Visual FoxPro
Category:
Forms & Form designer
Miscellaneous
Thread ID:
00515603
Message ID:
00515611
Views:
18
>>>Can anyone suggest a way of stopping a toolbar from undocking?
>>>
>>>TIA
>>
>>on the undock event of the toolbar put this.Dock()
>
>That gives an Error...
>"Too few arguments"
>
>So it wants at least 1 parameter to say where to dock it.
>
>I've already tried a few things..
>This.Dock(0)
>This.Dock(0,100,0)
>
>Nodefault from Undock, BeforeDock, Afterdock
>Return .f. from Undock, BeforeDock, Afterdock
>
>None of them work
>
>The really annoying thing is that I have got this to work in the past and can't remember what I did :(

sorry will put this.dock(-1) in the dblclick event of the toolbar.
this way wen the user double click on the toolbar for undock the toolbar then is dock again to the same position.
Alexandre Palma
Senior Application Architect
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform