Page 2 of 3

Re: SpiderBasic 3.30 beta 1 is out !

Posted: Wed May 27, 2026 7:43 am
by Fred
It's a regression, will be fixed in beta 2. Thanks !

Re: SpiderBasic 3.30 beta 1 is out !

Posted: Wed May 27, 2026 7:44 am
by hoerbie
Thanks, now the Beta 1 is downloadable. Will have a look in the next days.

Re: SpiderBasic 3.30 beta 2 is out !

Posted: Wed May 27, 2026 10:22 am
by Fred
- 2026-05-27: beta 2 is out, with some bug fixes, and a new DateUTC() function.

Re: SpiderBasic 3.30 beta 2 is out !

Posted: Wed May 27, 2026 1:23 pm
by bembulak
Fred wrote: Wed May 27, 2026 10:22 am - 2026-05-27: beta 2 is out, with some bug fixes, and a new DateUTC() function.
Great news, thank you!

Re: SpiderBasic 3.30 beta 2 is out !

Posted: Wed May 27, 2026 5:09 pm
by Danilo
Fred wrote: Wed May 27, 2026 7:43 am 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:

Code: Select all

Procedure ButtonEvent()
  Filename$ = OpenFileRequester("", #PB_Requester_MultiSelection)
  	
  ; Process all the selected filename
  ;
  While Filename$
    Debug "Filename: " + Filename$
    Filename$ = NextSelectedFilename()
  Wend
EndProcedure
    
OpenWindow(0, 100, 100, 200, 55, "File")
ButtonGadget(0, 10, 10, 170, 25, "Open local file...")
BindGadgetEvent(0, @ButtonEvent())

Code: Select all

Procedure ButtonEvent()
  Filename$ = OpenFileRequester("")
  If Filename$
    Image = LoadImage(#PB_Any, Filename$, #PB_LocalFile)
    If Image
      ; Display the image in a new window
      OpenWindow(#PB_Any, 10, 10, 300, 300, "Image", #PB_Window_SizeGadget)
      ImageGadget(#PB_Any, 0, 0, ImageWidth(Image), ImageHeight(Image), ImageID(Image))
    EndIf
  EndIf
EndProcedure

OpenWindow(0, 100, 100, 200, 55, "File")
ButtonGadget(0, 10, 10, 170, 25, "Open local file...")
BindGadgetEvent(0, @ButtonEvent())
SB 3.30 beta is incompatible to SB 3.20. Maybe it‘s better to go to version number SB 4.0?
For example, old:

Code: Select all

OpenFileRequester(Pattern$, Callback)
Still runs, but means now

Code: Select all

OpenFileRequester(Pattern$, #PB_Requester_MultiSelection)
and fails silently.

Many codes need to be changed, so a new version number would be reasonable/justified. It‘s a major change.

Re: SpiderBasic 3.30 beta 2 is out !

Posted: Thu May 28, 2026 8:40 am
by Fred
Makes sense, once all is up and running it will be 4.0.

Re: SpiderBasic 3.30 beta 2 is out !

Posted: Wed Jun 17, 2026 7:32 am
by Fred
I'm just wondering, what's your Android (or IOS) app build time (from compile to full deploy on device) ? I got a very old PC and want to see what's the improvement with new.

Here (timed the second build, as the first one does some cache, launch gradle and adb etc):
- with 3.20: 3m20
- with 3.30: 1m15

Re: SpiderBasic 3.30 beta 2 is out !

Posted: Fri Jun 19, 2026 12:15 pm
by RBart
Hi Fred,

I appreciate the work. I love SpiderBasic. It's a great project.
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.
In modules it's nearly impossible, I didn't succeed until now. I have a topic open for this problem in coding questions;

I am trying it with this now:

Code: Select all

PictureButton = TextGadget(#PB_Any,20,650,100,100, "'<button type='button'onclick='f_klik()'><img src='512x512.png' alt='Button Image' style='width: 100px; height: 100px;'></button>")
But when I call the procedure klik() it doesn't work, inside a module.

To get an image on the screen this works in modules:

Code: Select all

Picture = TextGadget(#PB_Any,20,650,100,100, "<img src='512x512.png' width='100' height='100'>") 
But this is drawing a thin line around the image.

Greetings,
Rudi

Re: SpiderBasic 3.30 beta 2 is out !

Posted: Fri Jun 19, 2026 12:26 pm
by RBart
Fred wrote: Wed Jun 17, 2026 7:32 am I'm just wondering, what's your Android (or IOS) app build time (from compile to full deploy on device) ? I got a very old PC and want to see what's the improvement with new.

Here (timed the second build, as the first one does some cache, launch gradle and adb etc):
- with 3.20: 3m20
- with 3.30: 1m15
On Ubuntu 22.04 spiderbasic 3.20 complile took 40 seconds. I use my phone to test so I can't mesure that. Installing the APK doesn't take long neither.
Didn't try 3.30 yet.

Grts, Rudi

Re: SpiderBasic 3.30 beta 2 is out !

Posted: Sat Jun 20, 2026 9:11 am
by Danilo
RBart wrote: Fri Jun 19, 2026 12:15 pm 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:

Code: Select all

Procedure klik()
  Debug "klik!"
EndProcedure

OpenWindow(1, 10, 10, 532, 532, "Window 1")

If Not LoadImage(1,"512x512.png")
  CreateImage(1,512,512,24)
EndIf

ButtonImageGadget(1,10,10,512,512,ImageID(1))

BindGadgetEvent(1,@klik(),#PB_EventType_LeftClick)
The SB help is not updated, yet. It‘s a beta.
RBart wrote: Fri Jun 19, 2026 12:15 pm But when I call the procedure klik() it doesn't work, inside a module.
Procedure names inside modules are different, it is not ‚f_klik()‘.
Check the JS output, iirc it‘s something with ‚modulename$‘ or ‚$modulename‘ inside. Search for ‚klik‘ inside the generated JavaScript.