Search found 12 matches

by Webarion
Thu Sep 17, 2026 6:34 pm
Forum: Bugs Reports
Topic: SpiderBasic 3.20 does not enforce AddElement() for structured list assignment, unlike PureBasic
Replies: 2
Views: 1823

Re: SpiderBasic 3.20 does not enforce AddElement() for structured list assignment, unlike PureBasic


It's a runtime debugger error, right ?

Yes, this happens at runtime.

Structure MyMap
List MyList.i()
EndStructure

Define NewMap MyMap.MyMap()

MyMap("1")\MyList() = 1

MessageRequester("","msg")

If this code is compiled to an exe in PureBasic, it compiles successfully, but it will never ...
by Webarion
Tue Sep 15, 2026 10:54 pm
Forum: Bugs Reports
Topic: SpiderBasic 3.20 does not enforce AddElement() for structured list assignment, unlike PureBasic
Replies: 2
Views: 1823

SpiderBasic 3.20 does not enforce AddElement() for structured list assignment, unlike PureBasic

Hello, I found a discrepancy between the PureBasic and SpiderBasic compilers regarding structured dynamic lists. In PureBasic, the following code throws a compiler error because the list element must be explicitly initialized with AddElement() before assignment. However, SpiderBasic compiles it ...
by Webarion
Mon Dec 01, 2025 4:53 am
Forum: General Discussion
Topic: SpiderBasicIDE + TabBarGadget
Replies: 2
Views: 67081

Re: SpiderBasicIDE + TabBarGadget


Due to the fact that the source code is open, I compiled SpiderBasic with black tabs and made changes to the Language.pb file to make the window menu and compiler settings in my native language. See here

My standard files were always picked up automatically, I just needed to adjust a few things ...
by Webarion
Wed Nov 26, 2025 10:55 pm
Forum: Feature Requests and Wishlists
Topic: About the new native notification library for mobile apps...
Replies: 10
Views: 64754

Re: About the new native notification library for mobile apps...


Notifications seems to be a dead thing on browser, in firefox even their example here https://developer.mozilla.org/en-US/docs/Web/API/Notifications_API/Using_the_Notifications_API requiers to change an hidden setting to allow notification. I didn't seen one for like years now

According to the ...
by Webarion
Tue Nov 25, 2025 11:37 pm
Forum: Coding Questions
Topic: LibraryMaker.exe?
Replies: 10
Views: 25757

Re: LibraryMaker.exe?

LibraryMaker is a good tool for creating libraries.
I just can’t find anywhere how to create constants associated with the library so that the user can use these constants. For example:

Code: Select all

CreatePerson(0, "Paul", #Person_Group_Developer)
by Webarion
Sun Nov 23, 2025 2:40 am
Forum: Feature Requests and Wishlists
Topic: Getting parent object information in the GUI
Replies: 0
Views: 28007

Getting parent object information in the GUI

The lack of parent object information for gadgets is really frustrating. For instance, having functions like:
GetGadgetParent(#Gadget)
GetGadgetParentType(#Gadget)
This additional data would greatly help in developing extra features. Right now, I have to hook into some functions to track and log ...
by Webarion
Wed Mar 20, 2024 1:37 pm
Forum: Coding Questions
Topic: Disable Zooming
Replies: 5
Views: 8097

Re: Disable Zooming


I will add this in for all mobile app, as it makes no sens to zoom/pan an app

And now this is a big pain in applications that need scaling.
You need to make it possible to both enable scaling and disable it. Now we need to implement hacks and this does not work in the Android application on ...
by Webarion
Sun Mar 10, 2024 1:39 am
Forum: Coding Questions
Topic: Resize event in container gadgets
Replies: 4
Views: 7650

Re: Resize event in container gadgets

After some thought, I managed to bind #PB_EventType_Resize to the container gadgets. Generic example:
CompilerIf Not Defined(WBN_Handler_Canvas_Container, #PB_Constant)
#WBN_Handler_Canvas_Container = #True
!window.spider_CanvasGadget = new Proxy( window.spider_CanvasGadget, {
! apply(target ...
by Webarion
Sat Mar 09, 2024 12:36 am
Forum: Coding Questions
Topic: Parent child, previous, next gui object.
Replies: 0
Views: 16699

Parent child, previous, next gui object.

For SpiderBasic, I'm creating an algorithm similar to Dock positioning. And here I need GetParent, SetParent(Object). And also PrevObject and NextObject.
The question is how to understand the structure of parent and child objects, because the spider.window and spider.gadget objects are parallel in ...
by Webarion
Sat Mar 09, 2024 12:22 am
Forum: Coding Questions
Topic: Resize event in container gadgets
Replies: 4
Views: 7650

Re: Resize event in container gadgets


Looks like a SB bug.



The following event is supported through EventType():

#PB_EventType_Resize: The gadget has been resized.



But the constant is missing:

Debug #PB_EventType_Resize

Tested on SB 2.51 arm64


In the SpiderBasic documentation, #PB_EventType_Resize only exists for ...