window-menu

command
v3.0.0-alpha.49 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Dec 18, 2025 License: MIT Imports: 3 Imported by: 0

README

Window Menu Example

*** Windows Only ***

This example demonstrates how to create a window with a menu bar that can be toggled using the window.ToggleMenuBar() method.

Features

  • Default menu bar with File, Edit, and Help menus
  • F1 key to toggle menu bar visibility
  • Simple HTML interface with instructions

Running the Example

cd v3/examples/window-menu
go run .

How it Works

The example creates a window with a default menu and binds the F1 key to toggle the menu bar's visibility. The menu bar will show when F2 is pressed and hide when F3 is released.

Note: The menu bar toggling functionality only works on Windows. On other platforms, the F1 key binding will have no effect.

Documentation

The Go Gopher

There is no documentation for this package.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL