Ver: 6.30
#PB_2DDrawing_XOr drawing on Windowoutput
Xor function seems to work, colors however are all reset to black !!!!!
If OpenWindow(0, 0, 0, 200, 200, "2DDrawing Example", #PB_Window_SystemMenu | #PB_Window_ScreenCentered)
;If CreateImage(0, 200, 200) And StartDrawing(ImageOutput(0))
If ...
Search found 66 matches
- Fri Jan 23, 2026 12:55 am
- Forum: Bugs - Windows
- Topic: #PB_2DDrawing_XOr problem
- Replies: 2
- Views: 221
- Tue Nov 04, 2025 3:36 pm
- Forum: Coding Questions
- Topic: events lost in tranparent window
- Replies: 5
- Views: 1409
Re: events lost in tranparent window
I already had my own workarround BUT the tip of ChisR (borderless window) totally solves my problem.
I would not even have tried this EVER because I do not see the relation between 'borderless window' and losing some events ???????
A bug... or inconsistent windows behavier ??????
Anyway thank you ...
I would not even have tried this EVER because I do not see the relation between 'borderless window' and losing some events ???????
A bug... or inconsistent windows behavier ??????
Anyway thank you ...
- Thu Oct 16, 2025 1:14 am
- Forum: Coding Questions
- Topic: events lost in tranparent window
- Replies: 5
- Views: 1409
events lost in tranparent window
Hello i am trying to create a transparent window that contains buttons. Transparency is needed because the buttons control the image behind the window. (see image: https://photos.app.goo.gl/bMBo2dhqeButYnzYA )
Every button should fire an event and when clicking in the middle of the window underneath ...
Every button should fire an event and when clicking in the middle of the window underneath ...
- Sat Mar 08, 2025 12:03 am
- Forum: Coding Questions
- Topic: ReceiveHTTPMemory
- Replies: 11
- Views: 1596
Re: ReceiveHTTPMemory
ReceiveHTTPMemory() is giving you the exact data it received from the server... I think it's OK as-is.
You can go one step further and check the HTTP StatusCode, here is a helper function:
Procedure.i ReceiveHTTPMemoryStrict(URL.s, Flags.i = 0, UserAgent.s = "")
Protected *Buffer = #Null
If ...
- Fri Mar 07, 2025 11:23 pm
- Forum: Coding Questions
- Topic: ReceiveHTTPMemory
- Replies: 11
- Views: 1596
Re: ReceiveHTTPMemory
the calling routine is
DrawImage(ImageID(CatchImage(#PB_Any,get_image())),0,0)
Are you aware that this is a memory leak?
`CatchImage(#PB_Any, ...)` returns a freshly created object that is never stored in a variable. So you will never be able to use `FreeImage()` with it. So if that line is ...
- Fri Mar 07, 2025 1:07 am
- Forum: Coding Questions
- Topic: ReceiveHTTPMemory
- Replies: 11
- Views: 1596
Re: ReceiveHTTPMemory
If *Buffer always fires even if the file is not found.... normally the ]Buffer should be 0
It is "guilty" because there is something in this *Buffer... Image or not. Now it is on the developer to do something with it.
Thats why I try to use "Catchimage". This is the test, if it is a 404 HTTP ...
- Thu Mar 06, 2025 10:34 pm
- Forum: Coding Questions
- Topic: ReceiveHTTPMemory
- Replies: 11
- Views: 1596
Re: ReceiveHTTPMemory
Thanks thorium,
I already worked around like below.
Procedure.i GetImagePointer(File.s)
Define *Buffer = ReceiveHTTPMemory("https://www.listrik.be/ListrikTheme/" + File, #PB_HTTP_NoRedirect)
If FindString(PeekS(*Buffer, MemorySize(*Buffer), #PB_UTF8), "404 Not Found") > 0
Debug LoadImage(#PB_Any ...
I already worked around like below.
Procedure.i GetImagePointer(File.s)
Define *Buffer = ReceiveHTTPMemory("https://www.listrik.be/ListrikTheme/" + File, #PB_HTTP_NoRedirect)
If FindString(PeekS(*Buffer, MemorySize(*Buffer), #PB_UTF8), "404 Not Found") > 0
Debug LoadImage(#PB_Any ...
- Tue Mar 04, 2025 11:29 pm
- Forum: Coding Questions
- Topic: ReceiveHTTPMemory
- Replies: 11
- Views: 1596
Re: ReceiveHTTPMemory
Hi, thanks for your reply
the calling routine is
DrawImage(ImageID(CatchImage(#PB_Any,get_image())),0,0)
If the image is found then a it is in memory
If not found on the server the image is loaded locally from disk and the put in memory.
in both cases I return a pointer to the catchimage routine ...
the calling routine is
DrawImage(ImageID(CatchImage(#PB_Any,get_image())),0,0)
If the image is found then a it is in memory
If not found on the server the image is loaded locally from disk and the put in memory.
in both cases I return a pointer to the catchimage routine ...
- Tue Mar 04, 2025 10:56 pm
- Forum: Coding Questions
- Topic: ReceiveHTTPMemory
- Replies: 11
- Views: 1596
ReceiveHTTPMemory
Hello,
The following lines is returning a *Buffer while it should return 0 (the URL exists but the map BUTTONS does not)
The buffer in memory contains
<title>404 Not Found</title>
</head><body>
<h1>Not Found</h1>
<p>The requested URL was not found on this server.</p>
<p>Additionally, a 404 Not ...
The following lines is returning a *Buffer while it should return 0 (the URL exists but the map BUTTONS does not)
The buffer in memory contains
<title>404 Not Found</title>
</head><body>
<h1>Not Found</h1>
<p>The requested URL was not found on this server.</p>
<p>Additionally, a 404 Not ...
- Tue Jan 28, 2025 9:47 pm
- Forum: Applications - Feedback and Discussion
- Topic: IceDesign GUI designer
- Replies: 769
- Views: 346417
Re: IceDesign GUI designer
Chris,
It is fixed, thanks for the quick action.
It is fixed, thanks for the quick action.
- Tue Jan 28, 2025 6:17 pm
- Forum: Applications - Feedback and Discussion
- Topic: IceDesign GUI designer
- Replies: 769
- Views: 346417
Re: IceDesign GUI designer
Hi chris
Version 2.3.4 always set Container_Raised = checked
You can uncheck it but after saving and reloading it is checked again
I updated about 23 designs and all the ones having a container now are raised ??
Version 2.3.4 always set Container_Raised = checked
You can uncheck it but after saving and reloading it is checked again
I updated about 23 designs and all the ones having a container now are raised ??
- Thu Jul 25, 2024 1:56 am
- Forum: 3D Programming
- Topic: CreateEntity() failing
- Replies: 4
- Views: 4574
Re: CreateEntity() failing
Minimy,
I already found another way around, I simply used a cube entity to form a line.
But the explanation with the invisible Entity as container for some other visible entitys is usefull for another problem I have.
Thanks.
I already found another way around, I simply used a cube entity to form a line.
But the explanation with the invisible Entity as container for some other visible entitys is usefull for another problem I have.
Thanks.
- Sat Jul 13, 2024 9:36 pm
- Forum: Bugs - Documentation
- Topic: RayPick()
- Replies: 1
- Views: 2838
RayPick()
I am reporting an error in the 'PureBasic help' because i have been strugling for 3 days before I found the reason of strange behaviour
The helpfile says
Result = RayPick(x, y, z, DestinationX, DestinationY, DestinationZ [, PickMask])
This is not correct
Raypic() needs a direction NOT an endpoint ...
The helpfile says
Result = RayPick(x, y, z, DestinationX, DestinationY, DestinationZ [, PickMask])
This is not correct
Raypic() needs a direction NOT an endpoint ...
- Tue Jul 09, 2024 1:48 am
- Forum: 3D Programming
- Topic: CreateEntity() failing
- Replies: 4
- Views: 4574
Re: CreateEntity() failing
Thanks minimy
Confusing dough, helpfile clearly says a line3d is a mesh. So assumed that an Entity could be created from it.
I need the Entity because I need a visibility mask to NOT let it show on all cameras
The way you do it works, but .... I am losing the visibility mask and the line is shown on ...
Confusing dough, helpfile clearly says a line3d is a mesh. So assumed that an Entity could be created from it.
I need the Entity because I need a visibility mask to NOT let it show on all cameras
The way you do it works, but .... I am losing the visibility mask and the line is shown on ...
- Mon Jul 08, 2024 10:02 pm
- Forum: 3D Programming
- Topic: CreateEntity() failing
- Replies: 4
- Views: 4574
CreateEntity() failing
Hello,
Does someone know why the ENT = CreateEntity(#PB_Any, MeshID(LIN), #PB_Material_None,0,0,0,-1,#Mask2) does not work in the below example code ?
Thanks in advance
#Mask1 = 1 << 0 ;binary 1
#Mask2 = 1 << 1 ;binary 2
InitEngine3D()
InitSprite()
OpenWindow(0, 0, 0, 640, 480, "Line3D ...
Does someone know why the ENT = CreateEntity(#PB_Any, MeshID(LIN), #PB_Material_None,0,0,0,-1,#Mask2) does not work in the below example code ?
Thanks in advance
#Mask1 = 1 << 0 ;binary 1
#Mask2 = 1 << 1 ;binary 2
InitEngine3D()
InitSprite()
OpenWindow(0, 0, 0, 640, 480, "Line3D ...