Search found 18 matches

by orangetek
Mon Jun 22, 2020 8:51 am
Forum: Coding Questions
Topic: "TextWidth" always returns zero
Replies: 5
Views: 3765

Re: "TextWidth" always returns zero

Thanks peter. I have another issue with loading fonts but ill create a new topic
by orangetek
Mon Jun 22, 2020 8:26 am
Forum: Coding Questions
Topic: "TextWidth" always returns zero
Replies: 5
Views: 3765

Re: "TextWidth" always returns zero

Brave browser "cross-site fingerprinting blocked" .. so its a browser issue, but only on width? how strange
by orangetek
Mon Jun 22, 2020 8:24 am
Forum: Coding Questions
Topic: "TextWidth" always returns zero
Replies: 5
Views: 3765

Re: "TextWidth" always returns zero

I am using a linux environment. I just tested it in Windows and it works.
by orangetek
Mon Jun 22, 2020 8:00 am
Forum: Coding Questions
Topic: "TextWidth" always returns zero
Replies: 5
Views: 3765

"TextWidth" always returns zero

Hi, what am i doing wrong?

loginwindow = OpenWindow(#PB_Any, 0, 0, 400, 300, "", #PB_Window_BorderLess | #PB_Window_ScreenCentered)
canvas = CanvasGadget(#PB_Any, 0, 0, 400, 300)
text.s = "test"

If StartDrawing(CanvasOutput(canvas))
Debug "Text Width: " + TextWidth(text) ; <---- Always Zero ...
by orangetek
Thu Jun 18, 2020 1:29 pm
Forum: Javascript
Topic: Javascript "If" statement uncaught refernce
Replies: 3
Views: 9763

Re: Javascript "If" statement uncaught refernce

Case correction should be disabled for EnableJS/DisableJS
by orangetek
Thu Jun 18, 2020 1:27 pm
Forum: Javascript
Topic: Javascript "If" statement uncaught refernce
Replies: 3
Views: 9763

Re: Javascript "If" statement uncaught refernce

Wow, surely that is easily fixed? It will confuse many new to SB. It works when using EnableJS/DisableJS as long as you dont click away from the line as SB will auto upper case
by orangetek
Thu Jun 18, 2020 12:39 pm
Forum: Javascript
Topic: Javascript "If" statement uncaught refernce
Replies: 3
Views: 9763

Javascript "If" statement uncaught refernce

I am using paylike.io to process card payments for my customers. The code below brings up a popup window where customers enter card information. For some reason, the If statement is causing an uncaught reference error. If i remove the If statement, everything works as it should. The code will not ...
by orangetek
Mon Nov 04, 2019 6:46 am
Forum: Coding Questions
Topic: Can someone check this simple code?
Replies: 2
Views: 2770

Re: Can someone check this simple code?

Hi Peter,

Thanks for the reply. I am still a bit confused as i thought each command was run in sequence. Can you explain where exactly the blocking is happening?
by orangetek
Fri Nov 01, 2019 8:45 am
Forum: Coding Questions
Topic: Can someone check this simple code?
Replies: 2
Views: 2770

Can someone check this simple code?

Code: Select all

Repeat
  count+1
  Debug count
Until count=1000
This simple bit of code takes around 3 seconds to complete and does not display anything in the debug window until completed. Is this normal?

Thanks
by orangetek
Sat Oct 26, 2019 10:47 am
Forum: Coding Questions
Topic: [2.22] [SOLVED] Compiler options 'Web server address' bug
Replies: 1
Views: 2264

Re: [2.22] Compiler options 'Web server address' bug

ignore this. 'example.com:80' works using the address without 'https://'. How would you use a secure webserver? 'example.com:443' does not work. If the site auto directs to https, 'example.com:80 does work for https