diff options
Diffstat (limited to 'doc/html/tqpopupmenu.html')
-rw-r--r-- | doc/html/tqpopupmenu.html | 30 |
1 files changed, 15 insertions, 15 deletions
diff --git a/doc/html/tqpopupmenu.html b/doc/html/tqpopupmenu.html index d6dce3d40..64d014863 100644 --- a/doc/html/tqpopupmenu.html +++ b/doc/html/tqpopupmenu.html @@ -148,7 +148,7 @@ value with each item. <p> You clear a popup menu with <a href="tqmenudata.html#clear">clear</a>() and remove single items with <a href="tqmenudata.html#removeItem">removeItem</a>() or <a href="tqmenudata.html#removeItemAt">removeItemAt</a>(). <p> A popup menu can display check marks for certain items when -enabled with <a href="#setCheckable">setCheckable</a>(TRUE). You check or uncheck items with +enabled with <a href="#setCheckable">setCheckable</a>(true). You check or uncheck items with <a href="tqmenudata.html#setItemChecked">setItemChecked</a>(). <p> Items are either enabled or disabled. You toggle their state with <a href="tqmenudata.html#setItemEnabled">setItemEnabled</a>(). Just before a popup menu becomes visible, it @@ -291,8 +291,8 @@ Draws all menu items using painter <em>p</em>. <h3 class=fn>void <a name="drawItem"></a>TQPopupMenu::drawItem ( <a href="tqpainter.html">TQPainter</a> * p, int tab_, TQMenuItem * mi, bool act, int x, int y, int w, int h )<tt> [protected]</tt> </h3> Draws menu item <em>mi</em> in the area <em>x</em>, <em>y</em>, <em>w</em>, <em>h</em>, using -painter <em>p</em>. The item is drawn active if <em>act</em> is TRUE or drawn -inactive if <em>act</em> is FALSE. The rightmost <em>tab_</em> pixels are used +painter <em>p</em>. The item is drawn active if <em>act</em> is true or drawn +inactive if <em>act</em> is false. The rightmost <em>tab_</em> pixels are used for accelerator text. <p> <p>See also <a href="tqstyle.html#drawControl">TQStyle::drawControl</a>(). @@ -638,25 +638,25 @@ handle is appended at the end of the list if <em>index</em> is negative. <p>Example: <a href="menu-example.html#x1879">menu/menu.cpp</a>. <h3 class=fn>bool <a name="isCheckable"></a>TQPopupMenu::isCheckable () const -</h3><p>Returns TRUE if the display of check marks on menu items is enabled; otherwise returns FALSE. +</h3><p>Returns true if the display of check marks on menu items is enabled; otherwise returns false. See the <a href="tqpopupmenu.html#checkable-prop">"checkable"</a> property for details. <h3 class=fn>bool <a name="isItemChecked"></a>TQMenuData::isItemChecked ( int id ) const </h3> -Returns TRUE if the menu item with the id <em>id</em> has been checked; -otherwise returns FALSE. +Returns true if the menu item with the id <em>id</em> has been checked; +otherwise returns false. <p> <p>See also <a href="tqmenudata.html#setItemChecked">setItemChecked</a>(). <p>Examples: <a href="canvas-example.html#x2938">canvas/canvas.cpp</a>, <a href="progress-example.html#x70">progress/progress.cpp</a>, and <a href="showimg-example.html#x1329">showimg/showimg.cpp</a>. <h3 class=fn>bool <a name="isItemEnabled"></a>TQMenuData::isItemEnabled ( int id ) const </h3> -Returns TRUE if the item with identifier <em>id</em> is enabled; -otherwise returns FALSE +Returns true if the item with identifier <em>id</em> is enabled; +otherwise returns false <p> <p>See also <a href="tqmenudata.html#setItemEnabled">setItemEnabled</a>() and <a href="tqmenudata.html#isItemVisible">isItemVisible</a>(). <h3 class=fn>bool <a name="isItemVisible"></a>TQMenuData::isItemVisible ( int id ) const </h3> -Returns TRUE if the menu item with the id <em>id</em> is visible; -otherwise returns FALSE. +Returns true if the menu item with the id <em>id</em> is visible; +otherwise returns false. <p> <p>See also <a href="tqmenudata.html#setItemVisible">setItemVisible</a>(). <h3 class=fn>int <a name="itemHeight"></a>TQPopupMenu::itemHeight ( int row ) const<tt> [protected]</tt> @@ -758,15 +758,15 @@ Sets the currently active item to index <em>i</em> and repaints as necessary. See the <a href="tqpopupmenu.html#checkable-prop">"checkable"</a> property for details. <h3 class=fn>void <a name="setItemChecked"></a>TQMenuData::setItemChecked ( int id, bool check ) </h3> -If <em>check</em> is TRUE, checks the menu item with id <em>id</em>; otherwise +If <em>check</em> is true, checks the menu item with id <em>id</em>; otherwise unchecks the menu item with id <em>id</em>. Calls -<a href="#setCheckable">TQPopupMenu::setCheckable</a>( TRUE ) if necessary. +<a href="#setCheckable">TQPopupMenu::setCheckable</a>( true ) if necessary. <p> <p>See also <a href="tqmenudata.html#isItemChecked">isItemChecked</a>(). <p>Examples: <a href="canvas-example.html#x2939">canvas/canvas.cpp</a>, <a href="mdi-example.html#x2032">mdi/application.cpp</a>, <a href="menu-example.html#x1872">menu/menu.cpp</a>, <a href="progress-example.html#x71">progress/progress.cpp</a>, <a href="scrollview-example.html#x636">scrollview/scrollview.cpp</a>, and <a href="showimg-example.html#x1330">showimg/showimg.cpp</a>. <h3 class=fn>void <a name="setItemEnabled"></a>TQMenuData::setItemEnabled ( int id, bool enable ) </h3> -If <em>enable</em> is TRUE, enables the menu item with identifier <em>id</em>; +If <em>enable</em> is true, enables the menu item with identifier <em>id</em>; otherwise disables the menu item with identifier <em>id</em>. <p> <p>See also <a href="tqmenudata.html#isItemEnabled">isItemEnabled</a>(). @@ -780,7 +780,7 @@ Sets the parameter of the activation signal of item <em>id</em> to <em>param</em <p>Example: <a href="mdi-example.html#x2034">mdi/application.cpp</a>. <h3 class=fn>void <a name="setItemVisible"></a>TQMenuData::setItemVisible ( int id, bool visible ) </h3> -If <em>visible</em> is TRUE, shows the menu item with id <em>id</em>; otherwise +If <em>visible</em> is true, shows the menu item with id <em>id</em>; otherwise hides the menu item with id <em>id</em>. <p> <p>See also <a href="tqmenudata.html#isItemVisible">isItemVisible</a>() and <a href="tqmenudata.html#isItemEnabled">isItemEnabled</a>(). @@ -811,7 +811,7 @@ Returns the What's This help text for the item with identifier <em>id</em> or <a <hr><h2>Property Documentation</h2> <h3 class=fn>bool <a name="checkable-prop"></a>checkable</h3> <p>This property holds whether the display of check marks on menu items is enabled. -<p>When TRUE, the display of check marks on menu items is enabled. +<p>When true, the display of check marks on menu items is enabled. Checking is always enabled when in Windows-style. <p> <p>See also <a href="tqmenudata.html#setItemChecked">TQMenuData::setItemChecked</a>(). |