MenuButton is a button with optional text, icon and/or menu marker that shows a menu when clicked with the left mouse button. All size and position values are in density independent pixels (DIP) unless otherwise indicated. Methods must be called on the browser process UI thread unless otherwise indicated. </p>
<tdclass="itemcode"><code>class function <strong><ahref="uCEFMenuButton.TCefMenuButtonRef.html#UnWrap-Pointer-">UnWrap</a></strong>(data: Pointer): <ahref="uCEFInterfaces.ICefMenuButton.html">ICefMenuButton</a>;</code></td>
Show a menu with contents |menu_model|. |screen_point| specifies the menu position in screen coordinates. |anchor_position| specifies how the menu will be anchored relative to |screen_point|. This function should be called from ICefMenuButtonDelegate.OnMenuButtonPressed(). </p>
<tdclass="itemcode"><spanid="UnWrap-Pointer-"></span><code>class function <strong>UnWrap</strong>(data: Pointer): <ahref="uCEFInterfaces.ICefMenuButton.html">ICefMenuButton</a>;</code></td>
</tr>
<tr><tdcolspan="2">
<p>
Returns a ICefMenuButton instance using a PCefMenuButton data pointer. </p>
<tdclass="itemcode"><spanid="CreateMenuButton-ICefMenuButtonDelegate-ustring-"></span><code>class function <strong>CreateMenuButton</strong>(const delegate: <ahref="uCEFInterfaces.ICefMenuButtonDelegate.html">ICefMenuButtonDelegate</a>; const text: <ahref="uCEFTypes.html#ustring">ustring</a>): <ahref="uCEFInterfaces.ICefMenuButton.html">ICefMenuButton</a>;</code></td>
</tr>
<tr><tdcolspan="2">
<p>
Create a new MenuButton. A |delegate| must be provided to call show_menu() when the button is clicked. |text| will be shown on the MenuButton and used as the default accessible name. If |with_frame| is true (1) the button will have a visible frame at all times, center alignment, additional padding and a default minimum size of 70x33 DIP. If |with_frame| is false (0) the button will only have a visible frame on hover/press, left alignment, less padding and no default minimum size. </p>