We ll use your suggestion to improve translation quality in future updates to our system. Platform: | Size: 909 | Author: 金立犇 | Hits: [assembly language] 汇编Description:
题目二:学生名次计算程序设计
基本功能:设学生姓名及成绩已分别存入指定数据存储单元,计算所有学生在全班的排名,并按顺序显示全班成绩及名次。要求界面友好。
增强功能:学生姓名及成绩根据屏幕提示由键盘录入再存入数据存储单元。 Platform: | Size: 1485 | Author: klaoky | Hits: [Program doc] GB2312编码汉字显示编程.docDescription:其实汉字的显示是非常简单的。只要了解汉字的定位以及字模的含义,我们就可以非常方便的定位到汉字,并读取出字库数据,将其显示出来。在中英文混合显示的 时候,因为GB2312编码的区码与位码都是大于A0的。而基本的ASCII码都是小于A0的。我们可以根据这个信息来区分ASCII码和汉字。 Platform: | Size: 31232 | Author: jackielau | Hits: [Program doc] DOS下的点阵汉字显示.docDescription:你是否碰到过用启动盘启动系统后用DIR命令得到一串串莫名其妙的字符?有经验的朋友会告诉你:那是汉字。汉字?你不禁会问:怎么一个我一个也不认识。但那确确实实是汉字,如果你启动UCDOS或其他的汉字系统后,就会看到那是一个个熟悉的汉字。同样是汉字,为什么前后会看到不同的结果?呵呵,其实在电脑硬件中,根本没有汉字这个概念,也没有英文的概念,这铁玩意认识的概念只有——内码。 Platform: | Size: 33792 | Author: jackielau | Hits: [GUI Develop] brew window managerDescription:
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
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
Platform: | Size: 439828 | Author: bluecrest | Hits: [JSP/Java] 三维 Tag CloudDescription: $(document).ready(function(){ //计算样式中心值 a横向中心点,b纵向log中心点 //cloud-carousel.1.0.5.js 文件中去掉了IE的倒影滤镜。FF支持得更好。 var e = 150; var a = $("#da-vinci-carousel").width() / 2; var c = $("#da-vinci-carousel").height() / 2; var b = Math.log(c) * (e / 10); $('#but1').css({top:(c / 2) - ($('#but1').height() / 2),left:70,zIndex:9999}); $('#but2').css({top:(c / 2) - ($('#but2').height() / 2),right:70,zIndex:9999}); $("#da-vinci-carousel").CloudCarousel( { minScale:0.25,//视线轴距 越大远处视觉越近 reflHeight: 40, //倒影透明度 reflGap:-2, //倒影距离 //titleBox: $('#da-vinci-title'), //altBox: $('#da-vinci-alt'), buttonLeft: $('#but1'), buttonRight: $('#but2'), yRadius:e, //Y轴距 调整轴距需要给DIV增加高度 xPos: a, //距离左侧边距 yPos: b, //距离顶部边距 speed:0.09, //滚动速度 mouseWheel:true //是否支持鼠标滚轴 }); $("#da-vinci-carousel img").css("border",0); //消除当前效果DIV中的img边框 });Platform: | Size: 380630 | Author: qp3db@163.com | Hits: [OA] OA协同Description: <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml"> <head id="ctl00_Head1"><title> 协同办公系统 </title><link rel="Stylesheet" type="text/css" href="CSS/master.css" /> <link rel="Stylesheet" type="text/css" href="CSS/sitecooperateCss.css" /> <style type="text/css"> .Task_Default_Grid { border:0} .Task_Default_Grid tr td { height:25px; line-height:25px; color:#0173BC; border:0; color:#6E6F71} .Task_Default_Grid tr td a { color:#0073BC} .Task_Default_Title { height:25px; line-height:25px; border-bottom:1px solid #999; color:#333333; font-weight:bold } .Task_Default_Head { height:25px; line-height:25px; text-align:left; font-weight:lighter; } .Task_Default_Head th { text-align:left; border:0;} #Content_right tr td { vertical-align:top} .mobanul { list-style:none; list-style-type:none; margin:0; padding:0} .mobanul li { height:26px; line-height:26px;} .mobanul li a { color:#0073BC} </style> <script type="text/javascript"> var w1 = screen.width; var w2 = w1 - 30; var h1 = screen.height; var h2 = 650; var t1 = (h1 - h2) / 3; //var appearence = 'dependent:yes;menubar:no;resizable:no;status:no;toolbar:no;titlebar:no;left:5;top:50;dialogWidth:'+w2+'px; dialogHeight:602px'; var appearence = 'dependent:yes;menubar:no;resizable:no;status:no;toolbar:no;titlebar:no;dialogWidth:990px; dialogHeight:652px'; function openexamin(id) { var url = 'Task_Examin1.aspx?ID=' + id + '&dt=20111116110724'; window.showModalDialog(url, 'none', appearence); window.location.reload(); } function opengoexamin(id) { var url ='go_examin.aspx?ID=' + id + '&dt=20111116110724'; window.showModalDialog(url, "tasknew", appearence); window.location.reload(); } function openexaminview(id) { var url = 'Go_Examin1.aspx?ID=' + id; window.showModalDialog(url, "goexamin1", appearence); window.location.reload(); } function openexamindaiban(id) { var url = 'Task_Examin1.aspx?daiban=1&ID=' + id + '&dt=20111116110724'; window.showModalDialog(url, 'none', appearence); window.location.reload(); } function openexamindaiban1(id, tasktype,url) { if (tasktype == 'OA') { var url1 = 'Task_Examin1.aspx?daiban=1&ID=' + id + '&dt=20111116110724'; window.showModalDialog(url1, 'none', appearence); window.location.reload(); } else if (tasktype == 'HR') { window.open(url.replace('{', '=').replace('{', '=').replace('{', '=').replace('{', '=').replace('{', '=').replace('{', '=').replace('{', '=')); } else if (tasktype == 'ERP待办') { window.open("http://10.0.3.100:8000/"+url); } else { window.open(url.replace('{', '=').replace('{', '=').replace('{', '=').replace('{', '=').replace('{', '=').replace('{', '=').replace('{', '=').replace('}', '&').replace('}', '&').replace('|', '&').replace('|', '&').replace('|}', '&').replace('|', '&').replace('|', '&').replace('|', '&').replace('*', '/').replace('*', '/').replace('*', '/').replace('*', '/').replace('*', '/')); // window.open(url.replace(new RegExp('|', 'g'), '=')); } } function GetTasksWait() { document.getElementById('ajaxwait').innerHTML = "<img src='/_layouts/images/loading.gif' align=absmiddle style='margin:20px' /><span style='color:#666'>正在加载待办事项,请稍等</span>"; AjaxService.GetWaitTasks("panr", GetGetWaitTasks); } function GetGetWaitTasks(res) { document.getElementById('ajaxwait').innerHTML = res; //window.alert(res); } function TaskNew(templetid) { var url = "task_new1.aspx?templetid="+templetid; var w1 = screen.width; var w2 = w1 - 30; var h1 = screen.height; var h2 = 650; var t1 = (h1 - h2) / 3; var appearence = 'dependent=yes,menubar=no,resizable=no,status=no,toolbar=no,titlebar=no,left=5,top=50,width=965px,height=620px'; var openWindow = window.open(url, "tasknew", appearence); openWindow.focus(); } </script> </head> <body> <form name="aspnetForm" method="post" action="thinkanydefault.aspx" id="aspnetForm"> <div> <input type="hidden" name="__EVENTTARGET" id="__EVENTTARGET" value="" /> <input type="hidden" name="__EVENTARGUMENT" id="__EVENTARGUMENT" value="" /> <input type="hidden" name="__VIEWSTATE" id="__VIEWSTATE" value="/wEPDwUJMTk4NTM3MDU4D2QWAmYPZBYCAgMPZBYCAgEPZBYCAgEPPCsADQEADxYEHgtfIURhdGFCb3VuZGceC18hSXRlbUNvdW50ZmRkGAEFI2N0bDAwJENvbnRlbnRQbGFjZUhvbGRlcjEkZ3JpZFRyYWRlDzwrAAoBCGZkgVPWq+n+ib9NI98bYSPgOP6wYjA=" /> </div> <script type="text/javascript"> //<![CDATA[ var theForm = document.forms['aspnetForm']; if (!theForm) { theForm = document.aspnetForm; } function __doPostBack(eventTarget, eventArgument) { if (!theForm.onsubmit || (theForm.onsubmit() != false)) { theForm.__EVENTTARGET.value = eventTarget; theForm.__EVENTARGUMENT.value = eventArgument; theForm.submit(); } } //]]> </script> <script src="/WebResource.axd?d=YUjlm6ycKfnreIke4GK3XQ2&t=633802920069218315" type="text/javascript"></script> <script src="/ScriptResource.axd?d=z3KJcVLT9ijw1U1WP3pQFkrXumDsg6wUOC-1ek6Qo_XZeAuKvPuCDOgdKKFxxdmnnoXJFiMaKmNKva15-BdwOk_xeIPnLbrAuAMPt7xuJyY1&t=ffffffffec2d9970" type="text/javascript"></script> <script src="/ScriptResource.axd?d=z3KJcVLT9ijw1U1WP3pQFkrXumDsg6wUOC-1ek6Qo_XZeAuKvPuCDOgdKKFxxdmnNTUAczOieuXP3zVeTLUjHd_cyvM_8TdB3KcMk-B-U6vUhv5N_CQBxFd9ZErk2oN20&t=ffffffffec2d9970" type="text/javascript"></script> <script src="AjaxService.asmx/js" type="text/javascript"></script> <div id="Content_right" style="background-image:none; padding:5px; padding-left:0px; padding-right:0px"> <script type="text/javascript"> //<![CDATA[ Sys.WebForms.PageRequestManager._initialize('ctl00$ContentPlaceHolder1$ScriptManagerAjax', document.getElementById('aspnetForm')); Sys.WebForms.PageRequestManager.getInstance()._updateControls([], [], [], 90); //]]> </script> <table style="width:100%"> <tr> <td style="padding-left:10px;"> <span style="float:left"> 待办事项</span><br /><hr style="height:0px; color:#fff; border-top:1px solid #EBEBEB;" /></td> <td style="padding-left:10px;"> <span style="float:left"> 跟踪事项</span><br /><hr style="height:0px; color:#fff; border-top:1px solid #EBEBEB;" /></td> </tr> <tr> <td style=" padding-top:0; width:49%; padding-left: 10px; padding-right: 10px; padding-bottom: 10px;" rowspan="4" id="ajaxwait"> </td> <td style=" padding:10px; padding-top:0;height:145px;"> <div> </div> </td> </tr> <tr> <td style=" padding:10px; padding-top:0; text-align:right"> <a href="OATaskTrades.aspx" style='color:#0171BD'>[更多...]</a></td> </tr> <tr> <td style="padding-left:10px;"> 我的模板<br /><hr style="height:0px; color:#fff; border-top:1px solid #EBEBEB;" /></td> </tr> <tr> <td style=" padding:10px; padding-top:0;"> <table cellpadding=0 cellspacing=0 style="width:100%;height:145px;"><tr><td style="width:50%"> <ul class="mobanul"></ul> </td><td> <ul class="mobanul"></ul> </td></tr></table> </td> </tr> <tr> <td style=" padding:10px; padding-top:0; width:49%; text-align:right"> <a href="Task_Wait.aspx" style='color:#0171BD'>[更多OA待办...]</a></td> <td style=" padding:10px; padding-top:0; text-align:right"> <a href='PersonalTempletsSetup.aspx' style='color:#0171BD'>[更多...]</a><a href='PersonalTempletsSetup.aspx' style='color:#0171BD'>[模板配置]</a></td> </tr> </table> <script type="text/javascript"> GetTasksWait(); </script> </div> <script type="text/javascript"> //<![CDATA[ Sys.Application.initialize(); //]]> </script> </form> </body> </html>Platform: | Size: 8895 | Author: niyang2005@126.comni | Hits: [SCSI-ASPI] ClearaDescription: <%@ LANGUAGE="VBSCRIPT" %> <!--#include file="util.asp" --> <% Head="您放入购物车的物品已经全数退回!" Session("ProductList") = "" %> <html> <head> <meta http-equiv="Content-Type" content="text/html charset=gb2312"> <STYLE type=text/css>.main { FONT-SIZE: 9pt } .main1 { FONT-SIZE: 14px } </STYLE> <title>清空购物车</title> </head> <body topmargin="5" bgcolor="#E6E4C4"> <diiv align="center"><center> <table width="100%" border="0" class="table1" bordercolor="#62ACFF" cellspacing="0" class=main1> <tr> <td width="80%" valign="top"> <p align="center" class=main1><%=Head%></p> <p align="center"> <br><input type="button" value="关闭" name="B2" onclick="window.close() " style="font-size: 9pt"></td> </tr> </table> </center></div> </body> </html> -">
|