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