InDesign SDK  20.5
 All Classes Namespaces Functions Variables Typedefs Enumerations Enumerator Friends Groups Pages
PicIcoPictureWidgetEH Class Reference
Inheritance diagram for PicIcoPictureWidgetEH:
DVControlEventHandlerDVHostedWidgetEHIEventHandlerIPMUnknown

Public Member Functions

 PicIcoPictureWidgetEH (IPMUnknown *boss)
 
virtual ~PicIcoPictureWidgetEH ()
 
virtual bool16 LButtonDn (IEvent *e)
 
- Public Member Functions inherited from DVControlEventHandler
 DVControlEventHandler (IPMUnknown *boss)
 
virtual const char * class_name ()
 
- Public Member Functions inherited from DVHostedWidgetEH
 DVHostedWidgetEH (IPMUnknown *boss)
 
virtual bool16 Activate (IEvent *)
 
virtual bool16 Deactivate (IEvent *)
 
virtual bool16 Suspend (IEvent *)
 
virtual bool16 Resume (IEvent *)
 
virtual bool16 MouseMove (IEvent *)
 
virtual bool16 MouseExit (IEvent *)
 
virtual bool16 MouseDrag (IEvent *)
 
virtual bool16 RButtonDn (IEvent *)
 
virtual bool16 MButtonDn (IEvent *)
 
virtual bool16 LButtonUp (IEvent *)
 
virtual bool16 RButtonUp (IEvent *)
 
virtual bool16 MButtonUp (IEvent *)
 
virtual bool16 ButtonDblClk (IEvent *)
 
virtual bool16 ButtonTrplClk (IEvent *)
 
virtual bool16 ButtonQuadClk (IEvent *)
 
virtual bool16 ButtonQuintClk (IEvent *)
 
virtual bool16 MouseWheel (IEvent *)
 
virtual bool16 TabletEvent (IEvent *)
 
virtual bool16 GestureEvent (IEvent *)
 
virtual bool16 MultiTouchEvent (IEvent *)
 
virtual bool16 BaseHandlePointerEvent (IEvent *)
 
virtual bool16 KeyDown (IEvent *)
 
virtual bool16 KeyCmd (IEvent *)
 
virtual bool16 KeyUp (IEvent *)
 
virtual bool16 BaseHandleKeyboardEvent (IEvent *)
 
virtual void PreGetKeyFocus ()
 
virtual void PostGetKeyFocus ()
 
virtual void PreGiveUpKeyFocus ()
 
virtual void PostGiveUpKeyFocus ()
 
virtual bool16 WillingToGiveUpKeyFocus ()
 
virtual bool16 SuspendKeyFocus ()
 
virtual bool16 ResumeKeyFocus ()
 
virtual bool16 CanHaveKeyFocus () const
 
virtual bool16 WantsTabKeyFocus () const
 
virtual bool16 ControlCmd (IEvent *)
 
virtual bool16 Update (IEvent *)
 
virtual bool16 PlatformEvent (IEvent *)
 
virtual bool16 CallSysEventHandler (IEvent *)
 
virtual void SetView (IControlView *)
 

Additional Inherited Members

- Public Types inherited from IEventHandler
enum  { kDefaultIID = IID_IEVENTHANDLER }
 
- Protected Member Functions inherited from DVHostedWidgetEH
dvaui::ui::UI_Node * Get_UI_Node () const
 

Detailed Description

Traps LButtonDn events.

The only method that is overridden by this class is LButtonDn; this is to create a picture-based button which can use Mac PICT or Windows BITMAP resources rather than just icons as in the other buttons in the widget set. The implementation is quite sparse in that there are only two different pictures for the selected and uselected states. There is none of the sophistication of the real iconic buttons such as being able to display a highlighted state when the end-user is clicking on the button.

DV_Note: As a widget eventhandler this should now derive from DVControlEventHandler rather than CEventHandler

Constructor & Destructor Documentation

PicIcoPictureWidgetEH::PicIcoPictureWidgetEH (IPMUnknownboss)

ctor.

Parameters
bossinterface ptr on the boss object to which the interface implemented here belongs.
virtual PicIcoPictureWidgetEH::~PicIcoPictureWidgetEH ()
inlinevirtual

Destructor

Member Function Documentation

bool16 PicIcoPictureWidgetEH::LButtonDn (IEvente)
virtual

Handle left button down events. Change the data model, and also change the picture displayed. This is because there is no platform peer that knows how to change its visual representation so we have to do it ourselves.

Parameters
eevent of interest.

Reimplemented from DVHostedWidgetEH.