Salome HOME
Join modifications from branch BR_DEBUG_3_2_0b1
[modules/smesh.git] / doc / salome / gui / SMESH / whfform.htm
1 <html>\r
2 <head>\r
3 <title>Search Form</title>\r
4 \r
5 <meta name="generator" content="RoboHelp by eHelp Corporation   www.ehelp.com">\r
6 <meta name="description" content="WebHelp 5.50">\r
7 </head>\r
8 <style>\r
9 <!--\r
10 body {margin:0;}\r
11 -->\r
12 </style>\r
13 <body bgcolor="#c0c0c0">\r
14 <script language="javascript" src="whver.js"></script>\r
15 <script language="javascript1.2" src="whmsg.js"></script>\r
16 <script language="javascript1.2" src="whproxy.js"></script>\r
17 <script language="javascript1.2" src="whutils.js"></script>\r
18 <script language="javascript1.2" src="whform.js"></script>\r
19 <script language="javascript1.2">\r
20 <!--\r
21 var gstrInput = "";\r
22 function ftsLookup(bCR)\r
23 {\r
24         if (bCR)\r
25         {\r
26                 var strInput = document.FtsInputForm.keywordField.value.toUpperCase();\r
27                 if (strInput != "") {\r
28                         var oMsg = new whMessage(WH_MSG_SEARCHFTSKEY, this, 1, strInput);\r
29                         if (!SendMessage(oMsg))\r
30                         {\r
31                                 gstrInput = strInput;\r
32                         }\r
33                         else\r
34                                 gstrInput = "";\r
35                 }\r
36 \r
37                 if (gbMac) {\r
38                         document.FtsInputForm.keywordField.focus();\r
39                 }\r
40         }\r
41         return;\r
42 }\r
43 \r
44 function beforeInit()\r
45 {\r
46         var oParam = new Object();\r
47         oParam.sValue = "";\r
48         var oMsg = new whMessage(WH_MSG_GETSEARCHS, this, 1, oParam);\r
49         if (SendMessage(oMsg))\r
50         {\r
51                 if (oParam.sValue != "" && oParam.sValue != "- Search -")\r
52                 {\r
53                         document.FtsInputForm.keywordField.value = oParam.sValue;\r
54                         gfunLookUp(true);\r
55                 }\r
56         }\r
57         init(); \r
58 }\r
59 \r
60 function window_unload()\r
61 {\r
62         UnRegisterListener2(this, WH_MSG_SHOWTOC);\r
63         UnRegisterListener2(this, WH_MSG_SHOWIDX);\r
64         UnRegisterListener2(this, WH_MSG_SHOWFTS);\r
65         UnRegisterListener2(this, WH_MSG_SHOWGLO);\r
66         UnRegisterListener2(this, WH_MSG_SEARCHTHIS);\r
67         UnRegisterListener2(this, WH_MSG_BACKUPSEARCH);\r
68 }\r
69 \r
70 function onSendMessage(oMsg)\r
71 {\r
72         if (oMsg.nMessageId == WH_MSG_SHOWFTS)\r
73         {\r
74                 document.FtsInputForm.keywordField.focus();\r
75         }\r
76         else if (oMsg.nMessageId == WH_MSG_SHOWIDX ||\r
77                 oMsg.nMessageId == WH_MSG_SHOWTOC || \r
78                 oMsg.nMessageId == WH_MSG_SHOWGLO)\r
79         {\r
80                 document.FtsInputForm.keywordField.blur();\r
81         }\r
82         else if (oMsg.nMessageId == WH_MSG_SEARCHTHIS)\r
83         {\r
84                 if (oMsg.oParam != "- Search -")\r
85                 {\r
86                         document.FtsInputForm.keywordField.value = oMsg.oParam;\r
87                         gfunLookUp(true);\r
88                 }\r
89         }\r
90         else if (oMsg.nMessageId == WH_MSG_BACKUPSEARCH)\r
91         {\r
92                 if (gstrInput)\r
93                 {\r
94                         oMsg.oParam = gstrInput;\r
95                         gstrInput = "";\r
96                         return false;\r
97                 }\r
98         }\r
99         return true;\r
100 }\r
101 \r
102 if (window.gbWhForm)\r
103 {\r
104         RegisterListener2(this, WH_MSG_SHOWTOC);\r
105         RegisterListener2(this, WH_MSG_SHOWIDX);\r
106         RegisterListener2(this, WH_MSG_SHOWFTS);\r
107         RegisterListener2(this, WH_MSG_SHOWGLO);\r
108         RegisterListener2(this, WH_MSG_SEARCHTHIS);\r
109         RegisterListener2(this, WH_MSG_BACKUPSEARCH);\r
110         gfunLookUp = ftsLookup;\r
111         gfunInit = null;\r
112         gstrFormName = "FtsInputForm"\r
113         gsTitle = "Type in the word(s) to search for:";\r
114         gsTitle = "Type in the word(s) to search for:";\r
115         setGoImage1("");\r
116         \r
117         \r
118         \r
119         \r
120         \r
121         \r
122         setGoText("Go");\r
123         setFont("Title", "Arial","9pt","#000000","normal","normal","none");\r
124         \r
125         \r
126         document.write(getFormHTML());\r
127         writeFormStyle();\r
128         window.onload = beforeInit;\r
129         window.onunload=window_unload;\r
130 }\r
131 else\r
132         document.location.reload();\r
133 //-->\r
134 </script>\r
135 </body>\r
136 </html>