Search found 224 matches

by falsam
Fri Sep 05, 2025 7:09 pm
Forum: Coding Questions
Topic: Gadget longpress detection
Replies: 2
Views: 33881

Re: Gadget longpress detection

I like this question. Here is one possible answer using a little JavaScript to handle the “mousedown” and “mouseup” events.

The long press is set to 3 seconds, which you can change in the onMouseDown() procedure.

For fun, after pressing and holding for 3 seconds, the code displays a window showing ...
by falsam
Fri Sep 05, 2025 5:58 pm
Forum: Coding Questions
Topic: GetGadgetState() error on the ListIconGadget header.
Replies: 0
Views: 15728

GetGadgetState() error on the ListIconGadget header.

Procedure foo()
Debug "item " + GetGadgetState(0)
EndProcedure

If OpenWindow(0, 100, 100, 300, 150, "ListIcon Example", #PB_Window_SystemMenu | #PB_Window_ScreenCentered)
ListIconGadget(0, 5, 5, 290, 90, "Name", 100)
AddGadgetColumn(0, 1, "Address", 250)
AddGadgetItem(0, -1, "Harry Rannit"+Chr ...
by falsam
Wed Jun 04, 2025 8:53 am
Forum: Coding Questions
Topic: Identification PIXIJS of a sprite
Replies: 1
Views: 12268

Identification PIXIJS of a sprite

Hello

How can I get the PixiJS object from a sprite?

For example, I'd like to perform a vertical and/or horizontal split, change the anchor point, etc. ...

More generally, I'd like to be able to use PIXIJS functionalities on these sprites.

I hope this is possible. Here's some basic code. For ...
by falsam
Tue Jun 03, 2025 2:59 pm
Forum: General Discussion
Topic: SpiderBasic 3.10 is out !
Replies: 25
Views: 52971

Re: SpiderBasic 3.10 beta 1 is ready !

Fred wrote: Mon Jun 02, 2025 1:52 pm
Peter wrote: Mon Jun 02, 2025 11:43 am Thanks for the new version! 👍

What are the chances that this feature request will also be included in the new version?

Add javascript and CSS scripts in the compilation options.
I will try to add it.
Thanks Fred 👍
by falsam
Tue Mar 25, 2025 8:53 am
Forum: Feature Requests and Wishlists
Topic: [Implemented] Add javascript and CSS scripts in the compilation options.
Replies: 5
Views: 83174

[Implemented] Add javascript and CSS scripts in the compilation options.

Hello.
The LoadScript() function does not work with some Javascript scripts.

For example, this code returns the message “BABYLON is not defined”.


Declare Start()

Procedure Start()
!if (BABYLON.Engine.isSupported()) {
!}
EndProcedure

LoadScript("https://cdn.babylonjs.com/babylon.js ...
by falsam
Tue Jan 14, 2025 9:04 am
Forum: Coding Questions
Topic: Tutorial?
Replies: 7
Views: 17290

Re: Tutorial?

Without installing Spiderbasic, you can test each example by clicking on the play button.

https://www.spiderbasic.com/showcase/onlineviewer/
by falsam
Sat Oct 05, 2024 4:51 pm
Forum: Coding Questions
Topic: HTML in ListIconGadget
Replies: 4
Views: 9328

Re: HTML in ListIconGadget

Hello,
Without a ListIconGadget ( Yes I'm off topic 🤪), it is possible to create a page containing a list of clickable items.

To do this, I'm using SpiderBasic version 3.01 and its mobile features, which also work with a browser.

Here's the code I'd like you to try out.

CloseDebugOutput()

If ...
by falsam
Thu Sep 05, 2024 7:53 am
Forum: Coding Questions
Topic: function JavaScript not recognized.
Replies: 0
Views: 18717

function JavaScript not recognized.

Hello.
What a pleasure to submit a code that doesn't work on Android 😉

■ I'm testing the creation of a text file on Android with the Cordova-plugin-file.

The plugin is initialized correctly.

■ Here's the problem.
This line calls a JavaScript function on success that is not recognized. ! window ...
by falsam
Mon Feb 27, 2023 11:04 pm
Forum: Coding Questions
Topic: SpiderBasic and netradio url.
Replies: 7
Views: 8163

Re: SpiderBasic and netradio url.

Great job Peter :geek:
by falsam
Tue Sep 07, 2021 9:44 am
Forum: Coding Questions
Topic: SendMessage_(GadgetID(#Iban_1), #EM_SETSEL, 0, -1)
Replies: 1
Views: 3806

Re: SendMessage_(GadgetID(#Iban_1), #EM_SETSEL, 0, -1)

Procedure GadgetSelectionRange(gadget, startPos, endPos)
Protected g = GadgetID(gadget)

SetActiveGadget(gadget)

! const input = document.getElementById(v_g.gadget.id);
! input.setSelectionRange(v_startpos, v_endpos);
EndProcedure

Enumeration
#mf
#mfString1
#mfString2
EndEnumeration ...