Welcome![Sign In][Sign Up]
Location:
Search - brew phone

Search list

[Other resourcefootballstar001

Description: 这是一款BREW手机游戏,游戏中描述是的一个少年的踢足球成长过程,从10开始学习足球到22开始到俱乐部踢球,直到最后成长为一名足球球星-This is a BREW phone, games are described in a juvenile soccer growing up, start learning from 10 to 22 football clubs to start playing until the final growth for a football star
Platform: | Size: 1562684 | Author: 邵永刚 | Hits:

[BREWBREW

Description: b Rew book for brew phone design
Platform: | Size: 1018015 | Author: simon | Hits:

[GUI Developbrew window manager

Description:

 

Objective
This topic describes how to create a windowed application that will share the display with other applications.
Brew® MP windowed applications need to be written differently than traditional Brew MP applications. Traditional Brew MP applications, when running in the foreground, occupy full screen space and can modify the display at any time. In the windowing framework, multiple applications share the display at the same time and are not allowed to modify the display arbitrarily. A windowed application also needs to create one or more widgets to be used to create the windows.
A windowed application needs to:
·                  Create and initialize one or more widgets to be passed to IWindowMgr_CreateWindow().
The application can implement its own IWidget, or it can make use of an existing IWidget.
·                  Handle the EVT_APP_START_WINDOW event (and create a window).
·                  Implement handlers for visibility changes, focus changes, and extent changes. The implementation of these handlers is dependent on the details of the application.
·                  Draw in two stages:
·                                  Tell the container that drawing is necessary (ICONTAINER_Invalidate()).
·                                  Draw only when told to draw by the container (IWIDGET_Draw()).
Note: A windowed application should not call any functions that modify IDisplay directly. This includes explicit IDisplay function calls or implicit updates, such as calls to IIMAGE_Draw() or ICONTROL_Redraw(). Drawing should happen only on demand, for example, when IWIDGET_Draw() is called for the widget used to create the window. Existing Widget based applications follow these guidelines and, with minor modifications, can be ported to the windowing framework.
Event handling
A windowed application must respond to these events:
EVT_APP_START_WINDOW and EVT_APP_START
A window-based application receives EVT_APP_START_WINDOW first. If the application returns TRUE for this event, the application does not receive EVT_APP_START. If an application needs to support both the environments (window based and non-window based), it should handle both events.
When the application receives EVT_APP_START_WINDOW, it should create one or more windows.
If creation of IWindowMgr0 fails while handling EVT_APP_START_WINDOW, the application should assume that the platform does not support window-based applications. In this case, the application should return FALSE and continue the application logic in the code for EVT_APP_START.
EVT_APP_SUSPEND and EVT_APP_RESUME
After an application returns TRUE for EVT_APP_START_WINDOW, it will not receive EVT_APP_SUSPEND and EVT_APP_RESUME as non-windowed Brew MP applications do. Instead, the application must check for window status events that are sent to the widget through EVT_WDG_SETPROPERTY events. For EVT_WDG_SETPROPERTY events, wParam indicates which property was set, and dwParam specifies the value of the property. When the AEEWindowMgrExt_PROPEX_STATE property has a value of AEEWindowMgrExt_STATE_VISIBLE, the window is visible.
EVT_WDG_WINDOWSTATUS
The EVT_WDG_WINDOWSTATUS event is sent to a widget to notify it about various window related status messages. AEEWindowStatus.h contains information on the meaning of various status messages.
Sample code location

ZIP filename
Location
Run app
hellowindowapp
Brew MP Library
·                       Download and extract the ZIP file.
·                       Compile the app.
·                       Run it on the Brew MP Simulator.

Example of a windowed application
In the hellowindowapp sample, HelloWindowApp_HandleEvent handles the EVT_APP_START_WINDOW event and creates soft key and pop-up windows:
   case EVT_APP_START_WINDOW:   
      DBGPRINTF("EVT_APP_START_WINDOW");
 
      // Create the softkey and popup windows
      HelloWindowApp_CreateSoftkey(pMe);
      HelloWindowApp_CreateOrActivatePopup(pMe);
 
      // Handling this event tells Brew that we are a windowing
      // application.
      return TRUE;  
HelloWindowApp_CreateSoftkey() creates the soft key widget, sets the color text of the widget, then calls HelloWindowApp_CreateWindow() to create the window.
   WidgetWindow *pWindow = &pMe->softkeyWindow;
  
   if (pWindow->piWindowWidget != NULL) return;
   pWindow->pszDbgName = "Softkey";
   pWindow->pMe = pMe;
  
   (void) ISHELL_CreateInstance(pMe->applet.m_pIShell, AEECLSID_SoftkeyWidget,
            (void **) &pWindow->piWindowWidget);
   if (pWindow->piWindowWidget == NULL) return;
 
   {
      WidgetExtent extent = {0, HWA_SOFTKEY_HEIGHT};
      IWidget_SetExtent(pWindow->piWindowWidget, &extent);
   }
  
   (void) IWidget_SetBGColor(pWindow->piWindowWidget, MAKE_RGBA(200,200,200,255));
  
   // Now set the softkeys text
   {
      IWidget *piTextWidget = NULL;
      (void) IWidget_GetSoftkey(pWindow->piWindowWidget, PROP_SOFTKEY1, &piTextWidget);
     
      if (piTextWidget != NULL) {
         (void) IWidget_SetText(piTextWidget, L"Hover", TRUE);
      }
      RELEASEIF(piTextWidget);
 
      (void) IWidget_GetSoftkey(pWindow->piWindowWidget, PROP_SOFTKEY2, &piTextWidget);
      if (piTextWidget != NULL) {
         (void) IWidget_SetText(piTextWidget, L"Close", TRUE);
      }
      RELEASEIF(piTextWidget);
   }
 
   HelloWindowApp_CreateWindow(pMe, pWindow, AEEWindowMgrExt_CLASS_Softkey);  
HelloWindowApp_CreateWindow() creates the soft key window, as follows:
   int result;
   uint32 winId;
   AEEWindowProp propList[1];
  
   // Set custom window handler
   HANDLERDESC_Init(&pWindow->hdHandler, HelloWindowApp_WindowHandler, pWindow, NULL);
   IWIDGET_SetHandler(pWindow->piWindowWidget, &pWindow->hdHandler);
        
   propList[0].id = AEEWindowMgrExtProp_CLASS;
   propList[0].pbyLen = sizeof(winClass);
   propList[0].pby = (void *) &winClass;
     
   result = IWindowMgr_CreateWindow(pMe->piWindowMgr, (IQI*) (void *) pWindow->piWindowWidget,
      propList, ARR_SIZE(propList), &winId);
 
   if (result != SUCCESS) {
      DBGPRINTF("Window creation failed for %s: %d", pWindow->pszDbgName, result);
      HelloWindowApp_DestroyWindow(pWindow);
   } else {
      DBGPRINTF("Window %s created: id=%d", pWindow->pszDbgName, winId);
   }
HelloWindowApp_CreateOrActivatePopup() creates the widget for the pop-up window, then calls HelloWindowApp_CreateWindow() to create the pop-up window.
   pWindow->piWindowWidget = HelloWindowApp_CreateAndInitImageWidget(
                                pMe,
                                "popups.main" // Image as defined in appinfo.ini
                             );
 
   if (pWindow->piWindowWidget == NULL) return;
 
   {
      WExtent extent = {HWA_POPUP_WIDTH, HWA_POPUP_HEIGHT};
      IWIDGET_SetExtent(pWindow->piWindowWidget, &extent);
   }
 
   HelloWindowApp_CreateWindow(pMe, pWindow, AEEWindowMgrExt_CLASS_Popup);
Related information
·                  See Brew MP Widgets Technology Guide: Creating a Widgets application
·                  See Brew MP API Reference

Base version:
Brew MP 1.0
Tested version:
Brew MP 1.0
Phone tested:
No

 

Platform: | Size: 439828 | Author: bluecrest | Hits:

[BREWbrewexample

Description: 《深入BREW手机游戏开发》附录光盘,很多brew例子-"in-depth BREW# 61650; Phone game development "Appendix discs, many examples brew
Platform: | Size: 1039360 | Author: 朱小星 | Hits:

[Other Gamesfootballstar001

Description: 这是一款BREW手机游戏,游戏中描述是的一个少年的踢足球成长过程,从10开始学习足球到22开始到俱乐部踢球,直到最后成长为一名足球球星-This is a BREW phone, games are described in a juvenile soccer growing up, start learning from 10 to 22 football clubs to start playing until the final growth for a football star
Platform: | Size: 2069504 | Author: 邵永刚 | Hits:

[BREWWireless Game Development in C and C PlusPlus With

Description: 一本介绍在BREW平台上的C语言程序开发的专业书籍,很难得的一本入门教程-a briefing on the BREW platform C language program developed by professional books, a difficult one entry Guide
Platform: | Size: 4007936 | Author: 刘利宾 | Hits:

[BREWRingerTest

Description: BREW标准的铃声测试工具,测试手机是否支持来电铃声设置、播放、删除等功能!-BREW standard ringtones test tools, test phone support calls Sounds, play, delete function!
Platform: | Size: 26624 | Author: | Hits:

[Communication-Mobilebrew2.0Docs

Description: 手机游戏开发相关,C Brew的学习文档-phone game development, C Brew learning Documents
Platform: | Size: 11598848 | Author: 陈雷 | Hits:

[OtherTorus_v0.15-src

Description: 一个CDMA手机BREW的3D游戏的源代码,希望能对大家有所帮助。-a CDMA mobile phone BREW 3D game's source code, we hope to help.
Platform: | Size: 1649664 | Author: wangchen | Hits:

[BREWkeymove

Description: BREW3.1响应手机键盘移动事件的程序-BREW3.1 response to the incident mobile phone keyboard procedures
Platform: | Size: 117760 | Author: 汪更生 | Hits:

[BREWBrewClock

Description: 在brew中实现秒表的功能,按键控制秒表的开始和停止,在手机上测试成功~!-brew in achieving stopwatch function keys control the stopwatch to start and stop the phone test successful ~!
Platform: | Size: 61440 | Author: | Hits:

[BREWwarrior

Description: 基于BREW 2.0 开发的冒险类手机游戏,在多款手机上通过测试,是学习BREW的好的参考。把解压后的文件夹作为BREW模拟器的运行目录即可运行。-based on the BREW 2.0 development of the struggling mobile phone games, assorted phone test BREW is a good learning reference. Put the extracted files folder as BREW Simulator directory can be run.
Platform: | Size: 1119232 | Author: 杨敬 | Hits:

[BREWCoolPicture

Description: 基于BREW 2.0 开发的手机图片下载程序,在多款手机上通过测试,是学习BREW网络编程的好的范例。把解压后的文件夹作为BREW模拟器的运行目录即可运行。 -based on the BREW 2.0 development of the mobile phone download pictures, in assorted phone test BREW is learning network programming of good examples. Put the extracted files folder as BREW Simulator directory can be run.
Platform: | Size: 318464 | Author: 杨敬 | Hits:

[BREWcow(12.29)

Description: Brew平台的手机游戏代码. 斗牛士.韩国开发的经典游戏.-Brew platform for mobile phone game code. Matador. Korea Development of the classic game.
Platform: | Size: 1739776 | Author: 真实性名 | Hits:

[BREWBREW

Description: b Rew book for brew phone design
Platform: | Size: 1017856 | Author: simon | Hits:

[Multimedia DevelopBREWMediaPlayer

Description: 这是一个基于BREW手机开发平台的媒体播放器,可以支持 MIDI, MP3, QCP and PMD 格式, 可以提供 开始、停止,返回和暂停等功能。-This is a BREW-based mobile phone development platform media player, can support MIDI, MP3, QCP and PMD formats, can provide the start, stop, return and suspension functions.
Platform: | Size: 52224 | Author: MAJUN1509 | Hits:

[BREWSourcebMoC

Description: media player for BREW - it allows you to play music using a BREW phone and also use imedia-media player for BREW- it allows you to play music using a BREW phone and also use imedia
Platform: | Size: 733184 | Author: eyalfishler | Hits:

[File Formatbrew-telephone-book

Description: BREW是在移动数据增值应用开发领域出现的新技术.阐述了BREW技术的特点和组成,介绍了手机电话薄的功能模块,分析了软件的结构及实现.然后详细阐述了在BREW平台下的手机电话薄的设计与开发过程,在VC++环境下基于BREW平台开发了手机应用程序,最后通过BREWSDK开发工具包中的Emulator在计算机上进行了手机仿真,最后通过编译器下载到手机上.实践表明,基于BREw的手机软件开发方便快捷,较好地满足了用户的个性化需求. -BREW is a value-added mobile data in the field of application and development of new technologies. BREW technology on the characteristics and composition of thin introduced the function of cellular telephone module, an analysis of the structure and implementation of software. And then described in detail in the BREW platform for mobile phones under the thin design and development process, in VC++ environment was developed based on the BREW platform for mobile applications, and finally through the development kit BREWSDK the Emulator in the computer simulation carried out on a mobile phone, and finally through compiler download to your phone. Practice shows that mobile phone-based software development BREw convenient and better meet the user' s individual requirements.
Platform: | Size: 199680 | Author: 毛义法 | Hits:

[BREWdll_flashlite

Description: This a package of flashlite to be installed on brew phone to be used for running flash application.-This is a package of flashlite to be installed on brew phone to be used for running flash application.
Platform: | Size: 379904 | Author: dedKalash | Hits:

[BREWBrew_Phone_develop

Description: Brew手机开机流程的剖析,很详细的分析了手机的开机过程-Brew phone boot process analysis, a very detailed analysis of the phone' s boot process
Platform: | Size: 60416 | Author: Tony | Hits:
« 12 3 4 »

CodeBus www.codebus.net