Hot Search : Source embeded web remote control p2p game More...
Location : Home Search - EVENT MANAGER
Search - EVENT MANAGER - List
Java程序设计入门 第3章 第一个程序分析 第4章 Java编程结构 第5章 流程控制 第6章 对象、类、包 第7章 数组、字符串 第8章 继承 第9章 多态 第10章 接口与内部类 第11章 抽象 第14章 JDBC及其应用 第15章 数据结构 第16章 封 装 第17章 图形编程初步 第18章 事件模型与事件处理 第19章 SWING组件与布局管理器 第20章 综合实例与分析 附 录 HTML与APPLET初步 -Java program design entry, Chapter 3, paragraph 1 Program Analysis Chapter 4 of the Java programming structure Process Chapter 5 Chapter 6 of control objects, classes, packages Chapter 7 array string Chapter 8 Chapter 9 succession polymorphic Chapter 10 interface and internal categories Chapter 11 Chapter 14 abstract and should JDBC with Chapter 15 data structure Packaging Chapter 16 Chapter 17 of graphical programming initial Chapter 18 event model with the first incident Chapter 19 SWING components and layout manager Chapter 20 case with the comprehensive analysis of Appendix HTML with Apple preliminary T
Date : 2008-10-13 Size : 186.48kb User : 和上

 

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

 

Date : 2009-01-08 Size : 429.52kb User : bluecrest

Java程序设计入门 第3章 第一个程序分析 第4章 Java编程结构 第5章 流程控制 第6章 对象、类、包 第7章 数组、字符串 第8章 继承 第9章 多态 第10章 接口与内部类 第11章 抽象 第14章 JDBC及其应用 第15章 数据结构 第16章 封 装 第17章 图形编程初步 第18章 事件模型与事件处理 第19章 SWING组件与布局管理器 第20章 综合实例与分析 附 录 HTML与APPLET初步 -Java program design entry, Chapter 3, paragraph 1 Program Analysis Chapter 4 of the Java programming structure Process Chapter 5 Chapter 6 of control objects, classes, packages Chapter 7 array string Chapter 8 Chapter 9 succession polymorphic Chapter 10 interface and internal categories Chapter 11 Chapter 14 abstract and should JDBC with Chapter 15 data structure Packaging Chapter 16 Chapter 17 of graphical programming initial Chapter 18 event model with the first incident Chapter 19 SWING components and layout manager Chapter 20 case with the comprehensive analysis of Appendix HTML with Apple preliminary T
Date : Size : 186kb User : 和上

根据c#的事件委托机制,实现c++事件管理器-According to c# Events commissioned mechanism c++ Event Manager
Date : Size : 9kb User : llg

DL : 0
应用DSP2812,采用事件管理器EVA定时器中断方式实现循环控制LED灯-Application of DSP2812, using Event Manager EVA realize timer interrupt cycle control LED lights
Date : Size : 1kb User : 刘玉领

DL : 0
本题目利用2407的强大功能,使用事件管理器进行对输入电平的变频调速-2407 the subject of the use of the power of Event Manager for use on the input level of the Frequency Control
Date : Size : 1kb User : 谢晓晓

DL : 0
工程资源管理器.它可以实现类似VC++中点击代码中的事件直接跳转到代码位置,有了它,你可以抛弃自带的工程管理器了,可以提高你的代码编写效率,节省编码时间。它还可以保存历史访问记录,直接定位访问次数最多的代码及窗体,允许和禁止编辑代码和窗体上的控件。应该说,从功能上,它绝对优于自带的管理器了。-Project Explorer. It can be achieved similar to VC++ in the Click event code in Jump direct to the code location, with it, you can bring to abandon the project manager, you can improve your coding efficiency, save encoding时间. It also can visit the preservation of historical records, the most visited of the direct targeting of the code and form to allow editing the code and the prohibition and control on the form. It should be said that from the function, it is absolutely better than the built-in Manager.
Date : Size : 371kb User : 143

DL : 0
JAVA开发GUI界面,事件监听方式的运用,awt图形开发运用,布局管理器等-JAVA development GUI interface, use the event listener method, awt graphics development and application, layout manager, etc.
Date : Size : 7kb User : 小强

用.Net开发Windows服务 Windows服务应用程序是一种需要长期运行的应用程序,它对于服务器环境特别适合。它没有用户界面,并且也不会产生任何可视输出。任何用户消息都会被写进Windows事件日志。计算机启动时,服务会自动开始运行。它们不要用户一定登录才运行,它们能在包括这个系统内的任何用户环境下运行。通过服务控制管理器,Windows服务是可控的,可以终止、暂停及当需要时启动。-Windows Service Windows service applications. Net development is a long-running applications, it is particularly suitable for server environments. It has no user interface, and it does not produce any visible output. Any user messages will be written into the Windows event log. When the computer starts, the service will start automatically. They do not the user must log on before running, they can run this system, any user environment. Service Control Manager, Windows services are controlled, and can be terminated, suspended, and when you need to start.
Date : Size : 163kb User : 城市猎人

* 成绩的查询和排序功能实现 * 实验目的:掌握使用基本控件和合适布局管理器进行界面设计的方法,掌握简单的事件处理方法。 * 能根据要求设计出美观界面并实现所要求功能。 * 实验内容:实现成绩的查询和排序。具体要求如下:使用JTabbedPane,建立三个选项卡“成绩输入”、 * “成绩查询”、“成绩排序” * ① 成绩输入:从界面上输入学生的学号和成绩,点击“确认”按钮进行保存。 * ② 成绩查询:输入学生的学号,点击“查询”按钮,显示该生成绩。 * ③ 成绩排序:点击“排序”按钮,将按成绩从高低显示学生的学号和成绩。 * 请选择合适的布局管理。-* Results achieved query and sorting capabilities* Purpose: To master the basic controls and appropriate layout manager interface design approach, grasp simple event handling method.* Able to design a beautiful interface according to the requirements and to achieve the required functionality.* Experiment: achieve results query and sorting. Specific requirements are as follows: Using JTabbedPane, create three tabs " achievement enter" * " query results" , " achievement sort" * ① results: input student learning and achievement from the interface, click on the " OK" button to save .* ② results query: Enter the student' s school, click on the " Search" button to display the student achievement.* ③ results Sort: Click on the " Sort" button will display the results from the low number of students learning and achievement.* Please select the appropriate layout manager.
Date : Size : 2kb User : 叶青青

Implements a synchronization event manager, the different threads of events sent to a thread to handle.
Date : Size : 5kb User : zhulong

DL : 0
通过DSP812的事件管理器,来控制PWM波的产生,通过PWM方式来控制电机的调速。-By DSP812 event manager to control PWM wave generated by PWM to control the motor speed.
Date : Size : 312kb User : HUA

DL : 0
Event manager source file
Date : Size : 2kb User : Rizwana

source code for event in onvif camera, based in onvif device manager
Date : Size : 2.38mb User : pipeward

CSerialPort是一个很好的串口通讯类,但它没有关闭串口的方法,如果对这个类的实现原理不了解,自行编写串口关闭方法可能会带来如下问题: 1、用closehandle方法关闭串口:由于调用类方法StartMonitoring后会生成一个串口通信线程,这个线程中要不停地访问串口,这种方法会带来明显的错误。 2、先用StopMonitoring方法停止串口监听,然后用closehandle关闭串口:由于StopMonitoring只是将进程挂起,这样做将使程序结束时解构函数无法将中止事件发送到线程,可能导致程序不能完全退出,主窗口关闭后仍可在进程管理器中看到进程。 3、先用SetEvent发送中止事件给线程,等待线程结束后再用closehandle关闭串口,程序如下:-CSerialPort class is a good serial interface communication, but it has no closing method of the serial port, if you don t understand the implementation principle of this class, to write a serial port closure method may lead to the following questions: 1, close a serial port with the closehandle method: as the call after class methods StartMonitoring generates a serial port communication thread, the thread to keep access to a serial port, this method can bring obvious errors. 2, use StopMonitoring method first stop serial port to monitor, then use closehandle close the serial port: because StopMonitoring just hang up the process, doing so will make the program at the end of the destructors cannot send to suspend the event to the thread, may cause the program can t quit, main window is turned off, can still be seen in the process in task manager. 3, with SetEvent first send the thread to suspend the event, after the waiting thread to use closehandle to close a serial port,
Date : Size : 1kb User : blacks

event manager for tms2812
Date : Size : 2kb User : ali
CodeBus is one of the largest source code repositories on the Internet!
Contact us :
1999-2046 CodeBus All Rights Reserved.