1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 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 279 280 281 282 283 284 285 286 287 288 289 290 291 292 293 294 295 296 297 298 299 300 301 302 303 304 305 306 307 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 338 339 340 341 342 343 344 345 346 347 348 349 350 351 352 353 354 355 356 357 358 359 360 361 362 363 364 365 366 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 397 398 399 400 401 402 403 404 405 406 407 408 409 410 411 412 413 414 415 416 417 418 419 420 421 422 423 424 425 426 427 428 429 430 431 432 433 434 435 436 437 438 439 440 441 442 443 444 445 446 447 448 449 450 451 452 453 454 455 456 457 458 459 460 461 462 463 464 465 466 467 468 469 470 471 472 473 474 475 476 477 478 479 480 481 482 483 484 485 486 487 488 489 490 491 492 493 494 495 496 497 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 525 526 527 528 529 530 531 532 533 534 535 536 537 538 539 540 541 542 543 544 545 546 547 548 549 550 551 552 553 554 555 556 557 558 559 560 561 562 563 564 565 566 567 568 569 570 571 572 573 574 575 576 577 578 579 580 581 582 583 584 585 586 587 588 589 590 591 592 593 594 595 596 597 598 599 600 601 602 603 604 605 606 607 608 609 610 611 612 613 614 615 616 617 618 619 620 621 622 623 624 625 626 627 628 629 630 631 632 633 634 635 636 637 638 639 640 641 642 643 644 645 646 647 648 649 650 651 652 653 654 655 656 657 658 659 660 661 662 663 664 665 666 667 668 669 670 671 672 673 674 675 676 677 678 679 680 681 682 683 684 685 686 687 688 689 690 691 692 693 694 695 696 697 698 699 700 701 702 703 704 705 706 707 708 709 710 711 712 713 714 715 716 717 718 719 720 721 722 723 724 725 726 727 728 729 730 731 732 733 734 735 736 737 738 739 740 741 742 743 744 745 746 747 748 749 750 751 752 753 754 755 756 757 758 759 760 761 762 763 764 765 766 767 768 769 770 771 772 773 774 775 776 777 778 779 780 781 782 783 784 785 786 787 788 789 790 791 792 793 794 795 796 797 798 799 800 801 802 803 804 805 806 807 808 809 810 811 812 813 814 815 816 817 818 819 820 821 822 823 824 825 826 827 828 829 830 831 832 833 834 835 836 837 838 839 840 841 842 843 844 845 846 847 848 849 850 851 852 853 854 855 856 857 858 859 860 861 862 863 864 865 866 867 868 869 870 871 872 873 874 875 876 877 878 879 880 881 882 883 884 885 886 887 888 889 890 891 892 893 894 895 896 897 898 899 900 901 902 903 904 905 906 907 908 909 910 911 912 913 914 915 916 917 918 919 920 921 922 923 924 925 926 927 928 929 930 931 932 933 934 935 936 937 938 939 940 941 942 943 944 945 946 947 948 949 950 951 952 953 954 955 956 957 958 959 960 961 962 963 964 965 966 967 968 969 970 971 972 973 974 975 976 977 978 979 980 981 982 983 984 985 986 987 988 989 990 991 992 993 994 995 996 997 998 999 1000 1001 1002 1003 1004 1005 1006 1007 1008 1009 1010 1011 1012 1013 1014
|
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/1999/REC-html401-19991224/loose.dtd">
<html>
<head>
<title>Castle Game Engine: CastleOnScreenMenu: Class TCastleOnScreenMenu</title>
<meta name="generator" content="PasDoc 0.13.0">
<meta http-equiv="content-type" content="text/html; charset=utf-8">
<link rel="StyleSheet" type="text/css" href="pasdoc.css">
</head>
<body>
<table class="container"><tr><td class="navigation">
<h2>Castle Game Engine</h2><p><a href="introduction.html" class="navigation">Introduction</a></p><p><a href="AllUnits.html" class="navigation">Units</a></p><p><a href="ClassHierarchy.html" class="navigation">Class Hierarchy</a></p><p><a href="AllClasses.html" class="navigation">Classes, Interfaces, Objects and Records</a></p><p><a href="AllTypes.html" class="navigation">Types</a></p><p><a href="AllVariables.html" class="navigation">Variables</a></p><p><a href="AllConstants.html" class="navigation">Constants</a></p><p><a href="AllFunctions.html" class="navigation">Functions and Procedures</a></p><p><a href="AllIdentifiers.html" class="navigation">Identifiers</a></p></td><td class="content">
<a name="TCastleOnScreenMenu"></a><h1 class="cio">Class TCastleOnScreenMenu</h1>
<table class="sections wide_list">
<tr>
<td><a class="section" href="#PasDoc-Description">Description</a></td><td><a class="section" href="#PasDoc-Hierarchy">Hierarchy</a></td><td><a class="section" href="#PasDoc-Fields">Fields</a></td><td><a class="section" href="#PasDoc-Methods">Methods</a></td><td><a class="section" href="#PasDoc-Properties">Properties</a></td></tr></table>
<a name="PasDoc-Description"></a><h2 class="unit">Unit</h2>
<p class="unitlink">
<a href="CastleOnScreenMenu.html">CastleOnScreenMenu</a></p>
<h2 class="declaration">Declaration</h2>
<p class="declaration">
<code>type TCastleOnScreenMenu = class(<a class="normal" href="CastleUIControls.TUIControl.html">TUIControl</a>)</code></p>
<h2 class="description">Description</h2>
<p>
On-screen menu displayed in OpenGL. All the menu items are simply displayed on the screen, one after the other. Typical for game menus. Normal user programs may prefer to use the menu bar instead of this (for example TCastleWindowCustom.Menu, or normal Lazarus menu). Although this still may be useful for displaying things like sliders.</p>
<a name="PasDoc-Hierarchy"></a><h2 class="hierarchy">Hierarchy</h2>
<ul class="hierarchy"><li class="ancestor">TComponent</li>
<li class="ancestor"><a class="normal" href="CastleUIControls.TInputListener.html">TInputListener</a></li>
<li class="ancestor"><a class="normal" href="CastleUIControls.TUIControl.html">TUIControl</a></li>
<li class="thisitem">TCastleOnScreenMenu</li></ul><h2 class="overview">Overview</h2>
<a name="PasDoc-Fields"></a><h3 class="summary">Fields</h3>
<table class="summary wide_list">
<tr class="list">
<td class="visibility"><a href="legend.html"><img src="public.gif" alt="Public" title="Public"></a></td>
<td class="itemcode"><code>internal const <b><a href="CastleOnScreenMenu.TCastleOnScreenMenu.html#DefaultMenuKeyNextItem">DefaultMenuKeyNextItem</a></b> = K_Down;</code></td>
</tr>
<tr class="list2">
<td class="visibility"><a href="legend.html"><img src="public.gif" alt="Public" title="Public"></a></td>
<td class="itemcode"><code>internal const <b><a href="CastleOnScreenMenu.TCastleOnScreenMenu.html#DefaultMenuKeyPreviousItem">DefaultMenuKeyPreviousItem</a></b> = K_Up;</code></td>
</tr>
<tr class="list">
<td class="visibility"><a href="legend.html"><img src="public.gif" alt="Public" title="Public"></a></td>
<td class="itemcode"><code>internal const <b><a href="CastleOnScreenMenu.TCastleOnScreenMenu.html#DefaultMenuKeySelectItem">DefaultMenuKeySelectItem</a></b> = K_Enter;</code></td>
</tr>
<tr class="list2">
<td class="visibility"><a href="legend.html"><img src="public.gif" alt="Public" title="Public"></a></td>
<td class="itemcode"><code>internal const <b><a href="CastleOnScreenMenu.TCastleOnScreenMenu.html#DefaultMenuKeySliderIncrease">DefaultMenuKeySliderIncrease</a></b> = K_Right;</code></td>
</tr>
<tr class="list">
<td class="visibility"><a href="legend.html"><img src="public.gif" alt="Public" title="Public"></a></td>
<td class="itemcode"><code>internal const <b><a href="CastleOnScreenMenu.TCastleOnScreenMenu.html#DefaultMenuKeySliderDecrease">DefaultMenuKeySliderDecrease</a></b> = K_Left;</code></td>
</tr>
<tr class="list2">
<td class="visibility"><a href="legend.html"><img src="public.gif" alt="Public" title="Public"></a></td>
<td class="itemcode"><code>internal const <b><a href="CastleOnScreenMenu.TCastleOnScreenMenu.html#DefaultCurrentItemBorderColor1">DefaultCurrentItemBorderColor1</a></b>: <a href="CastleColors.html#TCastleColor">TCastleColor</a> = (1.0, 1.0, 1.0, 1.0) ;</code></td>
</tr>
<tr class="list">
<td class="visibility"><a href="legend.html"><img src="public.gif" alt="Public" title="Public"></a></td>
<td class="itemcode"><code>internal const <b><a href="CastleOnScreenMenu.TCastleOnScreenMenu.html#DefaultCurrentItemBorderColor2">DefaultCurrentItemBorderColor2</a></b>: <a href="CastleColors.html#TCastleColor">TCastleColor</a> = (0.5, 0.5, 0.5, 1.0) ;</code></td>
</tr>
<tr class="list2">
<td class="visibility"><a href="legend.html"><img src="public.gif" alt="Public" title="Public"></a></td>
<td class="itemcode"><code>internal const <b><a href="CastleOnScreenMenu.TCastleOnScreenMenu.html#DefaultCurrentItemColor">DefaultCurrentItemColor</a></b> : <a href="CastleColors.html#TCastleColor">TCastleColor</a> = (1.0, 1.0, 0.0, 1.0) ;</code></td>
</tr>
<tr class="list">
<td class="visibility"><a href="legend.html"><img src="public.gif" alt="Public" title="Public"></a></td>
<td class="itemcode"><code>internal const <b><a href="CastleOnScreenMenu.TCastleOnScreenMenu.html#DefaultNonCurrentItemColor">DefaultNonCurrentItemColor</a></b> : <a href="CastleColors.html#TCastleColor">TCastleColor</a> = (1.0, 1.0, 1.0, 1.0) ;</code></td>
</tr>
<tr class="list2">
<td class="visibility"><a href="legend.html"><img src="public.gif" alt="Public" title="Public"></a></td>
<td class="itemcode"><code>internal const <b><a href="CastleOnScreenMenu.TCastleOnScreenMenu.html#DefaultRegularSpaceBetweenItems">DefaultRegularSpaceBetweenItems</a></b> = 10;</code></td>
</tr>
<tr class="list">
<td class="visibility"><a href="legend.html"><img src="public.gif" alt="Public" title="Public"></a></td>
<td class="itemcode"><code>internal const <b><a href="CastleOnScreenMenu.TCastleOnScreenMenu.html#DefaultBackgroundOpacityNotFocused">DefaultBackgroundOpacityNotFocused</a></b> = 0.4;</code></td>
</tr>
<tr class="list2">
<td class="visibility"><a href="legend.html"><img src="public.gif" alt="Public" title="Public"></a></td>
<td class="itemcode"><code>internal const <b><a href="CastleOnScreenMenu.TCastleOnScreenMenu.html#DefaultBackgroundOpacityFocused">DefaultBackgroundOpacityFocused</a></b> = 0.7;</code></td>
</tr>
<tr class="list">
<td class="visibility"><a href="legend.html"><img src="public.gif" alt="Public" title="Public"></a></td>
<td class="itemcode"><code>var <b><a href="CastleOnScreenMenu.TCastleOnScreenMenu.html#Position">Position</a></b>: <a href="CastleVectors.html#TVector2Integer">TVector2Integer</a>;</code></td>
</tr>
</table>
<a name="PasDoc-Methods"></a><h3 class="summary">Methods</h3>
<table class="summary wide_list">
<tr class="list">
<td class="visibility"><a href="legend.html"><img src="public.gif" alt="Public" title="Public"></a></td>
<td class="itemcode"><code>constructor <b><a href="CastleOnScreenMenu.TCastleOnScreenMenu.html#Create">Create</a></b>(AOwner: TComponent); override;</code></td>
</tr>
<tr class="list2">
<td class="visibility"><a href="legend.html"><img src="public.gif" alt="Public" title="Public"></a></td>
<td class="itemcode"><code>destructor <b><a href="CastleOnScreenMenu.TCastleOnScreenMenu.html#Destroy">Destroy</a></b>; override;</code></td>
</tr>
<tr class="list">
<td class="visibility"><a href="legend.html"><img src="public.gif" alt="Public" title="Public"></a></td>
<td class="itemcode"><code>function <b><a href="CastleOnScreenMenu.TCastleOnScreenMenu.html#CurrentAccessory">CurrentAccessory</a></b>: <a href="CastleOnScreenMenu.TMenuAccessory.html">TMenuAccessory</a>;</code></td>
</tr>
<tr class="list2">
<td class="visibility"><a href="legend.html"><img src="public.gif" alt="Public" title="Public"></a></td>
<td class="itemcode"><code>procedure <b><a href="CastleOnScreenMenu.TCastleOnScreenMenu.html#NextItem">NextItem</a></b>;</code></td>
</tr>
<tr class="list">
<td class="visibility"><a href="legend.html"><img src="public.gif" alt="Public" title="Public"></a></td>
<td class="itemcode"><code>procedure <b><a href="CastleOnScreenMenu.TCastleOnScreenMenu.html#PreviousItem">PreviousItem</a></b>;</code></td>
</tr>
<tr class="list2">
<td class="visibility"><a href="legend.html"><img src="public.gif" alt="Public" title="Public"></a></td>
<td class="itemcode"><code>procedure <b><a href="CastleOnScreenMenu.TCastleOnScreenMenu.html#GLContextClose">GLContextClose</a></b>; override;</code></td>
</tr>
<tr class="list">
<td class="visibility"><a href="legend.html"><img src="public.gif" alt="Public" title="Public"></a></td>
<td class="itemcode"><code>procedure <b><a href="CastleOnScreenMenu.TCastleOnScreenMenu.html#FixItemsRectangles">FixItemsRectangles</a></b>;</code></td>
</tr>
<tr class="list2">
<td class="visibility"><a href="legend.html"><img src="public.gif" alt="Public" title="Public"></a></td>
<td class="itemcode"><code>procedure <b><a href="CastleOnScreenMenu.TCastleOnScreenMenu.html#ContainerResize">ContainerResize</a></b>(const AContainerWidth, AContainerHeight: Cardinal); override;</code></td>
</tr>
<tr class="list">
<td class="visibility"><a href="legend.html"><img src="public.gif" alt="Public" title="Public"></a></td>
<td class="itemcode"><code>procedure <b><a href="CastleOnScreenMenu.TCastleOnScreenMenu.html#Render">Render</a></b>; override;</code></td>
</tr>
<tr class="list2">
<td class="visibility"><a href="legend.html"><img src="public.gif" alt="Public" title="Public"></a></td>
<td class="itemcode"><code>function <b><a href="CastleOnScreenMenu.TCastleOnScreenMenu.html#Press">Press</a></b>(const Event: <a href="CastleKeysMouse.TInputPressRelease.html">TInputPressRelease</a>): boolean; override;</code></td>
</tr>
<tr class="list">
<td class="visibility"><a href="legend.html"><img src="public.gif" alt="Public" title="Public"></a></td>
<td class="itemcode"><code>function <b><a href="CastleOnScreenMenu.TCastleOnScreenMenu.html#Release">Release</a></b>(const Event: <a href="CastleKeysMouse.TInputPressRelease.html">TInputPressRelease</a>): boolean; override;</code></td>
</tr>
<tr class="list2">
<td class="visibility"><a href="legend.html"><img src="public.gif" alt="Public" title="Public"></a></td>
<td class="itemcode"><code>function <b><a href="CastleOnScreenMenu.TCastleOnScreenMenu.html#Motion">Motion</a></b>(const Event: <a href="CastleKeysMouse.TInputMotion.html">TInputMotion</a>): boolean; override;</code></td>
</tr>
<tr class="list">
<td class="visibility"><a href="legend.html"><img src="public.gif" alt="Public" title="Public"></a></td>
<td class="itemcode"><code>procedure <b><a href="CastleOnScreenMenu.TCastleOnScreenMenu.html#Update">Update</a></b>(const SecondsPassed: Single; var HandleInput: boolean); override;</code></td>
</tr>
<tr class="list2">
<td class="visibility"><a href="legend.html"><img src="public.gif" alt="Public" title="Public"></a></td>
<td class="itemcode"><code>function <b><a href="CastleOnScreenMenu.TCastleOnScreenMenu.html#PositionInside">PositionInside</a></b>(const Point: <a href="CastleVectors.html#TVector2Single">TVector2Single</a>): boolean; override;</code></td>
</tr>
<tr class="list">
<td class="visibility"><a href="legend.html"><img src="public.gif" alt="Public" title="Public"></a></td>
<td class="itemcode"><code>function <b><a href="CastleOnScreenMenu.TCastleOnScreenMenu.html#AllowSuspendForInput">AllowSuspendForInput</a></b>: boolean; override;</code></td>
</tr>
<tr class="list2">
<td class="visibility"><a href="legend.html"><img src="public.gif" alt="Public" title="Public"></a></td>
<td class="itemcode"><code>procedure <b><a href="CastleOnScreenMenu.TCastleOnScreenMenu.html#Click">Click</a></b>; virtual;</code></td>
</tr>
<tr class="list">
<td class="visibility"><a href="legend.html"><img src="public.gif" alt="Public" title="Public"></a></td>
<td class="itemcode"><code>procedure <b><a href="CastleOnScreenMenu.TCastleOnScreenMenu.html#CurrentItemSelected">CurrentItemSelected</a></b>; virtual; deprecated;</code></td>
</tr>
<tr class="list2">
<td class="visibility"><a href="legend.html"><img src="public.gif" alt="Public" title="Public"></a></td>
<td class="itemcode"><code>procedure <b><a href="CastleOnScreenMenu.TCastleOnScreenMenu.html#AccessoryValueChanged">AccessoryValueChanged</a></b>; virtual;</code></td>
</tr>
<tr class="list">
<td class="visibility"><a href="legend.html"><img src="public.gif" alt="Public" title="Public"></a></td>
<td class="itemcode"><code>procedure <b><a href="CastleOnScreenMenu.TCastleOnScreenMenu.html#CurrentItemAccessoryValueChanged">CurrentItemAccessoryValueChanged</a></b>; virtual; deprecated;</code></td>
</tr>
<tr class="list2">
<td class="visibility"><a href="legend.html"><img src="public.gif" alt="Public" title="Public"></a></td>
<td class="itemcode"><code>procedure <b><a href="CastleOnScreenMenu.TCastleOnScreenMenu.html#CurrentItemChanged">CurrentItemChanged</a></b>; virtual;</code></td>
</tr>
<tr class="list">
<td class="visibility"><a href="legend.html"><img src="public.gif" alt="Public" title="Public"></a></td>
<td class="itemcode"><code>function <b><a href="CastleOnScreenMenu.TCastleOnScreenMenu.html#SpaceBetweenItems">SpaceBetweenItems</a></b>(const NextItemIndex: Cardinal): Cardinal; virtual;</code></td>
</tr>
</table>
<a name="PasDoc-Properties"></a><h3 class="summary">Properties</h3>
<table class="summary wide_list">
<tr class="list">
<td class="visibility"><a href="legend.html"><img src="public.gif" alt="Public" title="Public"></a></td>
<td class="itemcode"><code>property <b><a href="CastleOnScreenMenu.TCastleOnScreenMenu.html#PositionAbsolute">PositionAbsolute</a></b>: <a href="CastleVectors.html#TVector2Integer">TVector2Integer</a> read FPositionAbsolute;</code></td>
</tr>
<tr class="list2">
<td class="visibility"><a href="legend.html"><img src="public.gif" alt="Public" title="Public"></a></td>
<td class="itemcode"><code>property <b><a href="CastleOnScreenMenu.TCastleOnScreenMenu.html#CurrentItem">CurrentItem</a></b>: Integer read GetCurrentItem write SetCurrentItem;</code></td>
</tr>
<tr class="list">
<td class="visibility"><a href="legend.html"><img src="public.gif" alt="Public" title="Public"></a></td>
<td class="itemcode"><code>property <b><a href="CastleOnScreenMenu.TCastleOnScreenMenu.html#Rectangles">Rectangles</a></b>: <a href="CastleRectangles.TRectangleList.html">TRectangleList</a> read FRectangles;</code></td>
</tr>
<tr class="list2">
<td class="visibility"><a href="legend.html"><img src="public.gif" alt="Public" title="Public"></a></td>
<td class="itemcode"><code>property <b><a href="CastleOnScreenMenu.TCastleOnScreenMenu.html#AllItemsRectangle">AllItemsRectangle</a></b>: <a href="CastleRectangles.TRectangle.html">TRectangle</a> read FAllItemsRectangle;</code></td>
</tr>
<tr class="list">
<td class="visibility"><a href="legend.html"><img src="public.gif" alt="Public" title="Public"></a></td>
<td class="itemcode"><code>property <b><a href="CastleOnScreenMenu.TCastleOnScreenMenu.html#AccessoryRectangles">AccessoryRectangles</a></b>: <a href="CastleRectangles.TRectangleList.html">TRectangleList</a> read FAccessoryRectangles;</code></td>
</tr>
<tr class="list2">
<td class="visibility"><a href="legend.html"><img src="public.gif" alt="Public" title="Public"></a></td>
<td class="itemcode"><code>property <b><a href="CastleOnScreenMenu.TCastleOnScreenMenu.html#KeyNextItem">KeyNextItem</a></b>: <a href="CastleKeysMouse.html#TKey">TKey</a> read FKeyNextItem write FKeyNextItem
default <a href="CastleOnScreenMenu.TCastleOnScreenMenu.html#DefaultMenuKeyNextItem">DefaultMenuKeyNextItem</a>;</code></td>
</tr>
<tr class="list">
<td class="visibility"><a href="legend.html"><img src="public.gif" alt="Public" title="Public"></a></td>
<td class="itemcode"><code>property <b><a href="CastleOnScreenMenu.TCastleOnScreenMenu.html#KeyPreviousItem">KeyPreviousItem</a></b>: <a href="CastleKeysMouse.html#TKey">TKey</a> read FKeyPreviousItem write FKeyPreviousItem
default <a href="CastleOnScreenMenu.TCastleOnScreenMenu.html#DefaultMenuKeyPreviousItem">DefaultMenuKeyPreviousItem</a>;</code></td>
</tr>
<tr class="list2">
<td class="visibility"><a href="legend.html"><img src="public.gif" alt="Public" title="Public"></a></td>
<td class="itemcode"><code>property <b><a href="CastleOnScreenMenu.TCastleOnScreenMenu.html#KeySelectItem">KeySelectItem</a></b>: <a href="CastleKeysMouse.html#TKey">TKey</a> read FKeySelectItem write FKeySelectItem
default <a href="CastleOnScreenMenu.TCastleOnScreenMenu.html#DefaultMenuKeySelectItem">DefaultMenuKeySelectItem</a>;</code></td>
</tr>
<tr class="list">
<td class="visibility"><a href="legend.html"><img src="public.gif" alt="Public" title="Public"></a></td>
<td class="itemcode"><code>property <b><a href="CastleOnScreenMenu.TCastleOnScreenMenu.html#KeySliderIncrease">KeySliderIncrease</a></b>: <a href="CastleKeysMouse.html#TKey">TKey</a>
read FKeySliderIncrease write FKeySliderIncrease
default <a href="CastleOnScreenMenu.TCastleOnScreenMenu.html#DefaultMenuKeySliderIncrease">DefaultMenuKeySliderIncrease</a>;</code></td>
</tr>
<tr class="list2">
<td class="visibility"><a href="legend.html"><img src="public.gif" alt="Public" title="Public"></a></td>
<td class="itemcode"><code>property <b><a href="CastleOnScreenMenu.TCastleOnScreenMenu.html#KeySliderDecrease">KeySliderDecrease</a></b>: <a href="CastleKeysMouse.html#TKey">TKey</a>
read FKeySliderDecrease write FKeySliderDecrease
default <a href="CastleOnScreenMenu.TCastleOnScreenMenu.html#DefaultMenuKeySliderDecrease">DefaultMenuKeySliderDecrease</a>;</code></td>
</tr>
<tr class="list">
<td class="visibility"><a href="legend.html"><img src="public.gif" alt="Public" title="Public"></a></td>
<td class="itemcode"><code>property <b><a href="CastleOnScreenMenu.TCastleOnScreenMenu.html#CurrentItemBorderColor1">CurrentItemBorderColor1</a></b>: <a href="CastleColors.html#TCastleColor">TCastleColor</a>
read FCurrentItemBorderColor1
write FCurrentItemBorderColor1;</code></td>
</tr>
<tr class="list2">
<td class="visibility"><a href="legend.html"><img src="public.gif" alt="Public" title="Public"></a></td>
<td class="itemcode"><code>property <b><a href="CastleOnScreenMenu.TCastleOnScreenMenu.html#CurrentItemBorderColor2">CurrentItemBorderColor2</a></b>: <a href="CastleColors.html#TCastleColor">TCastleColor</a>
read FCurrentItemBorderColor2
write FCurrentItemBorderColor2;</code></td>
</tr>
<tr class="list">
<td class="visibility"><a href="legend.html"><img src="public.gif" alt="Public" title="Public"></a></td>
<td class="itemcode"><code>property <b><a href="CastleOnScreenMenu.TCastleOnScreenMenu.html#CurrentItemColor">CurrentItemColor</a></b> : <a href="CastleColors.html#TCastleColor">TCastleColor</a>
read FCurrentItemColor write FCurrentItemColor;</code></td>
</tr>
<tr class="list2">
<td class="visibility"><a href="legend.html"><img src="public.gif" alt="Public" title="Public"></a></td>
<td class="itemcode"><code>property <b><a href="CastleOnScreenMenu.TCastleOnScreenMenu.html#NonCurrentItemColor">NonCurrentItemColor</a></b> : <a href="CastleColors.html#TCastleColor">TCastleColor</a>
read FNonCurrentItemColor write FNonCurrentItemColor;</code></td>
</tr>
<tr class="list">
<td class="visibility"><a href="legend.html"><img src="public.gif" alt="Public" title="Public"></a></td>
<td class="itemcode"><code>property <b><a href="CastleOnScreenMenu.TCastleOnScreenMenu.html#DesignerMode">DesignerMode</a></b>: boolean
read FDesignerMode write SetDesignerMode default false;</code></td>
</tr>
<tr class="list2">
<td class="visibility"><a href="legend.html"><img src="published.gif" alt="Published" title="Published"></a></td>
<td class="itemcode"><code>property <b><a href="CastleOnScreenMenu.TCastleOnScreenMenu.html#BackgroundOpacityFocused">BackgroundOpacityFocused</a></b>: Single
read FBackgroundOpacityFocused
write FBackgroundOpacityFocused
default <a href="CastleOnScreenMenu.TCastleOnScreenMenu.html#DefaultBackgroundOpacityFocused">DefaultBackgroundOpacityFocused</a>;</code></td>
</tr>
<tr class="list">
<td class="visibility"><a href="legend.html"><img src="published.gif" alt="Published" title="Published"></a></td>
<td class="itemcode"><code>property <b><a href="CastleOnScreenMenu.TCastleOnScreenMenu.html#BackgroundOpacityNotFocused">BackgroundOpacityNotFocused</a></b>: Single
read FBackgroundOpacityNotFocused
write FBackgroundOpacityNotFocused
default <a href="CastleOnScreenMenu.TCastleOnScreenMenu.html#DefaultBackgroundOpacityNotFocused">DefaultBackgroundOpacityNotFocused</a>;</code></td>
</tr>
<tr class="list2">
<td class="visibility"><a href="legend.html"><img src="published.gif" alt="Published" title="Published"></a></td>
<td class="itemcode"><code>property <b><a href="CastleOnScreenMenu.TCastleOnScreenMenu.html#PositionRelativeMenuX">PositionRelativeMenuX</a></b>: <a href="CastleRectangles.html#THorizontalPosition">THorizontalPosition</a>
read FPositionRelativeMenuX write FPositionRelativeMenuX
default <a href="CastleUIControls.html#hpMiddle">hpMiddle</a>;</code></td>
</tr>
<tr class="list">
<td class="visibility"><a href="legend.html"><img src="published.gif" alt="Published" title="Published"></a></td>
<td class="itemcode"><code>property <b><a href="CastleOnScreenMenu.TCastleOnScreenMenu.html#PositionRelativeMenuY">PositionRelativeMenuY</a></b>: <a href="CastleRectangles.html#TVerticalPosition">TVerticalPosition</a>
read FPositionRelativeMenuY write FPositionRelativeMenuY
default <a href="CastleUIControls.html#vpMiddle">vpMiddle</a>;</code></td>
</tr>
<tr class="list2">
<td class="visibility"><a href="legend.html"><img src="published.gif" alt="Published" title="Published"></a></td>
<td class="itemcode"><code>property <b><a href="CastleOnScreenMenu.TCastleOnScreenMenu.html#PositionRelativeScreenX">PositionRelativeScreenX</a></b>: <a href="CastleRectangles.html#THorizontalPosition">THorizontalPosition</a>
read FPositionRelativeScreenX write FPositionRelativeScreenX
default <a href="CastleUIControls.html#hpMiddle">hpMiddle</a>;</code></td>
</tr>
<tr class="list">
<td class="visibility"><a href="legend.html"><img src="published.gif" alt="Published" title="Published"></a></td>
<td class="itemcode"><code>property <b><a href="CastleOnScreenMenu.TCastleOnScreenMenu.html#PositionRelativeScreenY">PositionRelativeScreenY</a></b>: <a href="CastleRectangles.html#TVerticalPosition">TVerticalPosition</a>
read FPositionRelativeScreenY write FPositionRelativeScreenY
default <a href="CastleUIControls.html#vpMiddle">vpMiddle</a>;</code></td>
</tr>
<tr class="list2">
<td class="visibility"><a href="legend.html"><img src="published.gif" alt="Published" title="Published"></a></td>
<td class="itemcode"><code>property <b><a href="CastleOnScreenMenu.TCastleOnScreenMenu.html#DrawBackgroundRectangle">DrawBackgroundRectangle</a></b>: boolean
read FDrawBackgroundRectangle write FDrawBackgroundRectangle
default true;</code></td>
</tr>
<tr class="list">
<td class="visibility"><a href="legend.html"><img src="published.gif" alt="Published" title="Published"></a></td>
<td class="itemcode"><code>property <b><a href="CastleOnScreenMenu.TCastleOnScreenMenu.html#RegularSpaceBetweenItems">RegularSpaceBetweenItems</a></b>: Cardinal
read FRegularSpaceBetweenItems write FRegularSpaceBetweenItems
default <a href="CastleOnScreenMenu.TCastleOnScreenMenu.html#DefaultRegularSpaceBetweenItems">DefaultRegularSpaceBetweenItems</a>;</code></td>
</tr>
<tr class="list2">
<td class="visibility"><a href="legend.html"><img src="published.gif" alt="Published" title="Published"></a></td>
<td class="itemcode"><code>property <b><a href="CastleOnScreenMenu.TCastleOnScreenMenu.html#DrawFocusedBorder">DrawFocusedBorder</a></b>: boolean read FDrawFocusedBorder write FDrawFocusedBorder
default true;</code></td>
</tr>
<tr class="list">
<td class="visibility"><a href="legend.html"><img src="published.gif" alt="Published" title="Published"></a></td>
<td class="itemcode"><code>property <b><a href="CastleOnScreenMenu.TCastleOnScreenMenu.html#Items">Items</a></b>: TStringList read FItems write SetItems;</code></td>
</tr>
<tr class="list2">
<td class="visibility"><a href="legend.html"><img src="published.gif" alt="Published" title="Published"></a></td>
<td class="itemcode"><code>property <b><a href="CastleOnScreenMenu.TCastleOnScreenMenu.html#OnClick">OnClick</a></b>: TNotifyEvent read FOnClick write FOnClick;</code></td>
</tr>
<tr class="list">
<td class="visibility"><a href="legend.html"><img src="published.gif" alt="Published" title="Published"></a></td>
<td class="itemcode"><code>property <b><a href="CastleOnScreenMenu.TCastleOnScreenMenu.html#OnAccessoryValueChanged">OnAccessoryValueChanged</a></b>: TNotifyEvent
read FOnAccessoryValueChanged
write FOnAccessoryValueChanged;</code></td>
</tr>
<tr class="list2">
<td class="visibility"><a href="legend.html"><img src="published.gif" alt="Published" title="Published"></a></td>
<td class="itemcode"><code>property <b><a href="CastleOnScreenMenu.TCastleOnScreenMenu.html#FullSize">FullSize</a></b>: boolean read FFullSize write FFullSize default false;</code></td>
</tr>
</table>
<h2 class="description">Description</h2>
<h3 class="detail">Fields</h3>
<table class="detail wide_list">
<tr class="list">
<td class="visibility"><a href="legend.html"><img src="public.gif" alt="Public" title="Public"></a></td>
<td class="itemcode"><a name="DefaultMenuKeyNextItem"></a><code>internal const <b>DefaultMenuKeyNextItem</b> = K_Down;</code></td>
</tr>
<tr><td colspan="2">
</td></tr>
</table>
<table class="detail wide_list">
<tr class="list">
<td class="visibility"><a href="legend.html"><img src="public.gif" alt="Public" title="Public"></a></td>
<td class="itemcode"><a name="DefaultMenuKeyPreviousItem"></a><code>internal const <b>DefaultMenuKeyPreviousItem</b> = K_Up;</code></td>
</tr>
<tr><td colspan="2">
</td></tr>
</table>
<table class="detail wide_list">
<tr class="list">
<td class="visibility"><a href="legend.html"><img src="public.gif" alt="Public" title="Public"></a></td>
<td class="itemcode"><a name="DefaultMenuKeySelectItem"></a><code>internal const <b>DefaultMenuKeySelectItem</b> = K_Enter;</code></td>
</tr>
<tr><td colspan="2">
</td></tr>
</table>
<table class="detail wide_list">
<tr class="list">
<td class="visibility"><a href="legend.html"><img src="public.gif" alt="Public" title="Public"></a></td>
<td class="itemcode"><a name="DefaultMenuKeySliderIncrease"></a><code>internal const <b>DefaultMenuKeySliderIncrease</b> = K_Right;</code></td>
</tr>
<tr><td colspan="2">
</td></tr>
</table>
<table class="detail wide_list">
<tr class="list">
<td class="visibility"><a href="legend.html"><img src="public.gif" alt="Public" title="Public"></a></td>
<td class="itemcode"><a name="DefaultMenuKeySliderDecrease"></a><code>internal const <b>DefaultMenuKeySliderDecrease</b> = K_Left;</code></td>
</tr>
<tr><td colspan="2">
</td></tr>
</table>
<table class="detail wide_list">
<tr class="list">
<td class="visibility"><a href="legend.html"><img src="public.gif" alt="Public" title="Public"></a></td>
<td class="itemcode"><a name="DefaultCurrentItemBorderColor1"></a><code>internal const <b>DefaultCurrentItemBorderColor1</b>: <a href="CastleColors.html#TCastleColor">TCastleColor</a> = (1.0, 1.0, 1.0, 1.0) ;</code></td>
</tr>
<tr><td colspan="2">
</td></tr>
</table>
<table class="detail wide_list">
<tr class="list">
<td class="visibility"><a href="legend.html"><img src="public.gif" alt="Public" title="Public"></a></td>
<td class="itemcode"><a name="DefaultCurrentItemBorderColor2"></a><code>internal const <b>DefaultCurrentItemBorderColor2</b>: <a href="CastleColors.html#TCastleColor">TCastleColor</a> = (0.5, 0.5, 0.5, 1.0) ;</code></td>
</tr>
<tr><td colspan="2">
</td></tr>
</table>
<table class="detail wide_list">
<tr class="list">
<td class="visibility"><a href="legend.html"><img src="public.gif" alt="Public" title="Public"></a></td>
<td class="itemcode"><a name="DefaultCurrentItemColor"></a><code>internal const <b>DefaultCurrentItemColor</b> : <a href="CastleColors.html#TCastleColor">TCastleColor</a> = (1.0, 1.0, 0.0, 1.0) ;</code></td>
</tr>
<tr><td colspan="2">
</td></tr>
</table>
<table class="detail wide_list">
<tr class="list">
<td class="visibility"><a href="legend.html"><img src="public.gif" alt="Public" title="Public"></a></td>
<td class="itemcode"><a name="DefaultNonCurrentItemColor"></a><code>internal const <b>DefaultNonCurrentItemColor</b> : <a href="CastleColors.html#TCastleColor">TCastleColor</a> = (1.0, 1.0, 1.0, 1.0) ;</code></td>
</tr>
<tr><td colspan="2">
</td></tr>
</table>
<table class="detail wide_list">
<tr class="list">
<td class="visibility"><a href="legend.html"><img src="public.gif" alt="Public" title="Public"></a></td>
<td class="itemcode"><a name="DefaultRegularSpaceBetweenItems"></a><code>internal const <b>DefaultRegularSpaceBetweenItems</b> = 10;</code></td>
</tr>
<tr><td colspan="2">
</td></tr>
</table>
<table class="detail wide_list">
<tr class="list">
<td class="visibility"><a href="legend.html"><img src="public.gif" alt="Public" title="Public"></a></td>
<td class="itemcode"><a name="DefaultBackgroundOpacityNotFocused"></a><code>internal const <b>DefaultBackgroundOpacityNotFocused</b> = 0.4;</code></td>
</tr>
<tr><td colspan="2">
</td></tr>
</table>
<table class="detail wide_list">
<tr class="list">
<td class="visibility"><a href="legend.html"><img src="public.gif" alt="Public" title="Public"></a></td>
<td class="itemcode"><a name="DefaultBackgroundOpacityFocused"></a><code>internal const <b>DefaultBackgroundOpacityFocused</b> = 0.7;</code></td>
</tr>
<tr><td colspan="2">
</td></tr>
</table>
<table class="detail wide_list">
<tr class="list">
<td class="visibility"><a href="legend.html"><img src="public.gif" alt="Public" title="Public"></a></td>
<td class="itemcode"><a name="Position"></a><code>var <b>Position</b>: <a href="CastleVectors.html#TVector2Integer">TVector2Integer</a>;</code></td>
</tr>
<tr><td colspan="2">
<p>
Position of the menu. Expressed as position of some corner of the menu (see <a class="normal" href="CastleOnScreenMenu.TCastleOnScreenMenu.html#PositionRelativeMenuX">PositionRelativeMenuX</a>/Y), relative to some corner of the screen (see <a class="normal" href="CastleOnScreenMenu.TCastleOnScreenMenu.html#PositionRelativeScreenX">PositionRelativeScreenX</a>/Y).
<p>See <a class="normal" href="CastleUIControls.html#TPositionRelative">TPositionRelative</a> documentation for more information.
<p>You may be interested in <a class="normal" href="CastleOnScreenMenu.TCastleOnScreenMenu.html#DesignerMode">DesignerMode</a> for a possibility to set this property at run-time.
<p>Expressed as a public field (instead of a read-write property) because assigning a field of record property is a risk in ObjectPascal (you may be modifying only a temporary copy of the record returned by property getter).</p>
</td></tr>
</table>
<h3 class="detail">Methods</h3>
<table class="detail wide_list">
<tr class="list">
<td class="visibility"><a href="legend.html"><img src="public.gif" alt="Public" title="Public"></a></td>
<td class="itemcode"><a name="Create"></a><code>constructor <b>Create</b>(AOwner: TComponent); override;</code></td>
</tr>
<tr><td colspan="2">
</td></tr>
</table>
<table class="detail wide_list">
<tr class="list">
<td class="visibility"><a href="legend.html"><img src="public.gif" alt="Public" title="Public"></a></td>
<td class="itemcode"><a name="Destroy"></a><code>destructor <b>Destroy</b>; override;</code></td>
</tr>
<tr><td colspan="2">
</td></tr>
</table>
<table class="detail wide_list">
<tr class="list">
<td class="visibility"><a href="legend.html"><img src="public.gif" alt="Public" title="Public"></a></td>
<td class="itemcode"><a name="CurrentAccessory"></a><code>function <b>CurrentAccessory</b>: <a href="CastleOnScreenMenu.TMenuAccessory.html">TMenuAccessory</a>;</code></td>
</tr>
<tr><td colspan="2">
<p>
The accessory (like a slider) attached to currently selected menu item. <code>Nil</code> if none.</p>
</td></tr>
</table>
<table class="detail wide_list">
<tr class="list">
<td class="visibility"><a href="legend.html"><img src="public.gif" alt="Public" title="Public"></a></td>
<td class="itemcode"><a name="NextItem"></a><code>procedure <b>NextItem</b>;</code></td>
</tr>
<tr><td colspan="2">
<p>
These change <a class="normal" href="CastleOnScreenMenu.TCastleOnScreenMenu.html#CurrentItem">CurrentItem</a> as appropriate. Usually you will just let this class call it internally (from <a class="normal" href="CastleOnScreenMenu.TCastleOnScreenMenu.html#Motion">Motion</a>, KeyDown etc.) and will not need to call it yourself.
<p></p>
</td></tr>
</table>
<table class="detail wide_list">
<tr class="list">
<td class="visibility"><a href="legend.html"><img src="public.gif" alt="Public" title="Public"></a></td>
<td class="itemcode"><a name="PreviousItem"></a><code>procedure <b>PreviousItem</b>;</code></td>
</tr>
<tr><td colspan="2">
</td></tr>
</table>
<table class="detail wide_list">
<tr class="list">
<td class="visibility"><a href="legend.html"><img src="public.gif" alt="Public" title="Public"></a></td>
<td class="itemcode"><a name="GLContextClose"></a><code>procedure <b>GLContextClose</b>; override;</code></td>
</tr>
<tr><td colspan="2">
</td></tr>
</table>
<table class="detail wide_list">
<tr class="list">
<td class="visibility"><a href="legend.html"><img src="public.gif" alt="Public" title="Public"></a></td>
<td class="itemcode"><a name="FixItemsRectangles"></a><code>procedure <b>FixItemsRectangles</b>;</code></td>
</tr>
<tr><td colspan="2">
<p>
Calculate final positions, sizes of menu items on the screen. You must call <code>FixItemsRectangles</code> between last modification of </p>
<ul class="compact_spacing">
<li><p>Items</p></li>
<li><p>Position</p></li>
<li><p><a class="normal" href="CastleOnScreenMenu.TCastleOnScreenMenu.html#RegularSpaceBetweenItems">RegularSpaceBetweenItems</a> (and eventually everything else that affects your custom <a class="normal" href="CastleOnScreenMenu.TCastleOnScreenMenu.html#SpaceBetweenItems">SpaceBetweenItems</a> implementation)</p></li>
</ul>
<p> and calling one of the procedures </p>
<ul class="compact_spacing">
<li><p>Render</p></li>
<li><p><a class="normal" href="CastleOnScreenMenu.TCastleOnScreenMenu.html#Motion">Motion</a></p></li>
<li><p>Press</p></li>
<li><p>Release</p></li>
<li><p>Update</p></li>
</ul>
<p> You can call this only while OpenGL context is initialized.
<p><a class="normal" href="CastleOnScreenMenu.TCastleOnScreenMenu.html#ContainerResize">ContainerResize</a> already calls <code>FixItemsRectangles</code>, and window resize is already called automatically by window (at the addition to Controls list, or whenever window size changes). So in simplest cases (when you fill <a class="normal" href="CastleOnScreenMenu.TCastleOnScreenMenu.html#Items">Items</a> etc. properties before adding <a class="normal" href="CastleOnScreenMenu.TCastleOnScreenMenu.html">TCastleOnScreenMenu</a> to Controls) you, in practice, do not have to call this explicitly.</p>
</td></tr>
</table>
<table class="detail wide_list">
<tr class="list">
<td class="visibility"><a href="legend.html"><img src="public.gif" alt="Public" title="Public"></a></td>
<td class="itemcode"><a name="ContainerResize"></a><code>procedure <b>ContainerResize</b>(const AContainerWidth, AContainerHeight: Cardinal); override;</code></td>
</tr>
<tr><td colspan="2">
</td></tr>
</table>
<table class="detail wide_list">
<tr class="list">
<td class="visibility"><a href="legend.html"><img src="public.gif" alt="Public" title="Public"></a></td>
<td class="itemcode"><a name="Render"></a><code>procedure <b>Render</b>; override;</code></td>
</tr>
<tr><td colspan="2">
</td></tr>
</table>
<table class="detail wide_list">
<tr class="list">
<td class="visibility"><a href="legend.html"><img src="public.gif" alt="Public" title="Public"></a></td>
<td class="itemcode"><a name="Press"></a><code>function <b>Press</b>(const Event: <a href="CastleKeysMouse.TInputPressRelease.html">TInputPressRelease</a>): boolean; override;</code></td>
</tr>
<tr><td colspan="2">
</td></tr>
</table>
<table class="detail wide_list">
<tr class="list">
<td class="visibility"><a href="legend.html"><img src="public.gif" alt="Public" title="Public"></a></td>
<td class="itemcode"><a name="Release"></a><code>function <b>Release</b>(const Event: <a href="CastleKeysMouse.TInputPressRelease.html">TInputPressRelease</a>): boolean; override;</code></td>
</tr>
<tr><td colspan="2">
</td></tr>
</table>
<table class="detail wide_list">
<tr class="list">
<td class="visibility"><a href="legend.html"><img src="public.gif" alt="Public" title="Public"></a></td>
<td class="itemcode"><a name="Motion"></a><code>function <b>Motion</b>(const Event: <a href="CastleKeysMouse.TInputMotion.html">TInputMotion</a>): boolean; override;</code></td>
</tr>
<tr><td colspan="2">
</td></tr>
</table>
<table class="detail wide_list">
<tr class="list">
<td class="visibility"><a href="legend.html"><img src="public.gif" alt="Public" title="Public"></a></td>
<td class="itemcode"><a name="Update"></a><code>procedure <b>Update</b>(const SecondsPassed: Single; var HandleInput: boolean); override;</code></td>
</tr>
<tr><td colspan="2">
</td></tr>
</table>
<table class="detail wide_list">
<tr class="list">
<td class="visibility"><a href="legend.html"><img src="public.gif" alt="Public" title="Public"></a></td>
<td class="itemcode"><a name="PositionInside"></a><code>function <b>PositionInside</b>(const Point: <a href="CastleVectors.html#TVector2Single">TVector2Single</a>): boolean; override;</code></td>
</tr>
<tr><td colspan="2">
</td></tr>
</table>
<table class="detail wide_list">
<tr class="list">
<td class="visibility"><a href="legend.html"><img src="public.gif" alt="Public" title="Public"></a></td>
<td class="itemcode"><a name="AllowSuspendForInput"></a><code>function <b>AllowSuspendForInput</b>: boolean; override;</code></td>
</tr>
<tr><td colspan="2">
</td></tr>
</table>
<table class="detail wide_list">
<tr class="list">
<td class="visibility"><a href="legend.html"><img src="public.gif" alt="Public" title="Public"></a></td>
<td class="itemcode"><a name="Click"></a><code>procedure <b>Click</b>; virtual;</code></td>
</tr>
<tr><td colspan="2">
<p>
Called when user will select <a class="normal" href="CastleOnScreenMenu.TCastleOnScreenMenu.html#CurrentItem">CurrentItem</a>, either with mouse or with keyboard.</p>
</td></tr>
</table>
<table class="detail wide_list">
<tr class="list">
<td class="visibility"><a href="legend.html"><img src="public.gif" alt="Public" title="Public"></a></td>
<td class="itemcode"><a name="CurrentItemSelected"></a><code>procedure <b>CurrentItemSelected</b>; virtual; deprecated;</code></td>
</tr>
<tr><td colspan="2">
<p class="hint_directive">Warning: this symbol is deprecated.</p><p>
Deprecated name for Click.</p>
</td></tr>
</table>
<table class="detail wide_list">
<tr class="list">
<td class="visibility"><a href="legend.html"><img src="public.gif" alt="Public" title="Public"></a></td>
<td class="itemcode"><a name="AccessoryValueChanged"></a><code>procedure <b>AccessoryValueChanged</b>; virtual;</code></td>
</tr>
<tr><td colspan="2">
<p>
Called when the value of current accessory (<a class="normal" href="CastleOnScreenMenu.TMenuAccessory.html">TMenuAccessory</a> assigned to <a class="normal" href="CastleOnScreenMenu.TCastleOnScreenMenu.html#CurrentItem">CurrentItem</a>) changed its value. (Which may happen due to user clicking, or pressing some keys etc.)
<p>Note that this will not be called when you just set Value of some property.
<p>In the <a class="normal" href="CastleOnScreenMenu.TCastleOnScreenMenu.html">TCastleOnScreenMenu</a> class this just calls <a class="normal" href="CastleUIControls.TInputListener.html#VisibleChange">VisibleChange</a>, and <a class="normal" href="CastleOnScreenMenu.TCastleOnScreenMenu.html#OnAccessoryValueChanged">OnAccessoryValueChanged</a>. You can look at <a class="normal" href="CastleOnScreenMenu.TCastleOnScreenMenu.html#CurrentAccessory">CurrentAccessory</a> or (less advised) <a class="normal" href="CastleOnScreenMenu.TCastleOnScreenMenu.html#CurrentItem">CurrentItem</a> to see what changed.</p>
</td></tr>
</table>
<table class="detail wide_list">
<tr class="list">
<td class="visibility"><a href="legend.html"><img src="public.gif" alt="Public" title="Public"></a></td>
<td class="itemcode"><a name="CurrentItemAccessoryValueChanged"></a><code>procedure <b>CurrentItemAccessoryValueChanged</b>; virtual; deprecated;</code></td>
</tr>
<tr><td colspan="2">
<p class="hint_directive">Warning: this symbol is deprecated.</p><p>
Deprecated name for <a class="normal" href="CastleOnScreenMenu.TCastleOnScreenMenu.html#AccessoryValueChanged">AccessoryValueChanged</a>.</p>
</td></tr>
</table>
<table class="detail wide_list">
<tr class="list">
<td class="visibility"><a href="legend.html"><img src="public.gif" alt="Public" title="Public"></a></td>
<td class="itemcode"><a name="CurrentItemChanged"></a><code>procedure <b>CurrentItemChanged</b>; virtual;</code></td>
</tr>
<tr><td colspan="2">
<p>
Called when <a class="normal" href="CastleOnScreenMenu.TCastleOnScreenMenu.html#CurrentItem">CurrentItem</a> changed. But *not* when <a class="normal" href="CastleOnScreenMenu.TCastleOnScreenMenu.html#CurrentItem">CurrentItem</a> changed because of Items.Count changes. In this class this just calls <a class="normal" href="CastleUIControls.TInputListener.html#VisibleChange">VisibleChange</a> and plays sound <a class="normal" href="CastleSoundEngine.html#stMenuCurrentItemChanged">stMenuCurrentItemChanged</a>.</p>
</td></tr>
</table>
<table class="detail wide_list">
<tr class="list">
<td class="visibility"><a href="legend.html"><img src="public.gif" alt="Public" title="Public"></a></td>
<td class="itemcode"><a name="SpaceBetweenItems"></a><code>function <b>SpaceBetweenItems</b>(const NextItemIndex: Cardinal): Cardinal; virtual;</code></td>
</tr>
<tr><td colspan="2">
<p>
Return the space needed before NextItemIndex. This will be a space between NextItemIndex - 1 and NextItemIndex (this method will not be called for NextItemIndex = 0).
<p>Default implementation in this class simply returns <a class="normal" href="CastleOnScreenMenu.TCastleOnScreenMenu.html#RegularSpaceBetweenItems">RegularSpaceBetweenItems</a> always.
<p>Note that this is used only at <a class="normal" href="CastleOnScreenMenu.TCastleOnScreenMenu.html#FixItemsRectangles">FixItemsRectangles</a> call. So when some variable affecting the implementation of this changes, you should call <a class="normal" href="CastleOnScreenMenu.TCastleOnScreenMenu.html#FixItemsRectangles">FixItemsRectangles</a> again.</p>
</td></tr>
</table>
<h3 class="detail">Properties</h3>
<table class="detail wide_list">
<tr class="list">
<td class="visibility"><a href="legend.html"><img src="public.gif" alt="Public" title="Public"></a></td>
<td class="itemcode"><a name="PositionAbsolute"></a><code>property <b>PositionAbsolute</b>: <a href="CastleVectors.html#TVector2Integer">TVector2Integer</a> read FPositionAbsolute;</code></td>
</tr>
<tr><td colspan="2">
<p>
<code>PositionAbsolute</code> expresses the position of the menu rectangle independently from all PositionRelative* properties. You can think of it as "What value would Position have if all PositionRelative* were equal <a class="normal" href="CastleUIControls.html#hpLeft">hpLeft</a> / hpBottom".
<p>An easy exercise for the reader is to check implementation that when all PositionRelative* are <a class="normal" href="CastleUIControls.html#hpLeft">hpLeft</a>/<a class="normal" href="CastleUIControls.html#vpBottom">vpBottom</a>, <code>PositionAbsolute</code> is indeed always equal to Position :)
<p>This is read-only, is calculated by <a class="normal" href="CastleOnScreenMenu.TCastleOnScreenMenu.html#FixItemsRectangles">FixItemsRectangles</a>. It's calculated anyway because our drawing code needs this. You may find it useful if you want to draw something relative to menu position.</p>
</td></tr>
</table>
<table class="detail wide_list">
<tr class="list">
<td class="visibility"><a href="legend.html"><img src="public.gif" alt="Public" title="Public"></a></td>
<td class="itemcode"><a name="CurrentItem"></a><code>property <b>CurrentItem</b>: Integer read GetCurrentItem write SetCurrentItem;</code></td>
</tr>
<tr><td colspan="2">
<p>
When Items.Count <> 0, this is always some number between 0 and Items.Count - 1. Otherwise (when Items.Count <> 0) this is always -1.
<p>If you assign it to wrong value (breaking conditions above), or if you change Items such that conditions are broken, it will be arbitrarily fixed.
<p>Changing this calls <a class="normal" href="CastleOnScreenMenu.TCastleOnScreenMenu.html#CurrentItemChanged">CurrentItemChanged</a> automatically when needed.</p>
</td></tr>
</table>
<table class="detail wide_list">
<tr class="list">
<td class="visibility"><a href="legend.html"><img src="public.gif" alt="Public" title="Public"></a></td>
<td class="itemcode"><a name="Rectangles"></a><code>property <b>Rectangles</b>: <a href="CastleRectangles.TRectangleList.html">TRectangleList</a> read FRectangles;</code></td>
</tr>
<tr><td colspan="2">
<p>
Calculates menu items positions, sizes. These are initialized by <a class="normal" href="CastleOnScreenMenu.TCastleOnScreenMenu.html#FixItemsRectangles">FixItemsRectangles</a>. They are absolutely read-only for the user of this class. You can use them to do some graphic effects, when you e.g. want to draw something on the screen that is somehow positioned relative to some menu item or to whole menu rectangle. Note that <a class="normal" href="CastleOnScreenMenu.TCastleOnScreenMenu.html#AllItemsRectangle">AllItemsRectangle</a> includes also some outside margin. </p>
</td></tr>
</table>
<table class="detail wide_list">
<tr class="list">
<td class="visibility"><a href="legend.html"><img src="public.gif" alt="Public" title="Public"></a></td>
<td class="itemcode"><a name="AllItemsRectangle"></a><code>property <b>AllItemsRectangle</b>: <a href="CastleRectangles.TRectangle.html">TRectangle</a> read FAllItemsRectangle;</code></td>
</tr>
<tr><td colspan="2">
</td></tr>
</table>
<table class="detail wide_list">
<tr class="list">
<td class="visibility"><a href="legend.html"><img src="public.gif" alt="Public" title="Public"></a></td>
<td class="itemcode"><a name="AccessoryRectangles"></a><code>property <b>AccessoryRectangles</b>: <a href="CastleRectangles.TRectangleList.html">TRectangleList</a> read FAccessoryRectangles;</code></td>
</tr>
<tr><td colspan="2">
</td></tr>
</table>
<table class="detail wide_list">
<tr class="list">
<td class="visibility"><a href="legend.html"><img src="public.gif" alt="Public" title="Public"></a></td>
<td class="itemcode"><a name="KeyNextItem"></a><code>property <b>KeyNextItem</b>: <a href="CastleKeysMouse.html#TKey">TKey</a> read FKeyNextItem write FKeyNextItem
default <a href="CastleOnScreenMenu.TCastleOnScreenMenu.html#DefaultMenuKeyNextItem">DefaultMenuKeyNextItem</a>;</code></td>
</tr>
<tr><td colspan="2">
</td></tr>
</table>
<table class="detail wide_list">
<tr class="list">
<td class="visibility"><a href="legend.html"><img src="public.gif" alt="Public" title="Public"></a></td>
<td class="itemcode"><a name="KeyPreviousItem"></a><code>property <b>KeyPreviousItem</b>: <a href="CastleKeysMouse.html#TKey">TKey</a> read FKeyPreviousItem write FKeyPreviousItem
default <a href="CastleOnScreenMenu.TCastleOnScreenMenu.html#DefaultMenuKeyPreviousItem">DefaultMenuKeyPreviousItem</a>;</code></td>
</tr>
<tr><td colspan="2">
</td></tr>
</table>
<table class="detail wide_list">
<tr class="list">
<td class="visibility"><a href="legend.html"><img src="public.gif" alt="Public" title="Public"></a></td>
<td class="itemcode"><a name="KeySelectItem"></a><code>property <b>KeySelectItem</b>: <a href="CastleKeysMouse.html#TKey">TKey</a> read FKeySelectItem write FKeySelectItem
default <a href="CastleOnScreenMenu.TCastleOnScreenMenu.html#DefaultMenuKeySelectItem">DefaultMenuKeySelectItem</a>;</code></td>
</tr>
<tr><td colspan="2">
</td></tr>
</table>
<table class="detail wide_list">
<tr class="list">
<td class="visibility"><a href="legend.html"><img src="public.gif" alt="Public" title="Public"></a></td>
<td class="itemcode"><a name="KeySliderIncrease"></a><code>property <b>KeySliderIncrease</b>: <a href="CastleKeysMouse.html#TKey">TKey</a>
read FKeySliderIncrease write FKeySliderIncrease
default <a href="CastleOnScreenMenu.TCastleOnScreenMenu.html#DefaultMenuKeySliderIncrease">DefaultMenuKeySliderIncrease</a>;</code></td>
</tr>
<tr><td colspan="2">
</td></tr>
</table>
<table class="detail wide_list">
<tr class="list">
<td class="visibility"><a href="legend.html"><img src="public.gif" alt="Public" title="Public"></a></td>
<td class="itemcode"><a name="KeySliderDecrease"></a><code>property <b>KeySliderDecrease</b>: <a href="CastleKeysMouse.html#TKey">TKey</a>
read FKeySliderDecrease write FKeySliderDecrease
default <a href="CastleOnScreenMenu.TCastleOnScreenMenu.html#DefaultMenuKeySliderDecrease">DefaultMenuKeySliderDecrease</a>;</code></td>
</tr>
<tr><td colspan="2">
</td></tr>
</table>
<table class="detail wide_list">
<tr class="list">
<td class="visibility"><a href="legend.html"><img src="public.gif" alt="Public" title="Public"></a></td>
<td class="itemcode"><a name="CurrentItemBorderColor1"></a><code>property <b>CurrentItemBorderColor1</b>: <a href="CastleColors.html#TCastleColor">TCastleColor</a>
read FCurrentItemBorderColor1
write FCurrentItemBorderColor1;</code></td>
</tr>
<tr><td colspan="2">
<p>
Default value is <a class="normal" href="CastleOnScreenMenu.TCastleOnScreenMenu.html#DefaultCurrentItemBorderColor1">DefaultCurrentItemBorderColor1</a></p>
</td></tr>
</table>
<table class="detail wide_list">
<tr class="list">
<td class="visibility"><a href="legend.html"><img src="public.gif" alt="Public" title="Public"></a></td>
<td class="itemcode"><a name="CurrentItemBorderColor2"></a><code>property <b>CurrentItemBorderColor2</b>: <a href="CastleColors.html#TCastleColor">TCastleColor</a>
read FCurrentItemBorderColor2
write FCurrentItemBorderColor2;</code></td>
</tr>
<tr><td colspan="2">
<p>
Default value is <a class="normal" href="CastleOnScreenMenu.TCastleOnScreenMenu.html#DefaultCurrentItemBorderColor2">DefaultCurrentItemBorderColor2</a></p>
</td></tr>
</table>
<table class="detail wide_list">
<tr class="list">
<td class="visibility"><a href="legend.html"><img src="public.gif" alt="Public" title="Public"></a></td>
<td class="itemcode"><a name="CurrentItemColor"></a><code>property <b>CurrentItemColor</b> : <a href="CastleColors.html#TCastleColor">TCastleColor</a>
read FCurrentItemColor write FCurrentItemColor;</code></td>
</tr>
<tr><td colspan="2">
<p>
Default value is <a class="normal" href="CastleOnScreenMenu.TCastleOnScreenMenu.html#DefaultCurrentItemColor">DefaultCurrentItemColor</a></p>
</td></tr>
</table>
<table class="detail wide_list">
<tr class="list">
<td class="visibility"><a href="legend.html"><img src="public.gif" alt="Public" title="Public"></a></td>
<td class="itemcode"><a name="NonCurrentItemColor"></a><code>property <b>NonCurrentItemColor</b> : <a href="CastleColors.html#TCastleColor">TCastleColor</a>
read FNonCurrentItemColor write FNonCurrentItemColor;</code></td>
</tr>
<tr><td colspan="2">
<p>
Default value is <a class="normal" href="CastleOnScreenMenu.TCastleOnScreenMenu.html#DefaultNonCurrentItemColor">DefaultNonCurrentItemColor</a></p>
</td></tr>
</table>
<table class="detail wide_list">
<tr class="list">
<td class="visibility"><a href="legend.html"><img src="public.gif" alt="Public" title="Public"></a></td>
<td class="itemcode"><a name="DesignerMode"></a><code>property <b>DesignerMode</b>: boolean
read FDesignerMode write SetDesignerMode default false;</code></td>
</tr>
<tr><td colspan="2">
<p>
"Designer mode" is useful for a developer to visually design some properties of <a class="normal" href="CastleOnScreenMenu.TCastleOnScreenMenu.html">TCastleOnScreenMenu</a>.
<p><a class="normal" href="CastleUIControls.TInputListener.html#Container">Container</a> of this control will be aumatically used, we will set mouse position when entering <code>DesignerMode</code> to match current menu position. This is usually desirable (otherwise slight mouse move will immediately change menu position). To make it work, make sure <a class="normal" href="CastleUIControls.TInputListener.html#Container">Container</a> is assigned before setting <code>DesignerMode</code> to <code>True</code> — in other words, make sure you add this control to something like <a class="normal" href="CastleWindow.TCastleWindowCustom.html#Controls">TCastleWindowCustom.Controls</a> first, and only then set DesignedMode := <code>True</code>. This works assuming that you always call our Render with identity transform matrix (otherwise, this unit is not able to know how to calculate mouse position corresponding to given menu <a class="normal" href="CastleOnScreenMenu.TCastleOnScreenMenu.html#PositionAbsolute">PositionAbsolute</a>).
<p>By default, we're not in designer mode, and user has <i>no way to enter into designer mode</i>. You have to actually add some code to your program to activate designer mode. E.g. in "The Rift" game I required that user passes --debug-menu-designer command-line option and then <code>DesignerMode</code> could be toggled by F12 key press.
<p>Right now, features of designer mode: </p>
<ul class="paragraph_spacing">
<li><p>Mouse move change Position to current mouse position.</p></li>
<li><p>PositionRelative changing: </p>
<ul class="compact_spacing">
<li><p>Key X changes <a class="normal" href="CastleOnScreenMenu.TCastleOnScreenMenu.html#PositionRelativeScreenX">PositionRelativeScreenX</a> value,</p></li>
<li><p>key Y changes <a class="normal" href="CastleOnScreenMenu.TCastleOnScreenMenu.html#PositionRelativeScreenY">PositionRelativeScreenY</a> value,</p></li>
<li><p>Key <a class="normal" href="CastleStringUtils.html#CtrlX">CtrlX</a> changes <a class="normal" href="CastleOnScreenMenu.TCastleOnScreenMenu.html#PositionRelativeMenuX">PositionRelativeMenuX</a> values,</p></li>
<li><p>Key <a class="normal" href="CastleStringUtils.html#CtrlY">CtrlY</a> changes <a class="normal" href="CastleOnScreenMenu.TCastleOnScreenMenu.html#PositionRelativeMenuY">PositionRelativeMenuY</a> values.</p></li>
</ul>
<p> Also, a <a class="normal" href="CastleColors.html#White">white</a> line is drawn in designer mode, to indicate the referenced screen and menu positions. A line connects the appropriate container position (from PositionRelativeScreen) to the appropriate control position (from PositionRelativeMenu).</p></li>
<li><p><a class="normal" href="CastleStringUtils.html#CtrlB">CtrlB</a> toggles <a class="normal" href="CastleOnScreenMenu.TCastleOnScreenMenu.html#DrawBackgroundRectangle">DrawBackgroundRectangle</a>.</p></li>
<li><p>Key <a class="normal" href="CastleStringUtils.html#CtrlD">CtrlD</a> dumps current properties to StdOut. Basically, every property that can be changed from designer mode is dumped here. This is crucial function if you decide that you want to actually use the designed properties in your program, so you want to paste code setting such properties.</p></li>
</ul>
<p></p>
</td></tr>
</table>
<table class="detail wide_list">
<tr class="list">
<td class="visibility"><a href="legend.html"><img src="published.gif" alt="Published" title="Published"></a></td>
<td class="itemcode"><a name="BackgroundOpacityFocused"></a><code>property <b>BackgroundOpacityFocused</b>: Single
read FBackgroundOpacityFocused
write FBackgroundOpacityFocused
default <a href="CastleOnScreenMenu.TCastleOnScreenMenu.html#DefaultBackgroundOpacityFocused">DefaultBackgroundOpacityFocused</a>;</code></td>
</tr>
<tr><td colspan="2">
<p>
Opacity of the background rectangle (displayed when <a class="normal" href="CastleOnScreenMenu.TCastleOnScreenMenu.html#DrawBackgroundRectangle">DrawBackgroundRectangle</a>). </p>
</td></tr>
</table>
<table class="detail wide_list">
<tr class="list">
<td class="visibility"><a href="legend.html"><img src="published.gif" alt="Published" title="Published"></a></td>
<td class="itemcode"><a name="BackgroundOpacityNotFocused"></a><code>property <b>BackgroundOpacityNotFocused</b>: Single
read FBackgroundOpacityNotFocused
write FBackgroundOpacityNotFocused
default <a href="CastleOnScreenMenu.TCastleOnScreenMenu.html#DefaultBackgroundOpacityNotFocused">DefaultBackgroundOpacityNotFocused</a>;</code></td>
</tr>
<tr><td colspan="2">
</td></tr>
</table>
<table class="detail wide_list">
<tr class="list">
<td class="visibility"><a href="legend.html"><img src="published.gif" alt="Published" title="Published"></a></td>
<td class="itemcode"><a name="PositionRelativeMenuX"></a><code>property <b>PositionRelativeMenuX</b>: <a href="CastleRectangles.html#THorizontalPosition">THorizontalPosition</a>
read FPositionRelativeMenuX write FPositionRelativeMenuX
default <a href="CastleUIControls.html#hpMiddle">hpMiddle</a>;</code></td>
</tr>
<tr><td colspan="2">
<p>
See <a class="normal" href="CastleUIControls.html#TPositionRelative">TPositionRelative</a> documentation for meaning of these four PositionRelativeXxx properties. </p>
</td></tr>
</table>
<table class="detail wide_list">
<tr class="list">
<td class="visibility"><a href="legend.html"><img src="published.gif" alt="Published" title="Published"></a></td>
<td class="itemcode"><a name="PositionRelativeMenuY"></a><code>property <b>PositionRelativeMenuY</b>: <a href="CastleRectangles.html#TVerticalPosition">TVerticalPosition</a>
read FPositionRelativeMenuY write FPositionRelativeMenuY
default <a href="CastleUIControls.html#vpMiddle">vpMiddle</a>;</code></td>
</tr>
<tr><td colspan="2">
</td></tr>
</table>
<table class="detail wide_list">
<tr class="list">
<td class="visibility"><a href="legend.html"><img src="published.gif" alt="Published" title="Published"></a></td>
<td class="itemcode"><a name="PositionRelativeScreenX"></a><code>property <b>PositionRelativeScreenX</b>: <a href="CastleRectangles.html#THorizontalPosition">THorizontalPosition</a>
read FPositionRelativeScreenX write FPositionRelativeScreenX
default <a href="CastleUIControls.html#hpMiddle">hpMiddle</a>;</code></td>
</tr>
<tr><td colspan="2">
</td></tr>
</table>
<table class="detail wide_list">
<tr class="list">
<td class="visibility"><a href="legend.html"><img src="published.gif" alt="Published" title="Published"></a></td>
<td class="itemcode"><a name="PositionRelativeScreenY"></a><code>property <b>PositionRelativeScreenY</b>: <a href="CastleRectangles.html#TVerticalPosition">TVerticalPosition</a>
read FPositionRelativeScreenY write FPositionRelativeScreenY
default <a href="CastleUIControls.html#vpMiddle">vpMiddle</a>;</code></td>
</tr>
<tr><td colspan="2">
</td></tr>
</table>
<table class="detail wide_list">
<tr class="list">
<td class="visibility"><a href="legend.html"><img src="published.gif" alt="Published" title="Published"></a></td>
<td class="itemcode"><a name="DrawBackgroundRectangle"></a><code>property <b>DrawBackgroundRectangle</b>: boolean
read FDrawBackgroundRectangle write FDrawBackgroundRectangle
default true;</code></td>
</tr>
<tr><td colspan="2">
</td></tr>
</table>
<table class="detail wide_list">
<tr class="list">
<td class="visibility"><a href="legend.html"><img src="published.gif" alt="Published" title="Published"></a></td>
<td class="itemcode"><a name="RegularSpaceBetweenItems"></a><code>property <b>RegularSpaceBetweenItems</b>: Cardinal
read FRegularSpaceBetweenItems write FRegularSpaceBetweenItems
default <a href="CastleOnScreenMenu.TCastleOnScreenMenu.html#DefaultRegularSpaceBetweenItems">DefaultRegularSpaceBetweenItems</a>;</code></td>
</tr>
<tr><td colspan="2">
<p>
Additional vertical space, in pixels, between menu items.
<p>If you want more control over it (if you want to add more/less space between some menu items), override <a class="normal" href="CastleOnScreenMenu.TCastleOnScreenMenu.html#SpaceBetweenItems">SpaceBetweenItems</a> method.</p>
</td></tr>
</table>
<table class="detail wide_list">
<tr class="list">
<td class="visibility"><a href="legend.html"><img src="published.gif" alt="Published" title="Published"></a></td>
<td class="itemcode"><a name="DrawFocusedBorder"></a><code>property <b>DrawFocusedBorder</b>: boolean read FDrawFocusedBorder write FDrawFocusedBorder
default true;</code></td>
</tr>
<tr><td colspan="2">
<p>
Draw a flashing border around the menu when we are focused.</p>
</td></tr>
</table>
<table class="detail wide_list">
<tr class="list">
<td class="visibility"><a href="legend.html"><img src="published.gif" alt="Published" title="Published"></a></td>
<td class="itemcode"><a name="Items"></a><code>property <b>Items</b>: TStringList read FItems write SetItems;</code></td>
</tr>
<tr><td colspan="2">
<p>
Items of this menu.
<p>Note that Objects of this class have special meaning: they must be either nil or some <a class="normal" href="CastleOnScreenMenu.TMenuAccessory.html">TMenuAccessory</a> instance (different <a class="normal" href="CastleOnScreenMenu.TMenuAccessory.html">TMenuAccessory</a> instance for each item). When freeing this <a class="normal" href="CastleOnScreenMenu.TCastleOnScreenMenu.html">TCastleOnScreenMenu</a> instance, note that we will also free all Items.Objects.</p>
</td></tr>
</table>
<table class="detail wide_list">
<tr class="list">
<td class="visibility"><a href="legend.html"><img src="published.gif" alt="Published" title="Published"></a></td>
<td class="itemcode"><a name="OnClick"></a><code>property <b>OnClick</b>: TNotifyEvent read FOnClick write FOnClick;</code></td>
</tr>
<tr><td colspan="2">
<p>
Called when user will select <a class="normal" href="CastleOnScreenMenu.TCastleOnScreenMenu.html#CurrentItem">CurrentItem</a>. </p>
<h6 class="description_section">See also</h6>
<dl class="see_also">
<dt><a class="normal" href="CastleOnScreenMenu.TCastleOnScreenMenu.html#Click">Click</a></dt>
<dd>Called when user will select <a class="normal" href="CastleOnScreenMenu.TCastleOnScreenMenu.html#CurrentItem">CurrentItem</a>, either with mouse or with keyboard.</dd>
</dl>
</td></tr>
</table>
<table class="detail wide_list">
<tr class="list">
<td class="visibility"><a href="legend.html"><img src="published.gif" alt="Published" title="Published"></a></td>
<td class="itemcode"><a name="OnAccessoryValueChanged"></a><code>property <b>OnAccessoryValueChanged</b>: TNotifyEvent
read FOnAccessoryValueChanged
write FOnAccessoryValueChanged;</code></td>
</tr>
<tr><td colspan="2">
<p>
Called when the value of current accessory (<a class="normal" href="CastleOnScreenMenu.TMenuAccessory.html">TMenuAccessory</a> assigned to <a class="normal" href="CastleOnScreenMenu.TCastleOnScreenMenu.html#CurrentItem">CurrentItem</a>) will change value. </p>
<h6 class="description_section">See also</h6>
<dl class="see_also">
<dt><a class="normal" href="CastleOnScreenMenu.TCastleOnScreenMenu.html#AccessoryValueChanged">AccessoryValueChanged</a></dt>
<dd>Called when the value of current accessory (<a class="normal" href="CastleOnScreenMenu.TMenuAccessory.html">TMenuAccessory</a> assigned to <a class="normal" href="CastleOnScreenMenu.TCastleOnScreenMenu.html#CurrentItem">CurrentItem</a>) changed its value.</dd>
</dl>
</td></tr>
</table>
<table class="detail wide_list">
<tr class="list">
<td class="visibility"><a href="legend.html"><img src="published.gif" alt="Published" title="Published"></a></td>
<td class="itemcode"><a name="FullSize"></a><code>property <b>FullSize</b>: boolean read FFullSize write FFullSize default false;</code></td>
</tr>
<tr><td colspan="2">
<p>
Should menu intercept all key/mouse input, that is behave like it was filling full container (window or lazarus component). This affects key/mouse processing (menu processes input before all controls underneath), but not drawing (controls underneath are still visible as usual).</p>
</td></tr>
</table>
<!-- Piwik -->
<script type="text/javascript">
var _paq = _paq || [];
_paq.push(["trackPageView"]);
_paq.push(["enableLinkTracking"]);
(function() {
var u=(("https:" == document.location.protocol) ? "https" : "http") + "://michalis.ii.uni.wroc.pl/piwik-castle-engine/";
_paq.push(["setTrackerUrl", u+"piwik.php"]);
_paq.push(["setSiteId", "1"]);
var d=document, g=d.createElement("script"), s=d.getElementsByTagName("script")[0]; g.type="text/javascript";
g.defer=true; g.async=true; g.src=u+"piwik.js"; s.parentNode.insertBefore(g,s);
})();
</script>
<!-- End Piwik Code -->
<noscript>
<!-- Piwik Image Tracker -->
<img src="http://michalis.ii.uni.wroc.pl/piwik-castle-engine/piwik.php?idsite=1&rec=1" style="border:0" alt="" />
<!-- End Piwik -->
</noscript>
<hr noshade size="1"><span class="appinfo"><em>Generated by <a href="http://pasdoc.sourceforge.net/">PasDoc 0.13.0</a> on 2015-06-15 04:43:10</em>
</span>
</td></tr></table></body></html>
|