[89] | 1 | |
---|
| 2 | <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" |
---|
| 3 | "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> |
---|
| 4 | |
---|
| 5 | <!-- Generated by IDLdoc 2.0 --> |
---|
| 6 | |
---|
| 7 | <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en"> |
---|
| 8 | <head> |
---|
| 9 | <title>cw_droplist_pm.pro (IDLdoc API documentation)</title> |
---|
| 10 | |
---|
| 11 | |
---|
| 12 | <link rel="stylesheet" type="text/css" media="all" href="./../../../main_files.css" /> |
---|
| 13 | <link rel="stylesheet" type="text/css" media="print" href="./../../../main_files_print.css" /> |
---|
| 14 | |
---|
| 15 | |
---|
| 16 | <script type="text/javascript"> |
---|
| 17 | function setTitle() { |
---|
| 18 | parent.document.title="cw_droplist_pm.pro (IDLdoc API documentation)"; |
---|
| 19 | } |
---|
| 20 | </script> |
---|
| 21 | </head> |
---|
| 22 | |
---|
| 23 | <body onload="setTitle();"> |
---|
| 24 | |
---|
| 25 | <div id="navbar_title"> |
---|
| 26 | <h1>IDLdoc API documentation</h1> |
---|
| 27 | </div> |
---|
| 28 | |
---|
| 29 | |
---|
| 30 | <div id="main_navbar"> |
---|
| 31 | |
---|
| 32 | <table cellspacing="0"> |
---|
| 33 | <tr> |
---|
| 34 | |
---|
| 35 | <td><a href="./../../../overview.html?format=raw" title="Overview of library">Overview</a></td> |
---|
| 36 | |
---|
| 37 | |
---|
| 38 | |
---|
| 39 | <td >Directory</td> |
---|
| 40 | |
---|
| 41 | |
---|
| 42 | |
---|
| 43 | <td><a href="./../../../idldoc-categories.html?format=raw" title="Browse library by category">Categories</a></td> |
---|
| 44 | |
---|
| 45 | |
---|
| 46 | |
---|
| 47 | <td><a href="./../../../idldoc-index.html?format=raw" title="Index of files, routines, and parameters">Index</a></td> |
---|
| 48 | |
---|
| 49 | |
---|
| 50 | |
---|
| 51 | <td><a href="./../../../search-page.html?format=raw" title="Search library">Search</a></td> |
---|
| 52 | |
---|
| 53 | |
---|
| 54 | <td id="selected">File</td> |
---|
| 55 | |
---|
| 56 | |
---|
| 57 | <td >Source</td> |
---|
| 58 | |
---|
| 59 | |
---|
| 60 | |
---|
| 61 | <td><a href="./../../../idldoc-help.html?format=raw" title="Help on IDLdoc">Help</a></td> |
---|
| 62 | |
---|
| 63 | |
---|
| 64 | <td >Etc</td> |
---|
| 65 | |
---|
| 66 | <td id="flexible">Developer documentation</td> |
---|
| 67 | </tr> |
---|
| 68 | </table> |
---|
| 69 | |
---|
| 70 | </div> |
---|
| 71 | |
---|
| 72 | <div id="secondary_navbar"> |
---|
| 73 | |
---|
| 74 | <a href="cw_domain.html"><<prev file</a> | <a href="cw_pagelayout.html">next file >></a> <a href="cw_droplist_pm.html" target="_TOP">view single page</a> | <a href="./../../../index.html?format=raw" target="_TOP">view frames</a> summary: fields | <a href="#routine_summary">routine</a> details: <a href="#routine_details">routine</a> |
---|
| 75 | |
---|
| 76 | </div> |
---|
| 77 | |
---|
| 78 | |
---|
| 79 | <div id="container"> |
---|
| 80 | |
---|
| 81 | <h1 class="directory"><a href="directory-overview.html?format=raw">ToBeReviewed/WIDGET/COMPOUND_WIDGET/</a></h1> |
---|
| 82 | <h2 class="pro_file">cw_droplist_pm.pro</h2> |
---|
| 83 | |
---|
| 84 | <div id="file_attr"> |
---|
| 85 | <dl> |
---|
| 86 | </dl> |
---|
| 87 | </div> |
---|
| 88 | |
---|
| 89 | <div id="file_comments"></div> |
---|
| 90 | |
---|
| 91 | |
---|
| 92 | |
---|
| 93 | |
---|
| 94 | |
---|
| 95 | |
---|
| 96 | |
---|
| 97 | |
---|
| 98 | <div id="routine_summary"> |
---|
| 99 | <h2>Routine summary</h2> |
---|
| 100 | |
---|
| 101 | <dl> |
---|
| 102 | |
---|
| 103 | <dt><p><a href="#_cw_droplist_pm_set_value">cw_droplist_pm_set_value<span class="result">, id, value</span></a></p><dt> |
---|
| 104 | <dd> NAME: cw_droplist_pm PURPOSE: widget equivalent a WIDGET_DROPLIST sauf qu'en plus on dispose de 2 bouttons + et - pour deplacer le widget de +/- 1.</dd> |
---|
| 105 | |
---|
| 106 | <dt><p><a href="#_cw_droplist_pm_get_value"><span class="result">result = </span>cw_droplist_pm_get_value(<span class="result">id</span>)</a></p><dt> |
---|
| 107 | <dd></dd> |
---|
| 108 | |
---|
| 109 | <dt><p><a href="#_cw_droplist_pm_event"><span class="result">result = </span>cw_droplist_pm_event(<span class="result">event</span>)</a></p><dt> |
---|
| 110 | <dd></dd> |
---|
| 111 | |
---|
| 112 | <dt><p><a href="#_cw_droplist_pm"><span class="result">result = </span>cw_droplist_pm(<span class="result">parent</span>, UVALUE=<span class="result">UVALUE</span>, UNAME=<span class="result">UNAME</span>, ROW=<span class="result">ROW</span>, COLUMN=<span class="result">COLUMN</span>, _extra=<span class="result">_extra</span>)</a></p><dt> |
---|
| 113 | <dd></dd> |
---|
| 114 | |
---|
| 115 | </dl> |
---|
| 116 | </div> |
---|
| 117 | |
---|
| 118 | |
---|
| 119 | <div id="routine_details"> |
---|
| 120 | |
---|
| 121 | |
---|
| 122 | <div class="routine_details" id="_cw_droplist_pm_set_value"> |
---|
| 123 | |
---|
| 124 | <h2><a class="top" href="#container">top</a>cw_droplist_pm_set_value </h2> |
---|
| 125 | |
---|
| 126 | <p class="header"> |
---|
| 127 | cw_droplist_pm_set_value<span class="result">, <a href="#_cw_droplist_pm_set_value_param_id">id</a>, <a href="#_cw_droplist_pm_set_value_param_value">value</a></span></p> |
---|
| 128 | |
---|
| 129 | <div class="comments"> |
---|
| 130 | NAME: cw_droplist_pm |
---|
| 131 | |
---|
| 132 | PURPOSE: widget equivalent a WIDGET_DROPLIST sauf qu'en plus on |
---|
| 133 | dispose de 2 bouttons + et - pour deplacer le widget de +/- 1. |
---|
| 134 | |
---|
| 135 | CATEGORY: compound widget (aide a l''ecriture des widgets) |
---|
| 136 | |
---|
| 137 | CALLING SEQUENCE: id=cw_droplist_pm(parent) |
---|
| 138 | |
---|
| 139 | INPUTS: |
---|
| 140 | Parent: The widget ID of the parent widget. |
---|
| 141 | |
---|
| 142 | KEYWORD PARAMETERS:tous ceux de WIDGET_DROPLIST |
---|
| 143 | |
---|
| 144 | OUTPUTS: |
---|
| 145 | The returned value of this function is the widget ID of the |
---|
| 146 | newly-created animation widget. |
---|
| 147 | |
---|
| 148 | COMMON BLOCKS: none |
---|
| 149 | |
---|
| 150 | SIDE EFFECTS: |
---|
| 151 | |
---|
| 152 | Widget Events Returned by Droplist Widgets |
---|
| 153 | |
---|
| 154 | Pressing the mouse button while the mouse cursor is over an |
---|
| 155 | element of a droplist widget causes the widget to change the label |
---|
| 156 | on the droplist button and to generate an event. The appearance of |
---|
| 157 | any previously selected element is restored to normal at the same |
---|
| 158 | time. The event structure returned by the WIDGET_EVENT function is |
---|
| 159 | defined by the following statement: |
---|
| 160 | |
---|
| 161 | { CW_DROPLIST_PM, ID:0L, TOP:0L, HANDLER:0L, INDEX:0L, OUT:0 } |
---|
| 162 | |
---|
| 163 | The first three fields are the standard fields found in every |
---|
| 164 | widget event. |
---|
| 165 | INDEX returns the index of the selected item. This can be used to |
---|
| 166 | index the array of names originally used to set the widget''s |
---|
| 167 | value |
---|
| 168 | OUT:c''est un entier qui peut prendre 3 valeurs: |
---|
| 169 | 1 : si on appuie sur + alors que l''index est deja aux max. rq: |
---|
| 170 | ds ce cas l''index reste au max |
---|
| 171 | -1: si on appuie sur - alors que l''index est deja aux min. rq: |
---|
| 172 | ds ce cas l''index reste au min |
---|
| 173 | 0 : ds les autres cas! |
---|
| 174 | |
---|
| 175 | Keywords to WIDGET_CONTROL |
---|
| 176 | |
---|
| 177 | A number of keywords to the WIDGET_CONTROL procedure affect the |
---|
| 178 | behavior of cw_slider_pm widget: GET_VALUE and SET_VALUE. |
---|
| 179 | 1) GET_VALUE |
---|
| 180 | widget_control,wid_id,get_value=resultat |
---|
| 181 | retourne ds la variable resultat une structure de 3 elements dont |
---|
| 182 | les noms sont inspires des mots cles que l''on peut passer a |
---|
| 183 | widget_control qd on utilise WIDGET_DROPLIST: |
---|
| 184 | DROPLIST_NUMBER: the number of elements currently |
---|
| 185 | contained in the specified droplist widget. |
---|
| 186 | DROPLIST_SELECT: the zero-based number of the |
---|
| 187 | currently-selected element (i.e., the currently-displayed |
---|
| 188 | element) in the specified droplist widget. |
---|
| 189 | DYNAMIC_RESIZE: a True value (1) if the widget specified |
---|
| 190 | by Widget_ID is a button, droplist, or label widget that |
---|
| 191 | has had its DYNAMIC_RESIZE attribute set. Otherwise, |
---|
| 192 | False (0) is returned. |
---|
| 193 | 2) SET_VALUE |
---|
| 194 | widget_control,wid_id,set_value=impose |
---|
| 195 | permet de modifier l''etat de la droplist comme on peut le faire |
---|
| 196 | pour WIDGET_DROPLIST Impose peut etre: |
---|
| 197 | a) The contents of the list widget (string or string array) |
---|
| 198 | b) une structure qui peut avoir comme elements (de 1 a 3): |
---|
| 199 | DYNAMIC_RESIZE:Set this keyword to activate (if set to 1) |
---|
| 200 | or deactivate (if set to 0) dynamic resizing of the |
---|
| 201 | specified CW_DROPLIST_PM widget (see the documentation |
---|
| 202 | for the DYNAMIC_RESIZE keyword to WIDGET_DROPLIST |
---|
| 203 | procedure for more information about dynamic widget |
---|
| 204 | resizing). |
---|
| 205 | DROPLIST_SELECT:Set this keyword to return the zero-based |
---|
| 206 | number of the currently-selected element (i.e., the |
---|
| 207 | currently-displayed element) in the specified droplist |
---|
| 208 | widget. |
---|
| 209 | VALUE: The contents of the list widget (string or string |
---|
| 210 | array) |
---|
| 211 | |
---|
| 212 | RESTRICTIONS: |
---|
| 213 | |
---|
| 214 | EXAMPLE: cf utiliser le programme founit i-dessous: testwid et la |
---|
| 215 | procedure associee, testwid_event. |
---|
| 216 | </div> |
---|
| 217 | |
---|
| 218 | |
---|
| 219 | |
---|
| 220 | |
---|
| 221 | <h3>Parameters</h3> |
---|
| 222 | |
---|
| 223 | |
---|
| 224 | <h4 id="_cw_droplist_pm_set_value_param_id">id |
---|
| 225 | |
---|
| 226 | |
---|
| 227 | |
---|
| 228 | |
---|
| 229 | |
---|
| 230 | |
---|
| 231 | |
---|
| 232 | |
---|
| 233 | </h4> |
---|
| 234 | |
---|
| 235 | <div class="comments"></div> |
---|
| 236 | |
---|
| 237 | <h4 id="_cw_droplist_pm_set_value_param_value">value |
---|
| 238 | |
---|
| 239 | |
---|
| 240 | |
---|
| 241 | |
---|
| 242 | |
---|
| 243 | |
---|
| 244 | |
---|
| 245 | |
---|
| 246 | </h4> |
---|
| 247 | |
---|
| 248 | <div class="comments"></div> |
---|
| 249 | |
---|
| 250 | |
---|
| 251 | |
---|
| 252 | |
---|
| 253 | |
---|
| 254 | |
---|
| 255 | |
---|
| 256 | |
---|
| 257 | |
---|
| 258 | |
---|
| 259 | |
---|
| 260 | |
---|
| 261 | |
---|
| 262 | |
---|
| 263 | |
---|
| 264 | |
---|
| 265 | |
---|
| 266 | |
---|
| 267 | |
---|
| 268 | |
---|
| 269 | |
---|
| 270 | |
---|
| 271 | |
---|
| 272 | |
---|
| 273 | |
---|
| 274 | |
---|
| 275 | |
---|
| 276 | |
---|
| 277 | |
---|
| 278 | </div> |
---|
| 279 | |
---|
| 280 | |
---|
| 281 | <div class="routine_details" id="_cw_droplist_pm_get_value"> |
---|
| 282 | |
---|
| 283 | <h2><a class="top" href="#container">top</a>cw_droplist_pm_get_value </h2> |
---|
| 284 | |
---|
| 285 | <p class="header"> |
---|
| 286 | <span class="result">result = </span>cw_droplist_pm_get_value(<span class="result"><a href="#_cw_droplist_pm_get_value_param_id">id</a></span>)</p> |
---|
| 287 | |
---|
| 288 | <div class="comments"></div> |
---|
| 289 | |
---|
| 290 | |
---|
| 291 | |
---|
| 292 | |
---|
| 293 | <h3>Parameters</h3> |
---|
| 294 | |
---|
| 295 | |
---|
| 296 | <h4 id="_cw_droplist_pm_get_value_param_id">id |
---|
| 297 | |
---|
| 298 | |
---|
| 299 | |
---|
| 300 | |
---|
| 301 | |
---|
| 302 | |
---|
| 303 | |
---|
| 304 | |
---|
| 305 | </h4> |
---|
| 306 | |
---|
| 307 | <div class="comments"></div> |
---|
| 308 | |
---|
| 309 | |
---|
| 310 | |
---|
| 311 | |
---|
| 312 | |
---|
| 313 | |
---|
| 314 | |
---|
| 315 | |
---|
| 316 | |
---|
| 317 | |
---|
| 318 | |
---|
| 319 | |
---|
| 320 | |
---|
| 321 | |
---|
| 322 | |
---|
| 323 | |
---|
| 324 | |
---|
| 325 | |
---|
| 326 | |
---|
| 327 | |
---|
| 328 | |
---|
| 329 | |
---|
| 330 | |
---|
| 331 | |
---|
| 332 | |
---|
| 333 | |
---|
| 334 | |
---|
| 335 | |
---|
| 336 | |
---|
| 337 | </div> |
---|
| 338 | |
---|
| 339 | |
---|
| 340 | <div class="routine_details" id="_cw_droplist_pm_event"> |
---|
| 341 | |
---|
| 342 | <h2><a class="top" href="#container">top</a>cw_droplist_pm_event </h2> |
---|
| 343 | |
---|
| 344 | <p class="header"> |
---|
| 345 | <span class="result">result = </span>cw_droplist_pm_event(<span class="result"><a href="#_cw_droplist_pm_event_param_event">event</a></span>)</p> |
---|
| 346 | |
---|
| 347 | <div class="comments"></div> |
---|
| 348 | |
---|
| 349 | |
---|
| 350 | |
---|
| 351 | |
---|
| 352 | <h3>Parameters</h3> |
---|
| 353 | |
---|
| 354 | |
---|
| 355 | <h4 id="_cw_droplist_pm_event_param_event">event |
---|
| 356 | |
---|
| 357 | |
---|
| 358 | |
---|
| 359 | |
---|
| 360 | |
---|
| 361 | |
---|
| 362 | |
---|
| 363 | |
---|
| 364 | </h4> |
---|
| 365 | |
---|
| 366 | <div class="comments"></div> |
---|
| 367 | |
---|
| 368 | |
---|
| 369 | |
---|
| 370 | |
---|
| 371 | |
---|
| 372 | |
---|
| 373 | |
---|
| 374 | |
---|
| 375 | |
---|
| 376 | |
---|
| 377 | |
---|
| 378 | |
---|
| 379 | |
---|
| 380 | |
---|
| 381 | |
---|
| 382 | |
---|
| 383 | |
---|
| 384 | |
---|
| 385 | |
---|
| 386 | |
---|
| 387 | |
---|
| 388 | |
---|
| 389 | |
---|
| 390 | |
---|
| 391 | |
---|
| 392 | |
---|
| 393 | |
---|
| 394 | |
---|
| 395 | |
---|
| 396 | </div> |
---|
| 397 | |
---|
| 398 | |
---|
| 399 | <div class="routine_details" id="_cw_droplist_pm"> |
---|
| 400 | |
---|
| 401 | <h2><a class="top" href="#container">top</a>cw_droplist_pm </h2> |
---|
| 402 | |
---|
| 403 | <p class="header"> |
---|
| 404 | <span class="result">result = </span>cw_droplist_pm(<span class="result"><a href="#_cw_droplist_pm_param_parent">parent</a></span>, <a href="#_cw_droplist_pm_keyword_UVALUE">UVALUE</a>=<span class="result">UVALUE</span>, <a href="#_cw_droplist_pm_keyword_UNAME">UNAME</a>=<span class="result">UNAME</span>, <a href="#_cw_droplist_pm_keyword_ROW">ROW</a>=<span class="result">ROW</span>, <a href="#_cw_droplist_pm_keyword_COLUMN">COLUMN</a>=<span class="result">COLUMN</span>, <a href="#_cw_droplist_pm_keyword__extra">_extra</a>=<span class="result">_extra</span>)</p> |
---|
| 405 | |
---|
| 406 | <div class="comments"></div> |
---|
| 407 | |
---|
| 408 | |
---|
| 409 | |
---|
| 410 | |
---|
| 411 | <h3>Parameters</h3> |
---|
| 412 | |
---|
| 413 | |
---|
| 414 | <h4 id="_cw_droplist_pm_param_parent">parent |
---|
| 415 | |
---|
| 416 | |
---|
| 417 | |
---|
| 418 | |
---|
| 419 | |
---|
| 420 | |
---|
| 421 | |
---|
| 422 | |
---|
| 423 | </h4> |
---|
| 424 | |
---|
| 425 | <div class="comments"></div> |
---|
| 426 | |
---|
| 427 | |
---|
| 428 | |
---|
| 429 | |
---|
| 430 | |
---|
| 431 | |
---|
| 432 | <h3>Keywords</h3> |
---|
| 433 | |
---|
| 434 | <h4 id="_cw_droplist_pm_keyword_UVALUE">UVALUE |
---|
| 435 | |
---|
| 436 | |
---|
| 437 | |
---|
| 438 | |
---|
| 439 | |
---|
| 440 | |
---|
| 441 | |
---|
| 442 | |
---|
| 443 | </h4> |
---|
| 444 | |
---|
| 445 | <div class="comments"></div> |
---|
| 446 | |
---|
| 447 | <h4 id="_cw_droplist_pm_keyword_UNAME">UNAME |
---|
| 448 | |
---|
| 449 | |
---|
| 450 | |
---|
| 451 | |
---|
| 452 | |
---|
| 453 | |
---|
| 454 | |
---|
| 455 | |
---|
| 456 | </h4> |
---|
| 457 | |
---|
| 458 | <div class="comments"></div> |
---|
| 459 | |
---|
| 460 | <h4 id="_cw_droplist_pm_keyword_ROW">ROW |
---|
| 461 | |
---|
| 462 | |
---|
| 463 | |
---|
| 464 | |
---|
| 465 | |
---|
| 466 | |
---|
| 467 | |
---|
| 468 | |
---|
| 469 | </h4> |
---|
| 470 | |
---|
| 471 | <div class="comments"></div> |
---|
| 472 | |
---|
| 473 | <h4 id="_cw_droplist_pm_keyword_COLUMN">COLUMN |
---|
| 474 | |
---|
| 475 | |
---|
| 476 | |
---|
| 477 | |
---|
| 478 | |
---|
| 479 | |
---|
| 480 | |
---|
| 481 | |
---|
| 482 | </h4> |
---|
| 483 | |
---|
| 484 | <div class="comments"></div> |
---|
| 485 | |
---|
| 486 | <h4 id="_cw_droplist_pm_keyword__extra">_extra |
---|
| 487 | |
---|
| 488 | |
---|
| 489 | |
---|
| 490 | |
---|
| 491 | |
---|
| 492 | |
---|
| 493 | |
---|
| 494 | |
---|
| 495 | </h4> |
---|
| 496 | |
---|
| 497 | <div class="comments"></div> |
---|
| 498 | |
---|
| 499 | |
---|
| 500 | |
---|
| 501 | |
---|
| 502 | |
---|
| 503 | |
---|
| 504 | |
---|
| 505 | |
---|
| 506 | |
---|
| 507 | |
---|
| 508 | |
---|
| 509 | |
---|
| 510 | |
---|
| 511 | |
---|
| 512 | |
---|
| 513 | |
---|
| 514 | |
---|
| 515 | |
---|
| 516 | |
---|
| 517 | |
---|
| 518 | |
---|
| 519 | |
---|
| 520 | |
---|
| 521 | |
---|
| 522 | |
---|
| 523 | |
---|
| 524 | </div> |
---|
| 525 | |
---|
| 526 | </div> |
---|
| 527 | |
---|
| 528 | |
---|
| 529 | |
---|
| 530 | <div id="tagline">Produced by IDLdoc 2.0.</div> |
---|
| 531 | |
---|
| 532 | </div> |
---|
| 533 | |
---|
| 534 | </body> |
---|
| 535 | </html> |
---|