Welcome![Sign In][Sign Up]
Location:
Search - time window

Search list

[GUI Develop智能ABC窗口

Description: 高级顶层窗口是一种无标题栏、菜单、工具条的一种常居顶层的窗口,最常见的例子就是输入法窗口,比如智能ABC窗口。这类窗口的特点除了上边所说的,最重要的就是窗口移动。普通窗口移动是通过标题栏由系统自动实现的,对于这类窗口就无法依靠系统了,需要手工实现。实现的方法有两种: 手工处理WM_MOVE、WM_LBUTTONUP消息,并根据鼠标的移动自己实现窗口移动过程中的绘制; 在WM_MOVE消息处理函数中通过向自己发送参数wParam为HTCAPTION lParam为鼠标位置的WM_NCLBUTTONDOWN消息实现窗口移动,此时窗口移动过程的绘制由系统实现。 显然,后者较前者简单。本文采用后者。-top window is a non-title bar, menus, tools of a regular Habitat top of the window, the most common example is the input window, such as smart window ABC. This window features in addition to the upside, the most important thing is moving the window. General Mobile through the window title bar automatically by the system for such window will not be able to rely on the system, and will need to achieve manually. Implementation of two ways : manual processing WM_MOVE, WM_LBUTTONUP news, and in accordance with the movement of the mouse to achieve their mobile window in the process of drawing; In WM_MOVE message processing function to send itself through the parameters wParam HTCAPTION lParam for the mouse to position the news WM_NCLBUTTONDOWN windows Mobile to achieve at this time window moving
Platform: | Size: 15938 | Author: 张事实 | Hits:

[OS programPowerOff(自动关机)

Description: 一个定时关机软件,可以按照预定时间和窗口标题来决定是否关机-a regular shutdown software, according to the scheduled time window and heading to decide whether shutdown
Platform: | Size: 160610 | Author: 吕达 | Hits:

[Otherwigner1

Description: 设采样频率为1Hz,对于淹没在复高斯白噪声中的信噪比为 的两个复LFM信号,采用子带带宽为0.1Hz的升余弦滤波器,共9个子带滤波器构成的滤波器组,时间窗为窗长为256的矩形窗,进行仿真-based sampling frequency of 1Hz. For drowned in the complex Gaussian white noise to the signal-to-noise ratio of 2 Minute LFM, using sub-band bandwidth of 0.1 Hz or cosine filter, a total of nine sub-band filter a filter group, time window to window to 256 long rectangular window simulation
Platform: | Size: 1130 | Author: eric | Hits:

[OtherState_space_reconstruction_parameters_in_the_analy

Description: State_space_reconstruction_parameters_in_the_analysis_of_chaotic_time_series_-_the_role_of_the_time_window_length. It is used for reconstruction of state space in chaotic time series, and also how to determine time window.
Platform: | Size: 373916 | Author: 赵河 | Hits:

[Process-ThreadCreatCurrentTime

Description: 这是一个用JAVA多线程编写得显示当前系统时间的小窗口程序,包括年,月,日,时,分,秒-This is a multi-threaded with JAVA prepared in the current system revealed a small time window procedures, including the year, month, day and hour, minute and second
Platform: | Size: 1090 | Author: 徐祥 | 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:

[SourceCodeChangeTitle

Description: 随时改变窗口标题栏的内容,使标题栏的内容更适合自己的需要-change the window title at any time and make the title text according to your own demand
Platform: | Size: 71680 | Author: 王志强 | Hits:

[Multimedia Develop仿windows media player的播放程序原代码

Description: 仿windows media player的播放程序原代码。里面的有些函数。朋友门做设计的时候应该可以用的到。希望对你们有用!-imitation windows media player player of the original code. Some inside the function. Friends doors do the design time can be used to. Hope useful to you!
Platform: | Size: 289792 | Author: 杨翔 | Hits:

[GDI-Bitmap对图像进行中值滤波处理的源代码

Description: 平滑滤波 一般来说,图像的能量主要集中在其低频部分,噪声所在的频段主要在高频段,同时系统中所要提取的汽车边缘信息也主要集中在其高频部分,因此,如何去掉高频干扰又同时保持边缘信息,是我们研究的内容。为了去除噪声,有必要对图像进行平滑,可以采用低通滤波的方法去除高频干扰。图像平滑包括空域法和频域法两大类,在空域法中,图像平滑的常用方法是采用均值滤波或中值滤波,对于均值滤波,它是用一个有奇数点的滑动窗口在图像上滑动,将窗口中心点对应的图像像素点的灰度值用窗口内的各个点的灰度值的平均值代替,如果滑动窗口规定了在取均值过程中窗口各个像素点所占的权重,也就是各个像素点的系数,这时候就称为加权均值滤波;对于中值滤波,对应的像素点的灰度值用窗口内的中间值代替。实现均值或中值滤波时,为了简便编程工作,可以定义一个n*n的模板数组。另外,读者需要注意一点,在用窗口扫描图像过程中,对于图像的四个边缘的像素点,可以不处理;也可以用灰度值为"0"的像素点扩展图像的边缘。下面给出了采用加权均值滤波的图像平滑函数代码和效果图:-smoothing filter general, the image of energy is mainly focused on the low-frequency part of the noise lies mainly in the high-frequency band, which system to extract the vehicle Edge Information has been concentrated in some of its high frequency, therefore, how to remove high-frequency interference at the same time, maintain the edge information, we Institute enforcement of the content. In order to remove noise, it is necessary for smooth images can be used to the low-pass filter to remove high-frequency interference. Image Smoothing including airspace and frequency domain method two categories, in the airspace law, the common image smoothing method is used Mean Median filter or filter for filtering mean, it is an odd point in the sliding window on the sliding images of the corresponding
Platform: | Size: 44032 | Author: | Hits:

[Process-ThreadCreatCurrentTime

Description: 这是一个用JAVA多线程编写得显示当前系统时间的小窗口程序,包括年,月,日,时,分,秒-This is a multi-threaded with JAVA prepared in the current system revealed a small time window procedures, including the year, month, day and hour, minute and second
Platform: | Size: 1024 | Author: 徐祥 | Hits:

[Consoletail

Description: window平台下实现tail 类似unix下的tail功能,实时跟踪显示文本文件的改变,常用于显示日志文件。-window platform to achieve similar unix tail under the tail function, real-time tracking shows the change text files, which are often used to show the log file.
Platform: | Size: 34816 | Author: 阙劲峰 | Hits:

[Otherwigner1

Description: 设采样频率为1Hz,对于淹没在复高斯白噪声中的信噪比为 的两个复LFM信号,采用子带带宽为0.1Hz的升余弦滤波器,共9个子带滤波器构成的滤波器组,时间窗为窗长为256的矩形窗,进行仿真-based sampling frequency of 1Hz. For drowned in the complex Gaussian white noise to the signal-to-noise ratio of 2 Minute LFM, using sub-band bandwidth of 0.1 Hz or cosine filter, a total of nine sub-band filter a filter group, time window to window to 256 long rectangular window simulation
Platform: | Size: 1024 | Author: eric | Hits:

[Communication-Mobiletimewindow_xcorr

Description: Calculates a time-window based cross-correlation for two real input vectors.-Calculates a time-window based cross-correlation for two real input vectors.
Platform: | Size: 3072 | Author: KRUDZ | Hits:

[Othertime

Description: 简单时间程序,可以定时执行任务,显示当前时间到前台窗口-Easy time for the procedure, you can regularly carry out its mandate to show the current time window to the Front Desk
Platform: | Size: 180224 | Author: alp | Hits:

[matlabattachments

Description: calculates waiting time for vehicle routing problem with time window.
Platform: | Size: 4096 | Author: garima | Hits:

[Windows DevelopVPRTW-SA

Description: 运用模拟退火算法求解带时间窗约束的车辆路径问题-The use of simulated annealing algorithm with time window constrained vehicle routing problem
Platform: | Size: 2407424 | Author: before | Hits:

[JSP/Javatime

Description: 即時另一視窗 即時另一視窗 即時另一視窗 -Another real-time windowAnother real-time windowAnother real-time windowAnother real-time windowAnother real-time window
Platform: | Size: 1024 | Author: nelson | Hits:

[Windows DevelopVRP-of--with-time-window

Description: 带有时间窗的多配送中心车辆调用问题研究,主要描述了多分布式和时间窗-research on vehicle scheduling problem of multi-distribution centers with time window
Platform: | Size: 778240 | Author: dm | Hits:

[matlabevaluate-fitnes-for-VRP

Description: Vehicle Routing Problem with Time Window, generate the cromosom and evaluate fitnes value-Vehicle Routing Problem with Time Window, generate the cromosom and evaluate fitnes value...
Platform: | Size: 1024 | Author: Apraz | Hits:

[Program docChaotic-time-series-analysis

Description: 混沌时间序列Matlab源程序,包含时间序列的时间延迟计算,关联积分计算,相空间重构,时间序列分解,Heaviside函数的计算,延迟时间和时间窗口计算,混沌吸引子关联维计算,重构相空间进行K_L变换,混沌吸引子关联维计算,Hurst指数分析,关联维和Kolmogorov熵计算,FFT计算序列平均周期,最大lyapunov指数计算,利用互信息法求时间延迟,混沌和噪声识别的源程序。-Matlab chaotic time series source, time includes the time series of delay calculation, correlation integral calculation, phase space reconstruction, time series decomposition, calculated Heaviside function, the delay time and the time window calculated correlation dimension of chaotic attractors calculated reconstruction phase space K_L transform computing correlation dimension of chaotic attractors, Hurst exponent analysis, correlation dimension and Kolmogorov entropy calculation, FFT calculation sequence averaging period, maximum lyapunov index, mutual information method the time delay, chaos and noise source identification.
Platform: | Size: 26624 | Author: 马喆 | Hits:
« 12 3 4 5 6 7 8 9 10 ... 50 »

CodeBus www.codebus.net