January 26, 2021, 05:06:29 AM
Welcome,
Guest
. Please
login
or
register
.
Did you miss your
activation email
?
1 Hour
1 Day
1 Week
1 Month
Forever
Login with username, password and session length
Home
Forum
Help
Search
Gallery
Login
Register
SyntaxBomb - Indie Coders
»
Languages & Coding
»
Blitz Code Archives
»
BlitzPlus Gui
»
[bb] NotifyImage by CS_TBL [ 1+ years ago ]
« previous
next »
Print
Pages: [
1
]
Go Down
Author
Topic: [bb] NotifyImage by CS_TBL [ 1+ years ago ] (Read 591 times)
BlitzBot
Jr. Member
Posts: 1
[bb] NotifyImage by CS_TBL [ 1+ years ago ]
«
on:
June 29, 2017, 12:28:39 AM »
Title :
NotifyImage
Author :
CS_TBL
Posted :
1+ years ago
Description :
Just a small display, made for debug-purposes only. I guess it could be worth the 5 minutes I spent on it..
Code :
Code: BlitzBasic
Function
NotifyImage
(
img
)
;
; by CS_TBL
;
FlushEvents
(
)
If
Not
img
Return
w=
256
h=
160
window=CreateWindow
(
"NotifyImage"
,ClientWidth
(
Desktop
(
)
)
/
2
-
(
w/
2
)
,ClientHeight
(
Desktop
(
)
)
/
2
-
(
h/
2
)
,w,h,
0
,
1
)
canvas=CreateCanvas
(
0
,
0
,ClientWidth
(
window
)
,ClientHeight
(
window
)
,window
)
SetBuffer
CanvasBuffer
(
canvas
)
DrawBlock
img,
0
,
0
FlipCanvas canvas
Repeat
WaitEvent
(
)
If
EventID
(
)
=$803
If
EventSource
(
)
=window notifyimagequit=
True
EndIf
Until
notifyimagequit
FreeGadget window
SetBuffer
DesktopBuffer
(
)
End Function
Comments :
none...
Logged
Print
Pages: [
1
]
Go Up
« previous
next »
SyntaxBomb - Indie Coders
»
Languages & Coding
»
Blitz Code Archives
»
BlitzPlus Gui
»
[bb] NotifyImage by CS_TBL [ 1+ years ago ]
SimplePortal 2.3.6 © 2008-2014, SimplePortal