FutureBasic Logo

<<    Index    >> FutureBasic

popover   statement



Syntax
popover tag, rect, behavior, animates

Description
The popover statement creates a new popover, or alters an existing popover's characteristics.

Parameters
Parameter
Description
tag A number (1 through 1000000) that you assign when you create the popover and that you refer to when altering the popover. The number you assign must be different from the tag value of all other existing popovers, windows and panels. A negative tag closes the popover.
rect The popover rect. This can be specified in either of two ways:
(i) (x,y,w,h) where x,y are the origin and w,h the size of the popover.
(ii) A CGRect value
behavior Specifies the behavior of the popover.
NSPopoverBehaviorApplicationDefined (default)
NSPopoverBehaviorTransient
NSPopoverBehaviorSemitransient
animates A boolean value which specifies if the popover is to be animated (default = false).
 
Dialog events
_popoverDetachableWindow
_popoverShouldClose
_popoverWillShow
_popoverDidShow
_popoverWillClose
_popoverDidClose
_popoverDidDetach // macOS 10.10+
_popoverShouldDetach // macOS 10.10+
 

Apple documentation
NSPopover