memo as a docked control
Posted on 2000-05-01
I simply have a TControlBar with 1 memo sitting on it. TControlBar.Align=top
TControlbar is autosize=true
The memo: dragkind=auto, dragmode=docksite
When the memo is dragged away, it forms a floating 'window' with a titlebar and small close icon. So far so good.
1. How do I put a name on the titlebar? Usually I set the caption property of a toolbar to do this - Toolbars have a caption property, but memos do not.
2. How do I reopen the memo once the user has closed the memo by clicking on the 'x' of the floating undocked memo?
3. I want to resize my memo when it docks and resize the floating undocked window whilst the memo is floating. How do I do this? The dockDrop event passes a TDragDockObject which I don't know what to do with.
I am using Delphi 4
thanks for all 3 questions,