pButton->AddActionEventListener(*this);
// Adds the button to the form
- AddControl(*pButton);
+ AddControl(pButton);
// Creates an instance of DatePicker
__pDatePicker = new DatePicker();
// Gets a pointer of the frame
Frame *pFrame = UiApp::GetInstance()->GetAppFrame()->GetFrame();
- pFrame->AddControl(*pForm);
- pFrame->SetCurrentForm(*pForm);
+ pFrame->AddControl(pForm);
+ pFrame->SetCurrentForm(pForm);
// Implements MyActionEventListener
IActionEventListener* pListener = new MyActionEventListener();
Label* pLabel = new Label();
pLabel->Construct(Rectangle(0, 0, itemWidth, GetDefaultItemHeight()), text);
- pItem->AddControl(*pLabel);
+ pItem->AddControl(pLabel);
pItem->SetContextItem(__pContextItem);
return pItem;
pButton->AddActionEventListener(*this);
// Adds a Button to the Form
- AddControl(*pButton);
+ AddControl(pButton);
// Creates an instance of TimePicker
__pTimePicker = new TimePicker();