Documentation
¶
Index ¶
Constants ¶
View Source
const ( MB_OK = 0x00000000 MB_OKCANCEL = 0x00000001 MB_YESNO = 0x00000004 MB_YESNOCANCEL = 0x00000003 // this allows to focus the created popup instead another window MB_SYSTEMMODAL = 0x00001000 )
View Source
const ( IDCANCEL = 2 IDYES = 6 IDNO = 7 )
https://docs.microsoft.com/en-us/windows/win32/api/winuser/nf-winuser-messageboxw#return-value
Variables ¶
This section is empty.
Functions ¶
func Alert ¶
Create an alert with title and message. Closes it with close button or Ok press. Returns void.
func Dialog ¶
Create a dialog that closes choosing Ok or No, returns true if Ok and false if No. Can't be closed via close button.
func LazyAlert ¶ added in v1.2.0
Create a "lazy" alert (without default focus) with title and message. Closes it with close button or Ok press. Returns void.
func LazyDialog ¶ added in v1.1.0
Create a "lazy" dialog (without default focus) that closes choosing Ok or No, returns true if Ok and false if No. Can't be closed via close button.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.