Search found 878 matches

by Peter
Mon Feb 27, 2023 5:49 pm
Forum: Coding Questions
Topic: SpiderBasic and netradio url.
Replies: 7
Views: 2544

Re: SpiderBasic and netradio url.

something like this? Enumeration #Window #Container EndEnumeration Procedure AddPlayer(Gadget) Protected GID = GadgetID(Gadget) Protected HTML.s = "<video controls='' autoplay='' name='media' style='height:50px;width:100%'>" + "<source src='https://www.lesfloralies.ovh/floralies.ogg' ...
by Peter
Sun Feb 26, 2023 6:24 pm
Forum: Game Programming
Topic: When to call SpriteWidth() and SpriteHeight() ?
Replies: 4
Views: 12360

Re: When to call SpriteWidth() and SpriteHeight() ?

Unlike PureBasic, after a LoadSprite() the object is not immediately available. For this reason you specify with BindEvent(#PB_Event_Loading, ...) the procedure that will be executed when the object is available. Only when this procedure is called, the object is available and you can for example get...
by Peter
Sun Feb 26, 2023 4:13 pm
Forum: Game Programming
Topic: When to call SpriteWidth() and SpriteHeight() ?
Replies: 4
Views: 12360

Re: When to call SpriteWidth() and SpriteHeight() ?

Mijikai wrote: Sun Feb 26, 2023 3:24 pmWhen and where can i request the size of an sprite?
in the Load() - Procedure.

See also the Sprite-Examples in the SpiderBasic-Documentation.
by Peter
Sun Feb 26, 2023 1:24 pm
Forum: Coding Questions
Topic: Space before window title
Replies: 2
Views: 977

Re: Space before window title

Quick'nDirty: EnableExplicit Procedure SetWindowTitleIcon(Window, Icon.s) If IsWindow(Window) = #False : ProcedureReturn : EndIf Protected WID = WindowID(Window) ! var win = v_wid.window; ! var wintitle = $(win).find(".spiderwindow-title"); ! wintitle.parent().prepend("<div style='pos...
by Peter
Sat Feb 25, 2023 4:41 pm
Forum: Coding Questions
Topic: How to use interfaces?
Replies: 4
Views: 1228

Re: How to use interfaces?

If you create a datasection (example taken from the document): DataSection NumericalData: Data.l 100, 200, -250, -452, 145 StringData: Data.s "Hello", "This", "is ", "What ?" EndDataSection then SpiderBasic makes a JavaScript array out of it: var sb_data = [10...
by Peter
Sat Feb 25, 2023 11:41 am
Forum: Coding Questions
Topic: How to use interfaces?
Replies: 4
Views: 1228

Re: How to use interfaces?

I do not work with interfaces. Therefore I cannot help you here. But...
Mijikai wrote: Sat Feb 25, 2023 10:25 amBtw. labes in the datasection did not work
sure? The example found in the documentation works for me. Can you post some code where it doesn't work?
by Peter
Sat Feb 25, 2023 11:16 am
Forum: Javascript
Topic: ../Libraries/javascript/ in runtime
Replies: 8
Views: 5307

Re: ../Libraries/javascript/ in runtime

I packed the js and css with https://github.com/terser/html-minifier-terser https://github.com/terser/terser https://forums.spiderbasic.com/viewtopic.php?t=1893 ;) I'm sure that not all files are needed in runtime. Yes, there is still room for optimization. For example, the paper library with a siz...
by Peter
Tue Feb 14, 2023 5:57 am
Forum: Coding Questions
Topic: Working in dev but not after deploy
Replies: 6
Views: 2038

Re: Working in dev but not after deploy

1. Create a resource folder. 2. Copy epos-2.23.0.js into it. 3. In the "Create App" dialog specify the path of the resource folder. https://i.imgur.com/1rHNd5u.png This code snippet works for me: Procedure Main() Protected ePosDev ! v_eposdev = new epson.ePOSDevice(); If ePosDev MessageReq...
by Peter
Fri Feb 10, 2023 7:52 am
Forum: Coding Questions
Topic: Working in dev but not after deploy
Replies: 6
Views: 2038

Re: Working in dev but not after deploy

@itzybitzyspider:

What is the exact error message?
by Peter
Sun Feb 05, 2023 10:44 am
Forum: Coding Questions
Topic: Small font in menus
Replies: 2
Views: 977

Re: Small font in menus

Each menu item has the class 'dijitMenuItem'. With CSS you can change the font size. ! $("head").append("<style>.dijitMenuItem{font-size: 24px}</style>"); Procedure MenuEvents() Debug "Menu item selected: " + EventMenu() EndProcedure If OpenWindow(0, 200, 200, 200, 100,...