Search found 878 matches

by Peter
Fri Feb 02, 2024 3:29 pm
Forum: Coding Questions
Topic: StringGadget() change font
Replies: 2
Views: 464

Re: StringGadget() change font

Works as expected: https://i.imgur.com/BLrOy9H.png Global FONT_MONOSPACE_16 = LoadFont(#PB_Any, "Courier", 16) If OpenWindow(0, 0, 0, 322, 80, "StringGadgets", #PB_Window_SystemMenu | #PB_Window_ScreenCentered) NomalGadget = StringGadget(#PB_Any, 8, 10, 306, 20, "Normal Stri...
by Peter
Fri Feb 02, 2024 10:34 am
Forum: Coding Questions
Topic: Problem porting PB to SB (DataSection, Label and Procedure)
Replies: 2
Views: 564

Re: Problem porting PB to SB (DataSection, Label and Procedure)

If you look at your code in the console of your browser, you will see the following:

Image


You call this function:

Code: Select all

v_rec1._vt._Draw(v_rec1);

but the function is called:

Code: Select all

rect$f_draw(p_this)
by Peter
Sat Jan 27, 2024 3:49 pm
Forum: Coding Questions
Topic: Translating Purebasic in Spiderbasic problem
Replies: 6
Views: 784

Re: Translating Purebasic in Spiderbasic problem

jphoarau wrote: Sat Jan 27, 2024 3:28 pmThere is the keyword Restore but I don't know how to use it.
place the cursor in the keyword and press <F1>. Help for the corresponding command will then appear

Online-Help for DataSection and Restore: https://www.spiderbasic.com/documentati ... /data.html
by Peter
Thu Jan 04, 2024 2:59 pm
Forum: Coding Questions
Topic: Question about using Events.
Replies: 5
Views: 1695

Re: Question about using Events.

Code: Select all

BindEvent(#PB_Event_Gadget, @Handler2())

;)

// Edit: munfraid has won the race :)
by Peter
Thu Dec 21, 2023 9:52 pm
Forum: Feature Requests and Wishlists
Topic: Tauri support
Replies: 5
Views: 2221

Re: Tauri support

I will have a look into Neutralinojs, but don't want to install another build system. Already have plenty of them :-/ Yes, of course that's your decision. I just wanted to point out that NeutralinoJs is, in my humble opinion, a simpler system than Tauri. Here are the file sizes with a HelloWord sam...
by Peter
Thu Dec 21, 2023 6:32 pm
Forum: Feature Requests and Wishlists
Topic: Tauri support
Replies: 5
Views: 2221

Re: Tauri support

Tauri requires Rust to be installed. I don't like that very much. The system also seems to me to be more extensive and complicated than it should be.

I would rather recommend the lightweight Neutralinojs.
by Peter
Fri Oct 13, 2023 10:21 am
Forum: Javascript
Topic: Babylon.js
Replies: 67
Views: 310449

Re: Babylon.js

Do you have an idea what I need to adjust? so that it also runs under 2.5? change line 4 in particle.sbi from: !var particleSystem = new BABYLON.ParticleSystem(v_name, v_maxnumberparticles, v_scene); to: !var particleSystem = new BABYLON.ParticleSystem(v_name, v_maxnumberparticles, g_scene); and ch...
by Peter
Wed Oct 11, 2023 10:56 am
Forum: Javascript
Topic: Babylon.js
Replies: 67
Views: 310449

Re: Babylon.js

Norbert wrote: Wed Oct 11, 2023 4:23 amWhat would I have to adjust so that the examples also run under spiderbasic 2.5?
change line 8 in engine.sbi from:

Code: Select all

  !require([bjs$v_bjsenginepath + "/babylon.custom.js"], 
to:

Code: Select all

  !require([bjs$g_bjsenginepath + "/babylon.custom.js"], 
by Peter
Sat Sep 30, 2023 9:01 am
Forum: General Discussion
Topic: SpiderBasic 2.51 is available
Replies: 17
Views: 46261

Re: SpiderBasic 2.51 is available

Oh, that was unexpected. Thanks for the update! Image
by Peter
Fri Sep 29, 2023 5:54 pm
Forum: Coding Questions
Topic: Mouse over gadget
Replies: 14
Views: 18726

Re: Mouse over gadget

Did you really test it with an imagegadget? I don't see it. It should be clear that I don't test all gadget types in order to offer you a free solution. To be honest, I don't find your expectations reasonable. For this reason, this is my last post in this thread. Procedure AddMouseOverAndMouseLeave...