#include "scrobar.h"

@implementation WDCScrollBar

- (WidgetClass)getWidgetClass
{
  return xmScrollBarWidgetClass;
}

- setAction
{
  XtAddCallback([self getWidget], XmNactivateCallback, theCallback, self);
  // [self setActionMessage:"doManageChild" withReceiver: self];
  // default to do nothing.
  return self;
}

- setCallData:(XtPointer)aCall_data
{
  XmScrollBarCallbackStruct *aCall_data_ptr
    =(XmScrollBarCallbackStruct*)aCall_data;
  _call_data.reason=aCall_data_ptr->reason;
  _call_data.event=aCall_data_ptr->event;
  _call_data.value=aCall_data_ptr->value;
  _call_data.pixel=aCall_data_ptr->pixel;
  return self;
}


@end;
