-
This commit is contained in:
@@ -492,6 +492,12 @@ Associate a callback @racket[cb] with a menu item id. When the menu
|
||||
item is activated, the callback is called.
|
||||
}
|
||||
|
||||
@defmethod[(popup-menu [menu-def is-menu?]) void?]{
|
||||
Pops up a contextmenu at the current cursor position.
|
||||
The menu is created using a structure created with the helpers from
|
||||
@racket["menu.rkt"].}
|
||||
|
||||
|
||||
@bold{HTML and navigation}
|
||||
|
||||
@defmethod[(set-icon! [icn (or/c path? string?)]) void?]{
|
||||
|
||||
@@ -370,6 +370,24 @@ The @racket[menu] value is a menu structure as defined in
|
||||
@racket["menu.rkt"].
|
||||
}
|
||||
|
||||
@defproc[(ww-popup-menu [win-id ww-win?]
|
||||
[menu is-menu?])
|
||||
void?]{
|
||||
|
||||
Pops up a (context) menu at the current cursor position:
|
||||
|
||||
@racketblock[
|
||||
(def-cmd ww-popup-menu
|
||||
set-menu ((win-id ww-win?)
|
||||
(menu is-menu?)) [] -> void)
|
||||
]
|
||||
|
||||
The @racket[menu] value is a menu structure as defined in
|
||||
@racket["menu.rkt"].
|
||||
}
|
||||
|
||||
|
||||
|
||||
@defproc[(ww-set-show-state [win-id ww-win?]
|
||||
[state symbol?])
|
||||
void?]{
|
||||
|
||||
Reference in New Issue
Block a user