#include <FUi.h>
class QuickPanelFrameSample
- : public Osp::Ui::Controls::Form
+ : public Osp::Ui::Controls::Form
{
public:
- QuickPanelFrameSample(void)
- : __pQuickPanelFrame(null){}
+ QuickPanelFrameSample(void)
+ : __pQuickPanelFrame(null){}
- bool Initialize(void);
- virtual result OnInitializing(void);
- virtual result OnTerminating(void);
+ bool Initialize(void);
+ virtual result OnInitializing(void);
+ virtual result OnTerminating(void);
private:
- static const int QUICK_PANEL_FRAME_HEIGHT = 102;
+ static const int QUICK_PANEL_FRAME_HEIGHT = 102;
- Osp::Ui::Controls::NotificationFrame *__pQuickPanelFrame;
+ Osp::Ui::Controls::NotificationFrame *__pQuickPanelFrame;
};
// Sample code for QuickPanelFrameSample.cpp
bool
QuickPanelFrameSample::Initialize(void)
{
- Construct(FORM_STYLE_NORMAL|FORM_STYLE_INDICATOR);
- return true;
+ Construct(FORM_STYLE_NORMAL|FORM_STYLE_INDICATOR);
+ return true;
}
result
QuickPanelFrameSample::OnInitializing(void)
{
- result r = E_SUCCESS;
+ result r = E_SUCCESS;
- // Creates an instance of NotificationFrame
- __pQuickPanelFrame = new NotificationFrame;
- __pQuickPanelFrame->Construct(QUICK_PANEL_FRAME_HEIGHT);
+ // Creates an instance of NotificationFrame
+ __pQuickPanelFrame = new NotificationFrame;
+ __pQuickPanelFrame->Construct(QUICK_PANEL_FRAME_HEIGHT);
- // Creates an instance of Button
- Button* pButton = new Button();
- pButton->Construct(Rectangle(10,10,200,80), L"Button");
+ // Creates an instance of Button
+ Button* pButton = new Button();
+ pButton->Construct(Rectangle(10,10,200,80), L"Button");
- // Adds the button to the notification frame
- __pQuickPanelFrame->AddControl(*pButton);
- __pQuickPanelFrame->Show();
+ // Adds the button to the notification frame
+ __pQuickPanelFrame->AddControl(*pButton);
+ __pQuickPanelFrame->Show();
- return r;
+ return r;
}
result
QuickPanelFrameSample::OnTerminating(void)
{
- result r = E_SUCCESS;
+ result r = E_SUCCESS;
- delete __pQuickPanelFrame;
- return r;
+ delete __pQuickPanelFrame;
+ return r;
}
* @endcode
*