Search found 696 matches

by Peter
Tue Apr 27, 2021 8:57 pm
Forum: Coding Questions
Topic: Problem drawing on more than one canvas
Replies: 3
Views: 214

Re: Problem drawing on more than one canvas

William Van Hoecke wrote: Tue Apr 27, 2021 7:59 pmDoes Anyone have any idea why below code only draws in one canvasgadget ???
As I wrote: It seems to be a SpiderBasic bug, because the same code works as expected when executed with PureBasic. For this reason I moved your first post about this to the bug section.

Greetings ... Peter
by Peter
Mon Apr 19, 2021 8:36 pm
Forum: General Discussion
Topic: Free Version unavailable?
Replies: 5
Views: 517

Re: Free Version unavailable?

Confirmed. This should be fixed as soon as possible.
by Peter
Mon Apr 19, 2021 10:07 am
Forum: Bugs Reports
Topic: ContainerGadget + ResizeGadget() ignores #PB_Ignore
Replies: 2
Views: 118

Re: ContainerGadget + ResizeGadget() ignores #PB_Ignore

Confirmed. This is related to the Container-Border. The Container without a border is not resized: [...] If OpenWindow(#win0, 100, 200, 300, 150, "Container WIDTH & HEIGHT should not be expanding", #PB_Window_SystemMenu | #PB_Window_SizeGadget | #PB_Window_ScreenCentered) ContainerGadg...
by Peter
Mon Apr 05, 2021 8:41 pm
Forum: Coding Questions
Topic: howto add parameter into callback ?
Replies: 5
Views: 285

Re: howto add parameter into callback ?

killer128k wrote:Eng: This is not a good answer. Wrong path.

Fr: Ce n'est pas une bonne réponse. Mauvais chemin.
i beg your pardon.
by Peter
Sat Apr 03, 2021 2:13 pm
Forum: Coding Questions
Topic: howto add parameter into callback ?
Replies: 5
Views: 285

Re: howto add parameter into callback ?

you can use a global variable (here: HttpGetEventHistlocResult) Global HttpGetEventHistlocResult.s Procedure ReadFileCallbackMAJcompta(Status, Filename$, File, SizeRead) Select Status Case #PB_Status_Loaded ; ... If ParseJSON(0, HttpGetEventHistlocResult ) ; ... EndIf EndSelect EndProcedure Procedur...
by Peter
Tue Mar 23, 2021 12:19 am
Forum: Coding Questions
Topic: Strange string variable...
Replies: 2
Views: 283

Re: Strange string variable...

window.location is an object, not a string.

Code: Select all

Global myweb.s

! v_myweb = window.location.href;

Debug myweb.s
Debug Len(myweb.s)
Debug Left(myweb,Len(myweb)-4)
by Peter
Sun Mar 21, 2021 12:13 pm
Forum: Coding Questions
Topic: Change button gadget during callback procedure
Replies: 8
Views: 256

Re: Change button gadget during callback procedure

@KianV: You can use setTimeout(): OpenWindow(0, 0, 0, 200, 100, "Button Callback",#PB_Window_ScreenCentered) Procedure ButtonCallback() SetGadgetText(1,"processing") ! setTimeout(function() { For f=1 To 1000 ; this just stalls for a while Debug f Next f SetGadgetText(1,"Gene...
by Peter
Wed Mar 10, 2021 1:00 pm
Forum: Coding Questions
Topic: Wait until readfile has finished
Replies: 1
Views: 159

Re: Wait until readfile has finished

How can I wait/halt my program until the read-loop has finished? Although this is technically possible, it is not recommended. The browser only executes the JavaScript single-threaded. If you block this thread (because you are waiting for something), the browser freezes. The file is completely load...
by Peter
Wed Feb 24, 2021 7:55 am
Forum: Coding Questions
Topic: delete cache
Replies: 9
Views: 377

Re: delete cache

Code: Select all

LoadImage(#mypic,"myfolder/mypic17.jpg?rnd=" + ElapsedMilliseconds())
by Peter
Tue Feb 23, 2021 7:51 am
Forum: Showcase
Topic: Use SQLite with SpiderBasic
Replies: 17
Views: 8221

Re: Use SQLite with SpiderBasic

Dirk Geppert wrote:There is only one array to see..
... which however can be converted relatively easily.

So I would not store state secrets in it. ;)