public function __construct($objParentObject, QDateTimeTextBox $dtxLinkedControl, $strControlId = null, $blnAutoShowOnClick = true)
{
try {
parent::__construct($objParentObject, $strControlId);
} catch (QCallerException $objExc) {
$objExc->IncrementOffset();
throw $objExc;
}
// Setup Linked DateTimeTextBox control
$this->dtxLinkedControl = $dtxLinkedControl;
// Other Setup
$this->strCalendarImageSource = __IMAGE_ASSETS__ . '/calendar.png';
if ($blnAutoShowOnClick) {
$this->dtxLinkedControl->RemoveAllActions(QClickEvent::EventName);
$this->dtxLinkedControl->AddAction(new QClickEvent(), new QJavaScriptAction("qc.getC('" . $this->strControlId . "').showCalendar(); "));
$this->dtxLinkedControl->AddAction(new QClickEvent(), new QBlurControlAction($this->dtxLinkedControl));
$this->dtxLinkedControl->AddAction(new QClickEvent(), new QTerminateAction());
}
}