Search found 64 matches

by Danilo
Mon May 11, 2026 12:48 am
Forum: Coding Questions
Topic: [Editor Tool] Set Help Colors for PureBasic & SpiderBasic on macOS
Replies: 1
Views: 66

[Editor Tool] Set Help Colors for PureBasic & SpiderBasic on macOS

Small IDE tool for changing the help colors of the PureBasic & SpiderBasic HTML help on macOS. Because I needed dark colors.

https://i.imgur.com/vDDJXvz.png

https://i.imgur.com/aVzcZCi.png

The IDE tool requires PureBasic on macOS for compilation, and can be used with the SpiderBasic IDE on ...
by Danilo
Tue May 05, 2026 8:16 am
Forum: Coding Questions
Topic: Text Input on Mobile
Replies: 3
Views: 164

Re: Text Input on Mobile


HtmlMobile("<textarea id='txt1' name='txt1' rows='4' cols='50'></textarea>")
but then how to get the text from it like GetMobileText(#Mobile) command?


You can set and get the text using the .value property:
Procedure SetTextAreaText(id.s, text.s)
!var textarea = document.getElementById(v_id ...
by Danilo
Mon Apr 27, 2026 4:27 pm
Forum: Coding Questions
Topic: TreeGadget Font & Color
Replies: 4
Views: 7176

Re: TreeGadget Font & Color

This seems to work a little bit, but i don‘t know why:
; modify the theme by code
;
; https://forums.spiderbasic.com/viewtopic.php?f=6&t=1405
Procedure SetNewStyle()

! var elHead = document.getElementsByTagName('head')[0];
! var elStyle = document.createElement('style');
! elStyle.type= 'text/css ...
by Danilo
Sun Apr 26, 2026 11:27 am
Forum: Tricks 'n' Tips
Topic: Load JS library before SB libs
Replies: 4
Views: 273

Re: Load JS library before SB libs

There is a more direct way of loading Babylon.js and other libs, by hiding define:
Global nLoaded
Global nImports = 1

Procedure BabylonAvailable()
Protected result=0
!try {
! var testingBabylonNamespace = new BABYLON.NullEngine();
result = #True
!} catch {
result = #False ...
by Danilo
Sun Apr 26, 2026 11:22 am
Forum: Coding Questions
Topic: How to embed a Babylon.js+HtmlProcessor view inside a SpiderBasic window/container?
Replies: 2
Views: 675

Re: How to embed a Babylon.js+HtmlProcessor view inside a SpiderBasic window/container?

There is a direct way of using Babylon.js:
Global nLoaded
Global nImports = 1

Enumeration
#Janela
#Container3D
#BotaoInfo
EndEnumeration

;
; https://forums.spiderbasic.com/viewtopic.php?t=3763
;
Procedure IniciarBabylon(id)
; // set container name
!v_id.div.id = 'babylon_container ...
by Danilo
Sun Apr 26, 2026 6:13 am
Forum: Coding Questions
Topic: How to embed a Babylon.js+HtmlProcessor view inside a SpiderBasic window/container?
Replies: 2
Views: 675

Re: How to embed a Babylon.js+HtmlProcessor view inside a SpiderBasic window/container?

someone know how can i do it ?


Change the first lines of your procedure to:
Procedure IniciarBabylon(id)
; // set container name
!v_id.div.id = 'babylon_container';
EnableJS
var idContainer = v_id;
function tentarIniciar() {
var container = document.getElementById('babylon_container ...
by Danilo
Sun Apr 26, 2026 2:26 am
Forum: Coding Questions
Topic: Babylon.js
Replies: 8
Views: 13401

Re: Babylon.js

Have you found a solution for working with babylonjs in spiderbasic without resorting to "hacks"?

@skinkairewalker
Babylon.js needs to be loaded before SB libs.

Here is an example: Load JS library before SB libs

Itˋs still a hack, but works standalone, without using external tools.


Hello,
I ...
by Danilo
Sat Apr 25, 2026 4:34 pm
Forum: Tricks 'n' Tips
Topic: Load JS library before SB libs
Replies: 4
Views: 273

Load JS library before SB libs

In the following example we load Babylon.js before SpiderBasic libs.

1.) We get the page source (incl. head and body)
2.) We add the new library in front of SpiderBasic libs
3.) We restart with the modified page source, inside a new iframe

I think it‘s okay for developing. In the final release we ...
by Danilo
Sat Apr 25, 2026 11:54 am
Forum: Coding Questions
Topic: systemmenu closes all windows at once
Replies: 2
Views: 109

Re: systemmenu closes all windows at once

Add the Window parameter to BindEvent in the modules (frmKlanten and other):

Code: Select all

 BindEvent(#PB_Event_CloseWindow,@OnClose(), Window)
So the event is only send to this specific window.

Currently the close event fires for all your child-windows.
by Danilo
Sat Apr 25, 2026 6:33 am
Forum: Tricks 'n' Tips
Topic: WaveSurfer for SB
Replies: 4
Views: 177

Re: WaveSurfer for SB

404 - wrapper not accessible.