Search found 68 matches

by Danilo
Sat Jun 20, 2026 9:11 am
Forum: General Discussion
Topic: SpiderBasic 4.00 beta 1 is out !
Replies: 27
Views: 6848

Re: SpiderBasic 3.30 beta 2 is out !


But, I find it very difficult to work with images in Spiderbasic.
It's a lot of code to get just one image on the screen.


Did you try the latest SB 3.30 beta? The image loading functions have been changed,
to make usage much easier:
Procedure klik()
Debug "klik!"
EndProcedure

OpenWindow(1 ...
by Danilo
Wed May 27, 2026 5:09 pm
Forum: General Discussion
Topic: SpiderBasic 4.00 beta 1 is out !
Replies: 27
Views: 6848

Re: SpiderBasic 3.30 beta 2 is out !


It's a regression, will be fixed in beta 2. Thanks !


Thank you very much for beta2 - that was fast! 🙏🏻👍

Here the 2 examples for OpenFileRequester from the help file, modified for SB 3.30:
Procedure ButtonEvent()
Filename$ = OpenFileRequester("", #PB_Requester_MultiSelection)

; Process all ...
by Danilo
Wed May 27, 2026 7:17 am
Forum: General Discussion
Topic: SpiderBasic 4.00 beta 1 is out !
Replies: 27
Views: 6848

Re: SpiderBasic 3.30 beta 1 is out !

Thanks! All interface examples crash now. It says compiler crash.
Did interfaces change internally, or is it really a compiler crash with interfaces?

Any access to an interface member says compiler crash: txt1\Get()
by Danilo
Tue May 26, 2026 6:23 am
Forum: General Discussion
Topic: SpiderBasic 4.00 beta 1 is out !
Replies: 27
Views: 6848

Re: SpiderBasic 3.30 beta 1 is out !

Sounds good, and will make SpiderBasic easier to use! 🙏🏻
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: 1227

[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: 2187

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

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

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

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

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 ...