This class defines a user inteface entity that consists of a collection of zero or more other interactors.
![]() | PInteractorLayout ( PInteractor * parent ) Create a new empty layout. |
![]() | PInteractorLayout ( PInteractor * parent, PRESOURCE_ID resID ) Create a new layout by loading it from a resource. |
![]() | ~PInteractorLayout () Destroy the interactor layout, releasing its data and all of its associated controls |
![]() | SetFocusInteractor ( PInteractor * interactor ) Set the child interactor that has the focus in the interactor layout. |
![]() | GetFocusInteractor () const Get the child interactor that has the focus in the interactor layout. |
![]() | GetControl ( PRESOURCE_ID id ) Get the child interactor control with the specifed ID. |
![]() | UpdateControls () Update the value sof all controls from their attached value pointers using the notification function with the PControl::NotifyUpdate code. |
![]() | Overrides from class PInteractor |
![]() | New functions for class |
![]() | focusInteractor The last interactor in layout with keyboard focus. |
![]() | ConstructEnd ( PRESOURCE_ID resID ) Complete construction of an interactor layout. |
Overrides from class PObject
System callback functions.
This class defines a user inteface entity that consists of a collection of zero or more other interactors. These interactors are expected to be descendents of the PControl class. Controls allow information to be transferred between the user and the application.The external and internal layout of an instance of this class is usually described using application resources.
This class, while not actually abstract, is usually descended from before use. The descendents such as PDialog will add more functionality and may visually appear different. An interactor layout has no title or border as these are usually added by the descendent.
This interactor is the one that will receive the focus whenever the
layout itself receives the focus. As a layout does not handle keyboard
input directly it passes the focus on to a child control within itself.
As the resource compiler generates the constructor for the layout or
dialog, it is impossible for the user to add extra construction code
there. To circumvent this problem, the last thing the generated code
does is to call the ConstructEnd() function, which the user can
override and add extra construction code. The default implementation of this function is platform dependent, for
example in MS-Windows it initialises list boxes from a resource
containing their string list values. Note that when overriding this function, the ancestor version
must always be called.
PInteractorLayout( PInteractor * parent, PRESOURCE_ID resID )
resID - Resource identifier for loading controls.virtual ~PInteractorLayout()
Overrides from class PInteractor
virtual void SetFocusInteractor( PInteractor * interactor )
virtual PInteractor* GetFocusInteractor() const
New functions for class
PControl* GetControl( PRESOURCE_ID id )
void UpdateControls()
virtual void ConstructEnd( PRESOURCE_ID resID )
PInteractor* focusInteractor
Alphabetic index HTML hierarchy of classes or Java