4 local default
="*notifybox*"
6 local function get_box(name
)
7 return ioncore
.lookup_region(name
, "WInfoWin")
10 function notifybox
.show(message
, name
, location
, style
, scr
)
16 scr
=ioncore
.find_screen_id(0)
19 local box
=get_box(name
)
25 sizepolicy
=location
or "southeast",
30 geom
={w
=1, h
=1, x
=0, y
=0},
34 -- Hack: attach_new doesn't get geometries right if we pass msg
36 box
:set_text(message
, scr
:geom().w
)
40 function notifybox
.hide(name
)
41 local box
=get_box(name
or default
)