Search found 10 matches

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

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 3:20 am
Forum: Bugs Reports
Topic: SB3.10 The #PB_EventType_Resize event for ScrollAreaGadget does not work
Replies: 1
Views: 94

Re: SB3.10 The #PB_EventType_Resize event for ScrollAreaGadget does not work

Temporary patch until this is resolved:
Define PB_EventType_Resize = #PB_EventType_Resize
Define ScrollAreaGadgetType = #PB_GadgetType_ScrollArea
!var orig_BindGadgetEvent = window.spider_BindGadgetEvent;
!window.spider_BindGadgetEvent = function(gadgetID, callback, eventType) {
! orig ...
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: 43

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
Sun Nov 23, 2025 2:20 am
Forum: Bugs Reports
Topic: SB3.10 The #PB_EventType_Resize event for ScrollAreaGadget does not work
Replies: 1
Views: 94

SB3.10 The #PB_EventType_Resize event for ScrollAreaGadget does not work

For other container gadgets, this has been fixed, but still does not work for ScrollAreaGadget:
Debug "#PB_EventType_Resize = " + #PB_EventType_Resize

Procedure _EventGadget()
Debug "EventType " + EventType()
EndProcedure

Procedure _EventWindow()
ResizeGadget( 0, 10, 10, WindowWidth(0)-20 ...
by Webarion
Wed Mar 20, 2024 1:37 pm
Forum: Coding Questions
Topic: Disable Zooming
Replies: 5
Views: 6881

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: 5622

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: 12207

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: 5622

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 ...
by Webarion
Fri Mar 08, 2024 11:52 pm
Forum: Feature Requests and Wishlists
Topic: [Implemented] Resize event in container gadgets
Replies: 0
Views: 14280

[Implemented] Resize event in container gadgets

It is not clear to me why the #PB_EventType_Resize event was removed from ContainerGadget, PanelGadget, ScrollAreaGadget, CanvasGadget?
This is very necessary!
Enumeration
#Container1
#Container2
#Button
#Splitter
EndEnumeration

Procedure _EventResizeContainer()
Protected EvType = EventType ...
by Webarion
Mon Mar 04, 2024 11:08 pm
Forum: Coding Questions
Topic: Resize event in container gadgets
Replies: 4
Views: 5622

Resize event in container gadgets

It is not clear to me why the #PB_EventType_Resize event was removed from ContainerGadget, PanelGadget, ScrollAreaGadget, CanvasGadget?
This is very necessary!
Enumeration
#Container1
#Container2
#Button
#Splitter
EndEnumeration

Procedure _EventResizeContainer()
Protected EvType = EventType ...