Search found 182 matches

by the.weavster
Wed Mar 20, 2024 1:02 pm
Forum: Bugs Reports
Topic: Formatting in EnableJS creates problems
Replies: 2
Views: 316

Re: Formatting in EnableJS creates problems

+1 for the request.

But for now you can do this:
File -> Preferences -> Editor -> Editing -> Enable Case Correction ❌
by the.weavster
Thu Mar 07, 2024 3:01 pm
Forum: Coding Questions
Topic: Resize event in container gadgets
Replies: 4
Views: 256

Re: Resize event in container gadgets

@Webarion
You need to post a bug report ;)
by the.weavster
Wed Feb 07, 2024 12:54 pm
Forum: Coding Questions
Topic: How to store and use a callback function (kind of delegate)
Replies: 3
Views: 286

Re: How to store and use a callback function (kind of delegate)

An alternative methodology to think about :?: ... ; Interface describes the methods of our object Interface MyWidget add.d(n1.d, n2.d) getText.s() setText(msg.s) destroy() EndInterface ; Implement the members and create an instance Procedure.i New_MyWidget() EnableJS var obj = {}; obj.myText = "...
by the.weavster
Wed Nov 08, 2023 1:38 pm
Forum: General Discussion
Topic: Is the support of Web GUI elements planned?
Replies: 7
Views: 7035

Re: Is the support of Web GUI elements planned?

Fred wrote: Wed Oct 14, 2020 8:35 am I was thinking about this as well, especially for mobile UI.
@Fred
Are new UI widgets still on the agenda?
by the.weavster
Fri Mar 03, 2023 2:00 pm
Forum: Javascript
Topic: ../Libraries/javascript/ in runtime
Replies: 8
Views: 5308

Re: ../Libraries/javascript/ in runtime

Here's an updated version which adds compression: #!/usr/bin/env python # coding: utf-8 import json, mimetypes, os, shutil, socket, urllib.parse, urllib.request from http.server import ThreadingHTTPServer, BaseHTTPRequestHandler DIST_COMPRESS = True ROOT_DIR = os.path.abspath(os.path.dirname(__file_...
by the.weavster
Fri Mar 03, 2023 1:16 pm
Forum: Javascript
Topic: ../Libraries/javascript/ in runtime
Replies: 8
Views: 5308

Re: ../Libraries/javascript/ in runtime

useful wrote: Fri Mar 03, 2023 12:20 pm I don't see the point of connecting python as well.
The Python script doesn't just give you a list, it copies the required files into a "dist" folder.
by the.weavster
Fri Mar 03, 2023 10:17 am
Forum: Javascript
Topic: ../Libraries/javascript/ in runtime
Replies: 8
Views: 5308

Re: ../Libraries/javascript/ in runtime

If you use the following (not well tested ;) ) Python 3 script to serve your SB application it will copy any file it serves into a subfolder named "dist". Just save a copy in your SB project folder and run it from there. #!/usr/bin/env python # coding: utf-8 import mimetypes, os, shutil, s...
by the.weavster
Fri Aug 26, 2022 1:01 pm
Forum: Feature Requests and Wishlists
Topic: [Implemented] <meta http-equiv="X-UA-Compatible" content="IE=edge">
Replies: 7
Views: 6765

Re: <meta http-equiv="X-UA-Compatible" content="IE=edge">

On second thoughts it's probably best not to as it might handicap SB if an updated WebGadget is not on the roadmap for PB.
by the.weavster
Fri Aug 26, 2022 12:49 pm
Forum: Feature Requests and Wishlists
Topic: [Implemented] <meta http-equiv="X-UA-Compatible" content="IE=edge">
Replies: 7
Views: 6765

Re: <meta http-equiv="X-UA-Compatible" content="IE=edge">

Is it planned that SB's output should always be compatible with PB's WebGadget?
by the.weavster
Tue Aug 16, 2022 7:57 pm
Forum: Coding Questions
Topic: RemoveGadgetItem
Replies: 3
Views: 1053

Re: RemoveGadgetItem

Code: Select all

For j=0 To c-1 
  ;RemoveGadgetItem(#ListIconGadget,j) ; <--- not this
  RemoveGadgetItem(#ListIconGadget, 0) ; <--- this
Next j
Because if you start at the top of the list each time you remove a line all the other lines' index changes