20110520 Brew之TabWidget实例

本文档详细介绍了如何在Brew平台上使用TabWidget进行应用开发,包括创建TabApp工程、编写Includer.h和Helper.h文件,以及BaseWin类的实现。主要涉及了Brew中各种Widget类的引用和内存管理方法。
摘要由CSDN通过智能技术生成

Brew之TabWidget实例

 

一、创建TabApp工程,做如下准备工作

 

      1、在工程文件下添加TabAp.h、TabApp.cpp、BaseWin.h、BaseWin.cpp、Includer.h、Helper.h这样几个文件

      2、打开工程,将上面的这些文件添加到工程,然后删除原有的TabAPP.c

      3、文件将forms,widgets,widgettc这样一些必要的文件夹复制到.mif同目录的文件夹下

 

二、编写代码

 

      1、编写Includer.h文件

 

#ifndef INCLUDER_BUIW_H_
#define INCLUDER_BUIW_H_

extern "C"
{
//Form
 #include "AEEForm.h"
 #include "AEECLSID_FORM.bid"
//RootForm
 #include "AEERootForm.h"
 #include "AEECLSID_ROOTFORM.bid"
//Popup
 #include "AEEPopup.h"
 #include "AEECLSID_POPUPFORM.bid"  /*Identifies the class ID of the popup form*/
 #include "AEECLSID_POPUPMENUFORM.bid"  /*Identifies the class ID of the popup menu form*/
 #include "AEECLSID_POPUPMENUFORM_SCROLL.bid" /*Identifies the class ID of the popup menu form with scrollbar*/
//Dialog
 #include "AEEDialog.h"
 #include "AEECLSID_DIALOGFORM.bid"  /*Identifies the class ID of the dialog form*/
 #include "AEECLSID_PROGRESSDIALOG.bid"  /*Identifies the class ID of the progress dialog*/
 #include "AEECLSID_INFODIALOG.bid"  /*Identifies the class ID of the info message dialog*/
 #include "AEECLSID_ERRORDIALOG.bid"  /*Identifies the class ID of the error message dialog*/
 #include "AEECLSID_WARNDIALOG.bid"  /*Identifies the class ID of the warning message dialog*/
//listForm
 #include "AEEListForm.h"
 #include "AEECLSID_LISTFORM.bid"  /*Identifies the class ID of the list form*/
 #include "AEECLSID_LISTFORM_SCROLL.bid"  /*Identifies the class ID of the scrollbar list form*/
//Bitmap Widget
 #include "AEEBitmapWidget.h"
 #include "AEECLSID_BITMAPWIDGET.bid"  /*Identifies the class ID of the bitmap widget*/
//Blend Widget
 #include "AEEBlendWidget.h"
 #include "AEECLSID_BLENDWIDGET.bid"  /*Identifies the class ID of the blend widget*/
//Border Widget
 #include "AEEBorderWidget.h"
 #include "AEECLSID_BORDERWIDGET.bid"  /*Identifies the class ID of the border widget*/
//button Widget
 #include "AEEButtonWidget.h"
 #include "AEECLSID_BUTTONWIDGET.bid"  /*Identifies the class ID of the button widget*/
//Canvas
 #include "AEECanvas.h"
 #include "AEECLSID_CANVAS.bid"   /*Class ID for an instance of an ICanvas object*/
//Card Container
 #include "AEECardContainer.h"
 #include "AEECLSID_CARDCONTAINER.bid"  /*Identifies the class ID of the card container*/
//Caret Widget
 #include "AEECaretWidget.h"
 #include "AEECLSID_CARETWIDGET.bid"  /*Identifies the class ID of the caret widget*/
//Check Widget
 #include "AEECheckWidget.h"
 #include "AEECLSID_CHECKWIDGET.bid"  /*Identifies the class ID of the checkbox widget*/
 #include "AEECLSID_RADIOWIDGET.bid"  /*Identifies the class ID of the radio button widget*/
//Constraint Container
 #include "AEEConstraintContainer.h"
 #include "AEECLSID_CONSTRAINTCONTAINER.bid" /*Identifies the class ID of the constraint container*/
//Cursor Widget
 #include "AEECursorWidget.h"
 #include "AEECLSID_CURSORWIDGET.bid"  /*Identifies the class ID of the cursor widget*/
//DateTime Widget
 #include "AEEDateTimeWidget.h"
 #include "AEECLSID_JULIANDATEWIDGET.bid" /* Identifies the class ID of the julian date widget*/
 #include "AEECLSID_JULIANTIMEWIDGET.bid" /* Identifies the class ID of the julian time widget*/
 #include "AEECLSID_DATEWIDGET.bid"  /* Identifies the class ID of the date widget (DEPRECATED)*/
 #include "AEECLSID_TIMEWIDGET.bid"  /* Identifies the class ID of the time widget (DEPRECATED)*/
//Display Canvas
 #include "AEEDisplayCanvas.h"
 #include "AEECLSID_DISPLAYCANVAS.bid"  /*Class ID for an instance of an ICanvas object*/
//DrawDecorator Widget
 #include "AEEDrawDecoratorWidget.h"
 #include "AEECLSID_DRAWDECORATORWIDGET.bid" /*Identifies the class ID of the draw decorator widget*/
//FontMap Model
 #include "AEEFontMapModel.h"
 #include "AEECLSID_FONTMAPMODEL.bid"  /*Identifies the class ID of the font map model*/
//Grid Container
 #include "AEEGridContainer.h"
 #include "AEECLSID_GRIDCONTAINER.bid"  /*Identifies the class ID of the grid container*/
//ImageStatic Widget
 #include "AEEImageStaticWidget.h"
 #include "AEECLSID_IMAGESTATICWIDGET.bid" /*Identifies the class ID of the image static widget*/
//Image Widget
 #include "AEEImageWidget.h"

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值