Skip to content

Commit

Permalink
create Window always on top
Browse files Browse the repository at this point in the history
  • Loading branch information
Stephan Wald authored Jan 13, 2020
1 parent 557ea81 commit dc2f68b
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/Notification.bbj
Original file line number Diff line number Diff line change
Expand Up @@ -164,7 +164,7 @@ class public Notification
method public void display(Boolean animate!)
screenbounds! = #SysGui!.getSystemMetrics().getScreenBounds()
declare BBjTopLevelWindow wnd!
wnd! = #SysGui!.addWindow(#ID!,screenbounds!.width,#y!,#width!,#height!,#title!,$01000010$)
wnd! = #SysGui!.addWindow(#ID!,screenbounds!.width,#y!,#width!,#height!,#title!,$01020010$)

if #buttons! <> null() then
if #buttons!.size() <> 0 then
Expand Down Expand Up @@ -202,10 +202,10 @@ class public Notification

rem creating a window and animating it if wished
if animate! then
#wnd!= #SysGui!.addWindow(#ID!,screenbounds!.width,#y!,#width!,#height!,#title!,$01000010$)
#wnd!= #SysGui!.addWindow(#ID!,screenbounds!.width,#y!,#width!,#height!,#title!,$01020010$)
#wnd!.setBackColor(#background!)
else
#wnd! = #SysGui!.addWindow(#ID!,#x!,#y!,#width!,#height!,#title!,$01000010$)
#wnd! = #SysGui!.addWindow(#ID!,#x!,#y!,#width!,#height!,#title!,$01020010$)
#wnd!.setBackColor(#background!)
endif

Expand Down Expand Up @@ -464,4 +464,4 @@ class public Notification
#wnd!.destroy()
fi
methodend
classend
classend

0 comments on commit dc2f68b

Please sign in to comment.