Class TRkNavigatorPanel (unit RkNavPnl) |
TPanel
Constructors |
Functions |
Properties |
Events |
Variables |
Constructors |
===============================} {== TRkNavigatorPanel Methods ==} {===============================
Functions |
Create the drop area list
========================================================================= TRkNavigatorPanel.DefineProperties In order to correct the parent hierarchy, a list of all controls that were dropped into the drop area must be stored in the stream along with the component. To do this, we define a new custom property using this method. =========================================================================
========================================================================= TRkNavigatorPanel.GetChildren This method is responsible for changing the parent hierarchy when the component is written to a stream. This method is called by Delphi to determine which components are children of the main component. We override this method to tell Delphi to treat all of the components dropped into the drop area as children of the main component rather than children of the embedded ScrollBox. The parent hierarchy is corrected in the Loaded method. =========================================================================} {$IFDEF VER100
These five protected methods must be overridden to ensure that any components dropped onto the drop area are correctly streamed to the form file.
========================================================================= TRkNavigatorPanel.Loaded This method is responsible for "correcting" the parent hierarchy within the compound component. That is, when the component is written to a stream, the Parent of all controls dropped onto the drop area are changed to the main component rather than the drop area. This is necessary in order to support form inheritance. This method, corrects the Parent hierarchy by iterating through the FDropAreaList. =========================================================================
========================================================================= TRkNavigatorPanel.ReadDropList This method is called whenever the DropAreaList custom property needs to be read from a stream. Each component identifier that was stored in the stream is read and saved into the FDropAreaList string list. =========================================================================
========================================================================= TRkNavigatorPanel.WriteDropList This method is called whenever the DropAreaList custom property needs to be written to a stream. The identifier of each control dropped onto the drop area is stored in the stream. =========================================================================
========================================================================= TRkNavigatorPanel.CreateDropArea This method is responsible for creating the FDropArea instance. This method also creates the string list to be associated with the drop area. The string list will be used to store which components are contained within the drop area when the component is written to a stream. =========================================================================
Ensure nav buttons show correct state
Flat style buttons are only available in Delphi 3.0
Properties |
Run-time access to drop area
Exposing properties of embedded components
Events |
Variables |
Embedded ScrollBox will accept other components dropped onto it
Declare an internal string list for each drop area component
Other embedded components