@mk-soft, So I changed your code a little and the problem has shown itself.
;-TOP
Procedure UpdateWindow()
Protected dx, dy
dx = WindowWidth(0)
dy = WindowHeight(0) - StatusBarHeight(0) - MenuHeight()
; Resize Gadgets
EndProcedure
Procedure Main()
Protected dx, dy, image
#WinStyle = #PB ...
Search found 12 matches
- Fri Oct 18, 2024 11:22 pm
- Forum: Windows
- Topic: ImageGadget blinking
- Replies: 9
- Views: 5051
- Fri Oct 18, 2024 5:42 pm
- Forum: Windows
- Topic: ImageGadget blinking
- Replies: 9
- Views: 5051
ImageGadget blinking
that code shows blinking:
OpenWindow(0, 0, 0, 300, 300, "test", #PB_Window_ScreenCentered)
CreateImage(0, 240, 240, 32) ; only with 32-bits depth
ImageGadget(0, 20, 20, 240, 240, 0)
Repeat
Repeat
e = WindowEvent()
If e = #PB_Event_CloseWindow
End
EndIf
Until Not e
SetGadgetState(0, ImageID(0 ...
OpenWindow(0, 0, 0, 300, 300, "test", #PB_Window_ScreenCentered)
CreateImage(0, 240, 240, 32) ; only with 32-bits depth
ImageGadget(0, 20, 20, 240, 240, 0)
Repeat
Repeat
e = WindowEvent()
If e = #PB_Event_CloseWindow
End
EndIf
Until Not e
SetGadgetState(0, ImageID(0 ...
- Thu Aug 29, 2019 5:34 am
- Forum: Coding Questions
- Topic: Thread BUG?
- Replies: 3
- Views: 1028
Re: Thread BUG?
Sorry, ok 

- Wed Aug 28, 2019 7:33 pm
- Forum: Coding Questions
- Topic: Thread BUG?
- Replies: 3
- Views: 1028
Thread BUG?
Global test.l
Procedure AlertThread(Parameter)
Repeat
test + 1
Debug "1: " + str(test)
Delay(2000)
ForEver
EndProcedure
CreateThread(@AlertThread(), 0)
Repeat
Debug "2: " + str(test)
Delay(2000)
ForEver
Displayed
2: 0
1: 1
2: 11潳䱲瑥整ㅲ
1: 2
1: 32‱‽റ㬊䌠
2: 3
2: 1:
2: 1:
1: 52
2: 5
This is ...
- Wed Feb 20, 2019 6:31 pm
- Forum: General Discussion
- Topic: The "100 < 1.1*1" problem
- Replies: 5
- Views: 2973
The "100 < 1.1*1" problem
Code: Select all
Global.L x
x = 100
If x < 1.0*1
Debug "100 < 1.0*1"
Endif
If x < 1.1*1
Debug "100 < 1.1*1"
Endif
- Sat Sep 01, 2018 11:34 am
- Forum: General Discussion
- Topic: Buyed PB and can't download.
- Replies: 6
- Views: 2447
Re: Buyed PB and can't download.
You have purchased PB, but your online account may not yet be activated. Did you get a separate e-mail for the access data?
No, I did not. How much should I wait?
After you've paid the registration fee you will get your package in about 20 minutes as all is processed automatically. Be sure to ...
No, I did not. How much should I wait?
After you've paid the registration fee you will get your package in about 20 minutes as all is processed automatically. Be sure to ...
- Sat Sep 01, 2018 8:49 am
- Forum: General Discussion
- Topic: Buyed PB and can't download.
- Replies: 6
- Views: 2447
Buyed PB and can't download.
I bought yesterday 1 license and since i can't download PB - I not see any mails with password to my login, and if I request password, then:
https://www.dropbox.com/s/s0vlgr451q91hlc/Screen%20003.PNG?dl=1
https://www.dropbox.com/s/07llxtexpu9z233/Screen%20002.PNG?dl=1
But i have e-mail:
https ...
https://www.dropbox.com/s/s0vlgr451q91hlc/Screen%20003.PNG?dl=1
https://www.dropbox.com/s/07llxtexpu9z233/Screen%20002.PNG?dl=1
But i have e-mail:
https ...
- Wed Dec 25, 2013 5:28 am
- Forum: 3D Programming
- Topic: PerPixel Shader
- Replies: 9
- Views: 5012
Re: PerPixel Shader
Is it possible to also use custom generated cube maps, refraction, deferred shading? 

- Wed Dec 25, 2013 5:19 am
- Forum: Feature Requests and Wishlists
- Topic: Ogre: Projective Decals
- Replies: 3
- Views: 3011
Re: Ogre: Projective Decals
Likely, you can do everything with shaders that support OGRE.
- Tue Nov 19, 2013 5:15 pm
- Forum: Off Topic
- Topic: COMatePLUS - how to read messages in skype?
- Replies: 2
- Views: 1892
COMatePLUS - how to read messages in skype?
I send messages with this code:
XIncludeFile "Com\COMatePLUS.pbi"
Define.COMateObject oSkype, oCall
oSkype = COMate_CreateObject("Skype4COM.Skype")
If oSkype
For n = 1 To 10
MessageMy.s = StrF( n)
oCall = oSkype\GetObjectProperty("SendMessage('test_skyper', '" + MessageMy + "')")
If oCall ...
XIncludeFile "Com\COMatePLUS.pbi"
Define.COMateObject oSkype, oCall
oSkype = COMate_CreateObject("Skype4COM.Skype")
If oSkype
For n = 1 To 10
MessageMy.s = StrF( n)
oCall = oSkype\GetObjectProperty("SendMessage('test_skyper', '" + MessageMy + "')")
If oCall ...
- Tue Jul 09, 2013 3:48 pm
- Forum: Feature Requests and Wishlists
- Topic: OGRE - mesh tangents
- Replies: 0
- Views: 820
OGRE - mesh tangents
Now for create a mesh using it:
add like:
This is necessary to correct the shading using the tangent space
Code: Select all
MeshVertexColor
MeshVertexCount
MeshVertexNormal
MeshVertexPosition
MeshVertexTextureCoordinate
Code: Select all
MeshVertexTangent
- Fri Jun 21, 2013 2:51 pm
- Forum: 3D Programming
- Topic: Good method to create Cube Map Texture
- Replies: 0
- Views: 1363
Good method to create Cube Map Texture
I would like to see in the new version made possible such as the following:
tr_1 = CreateRenderTexture(#PB_Any, CameraID (camera), W, H, #PB_Texture_ManualUpdate)
tr_2 = CreateRenderTexture(#PB_Any, CameraID (camera), W, H, #PB_Texture_ManualUpdate)
[...]
tr_6 = CreateRenderTexture(#PB_Any ...
tr_1 = CreateRenderTexture(#PB_Any, CameraID (camera), W, H, #PB_Texture_ManualUpdate)
tr_2 = CreateRenderTexture(#PB_Any, CameraID (camera), W, H, #PB_Texture_ManualUpdate)
[...]
tr_6 = CreateRenderTexture(#PB_Any ...