Search found 45 matches

by Danilo
Mon Oct 19, 2020 8:17 am
Forum: General Discussion
Topic: My thoughts on the SpiderBasic update policy
Replies: 15
Views: 18764

Re: My thoughts on the SpiderBasic update policy

My subscription expires next month and there was only 1 update from SB 2.30 to SB 2.31. :o

I also think an optional lifetime license would be better for this product,
so customers would be able to choose between yearly and lifetime license.
by Danilo
Mon Oct 19, 2020 8:06 am
Forum: General Discussion
Topic: I cant change language in preferences
Replies: 4
Views: 6484

Re: I cant change language in preferences

It still does not work with SB 2.31 on macOS. Is this a bug or still not working?

I can see catalogs in SpiderBasic.app/Contents/Resources/catalogs => Deutsch, Italian, Spanish, Francais

Somebody was asking for the german IDE translation in the PB Discord Chat, yesterday.
by Danilo
Wed Jan 08, 2020 1:30 am
Forum: Tricks 'n' Tips
Topic: AppMenu for browser apps
Replies: 4
Views: 6725

Re: AppMenu for browser apps

I tested it also on a smartphone. Unfortunately there is a problem with the Safari browser when using the landscape mode and going to full screen. Then you can only click the button, but not the AppMenu.
I see. Looks like mobile Safari does not like clicks at the very top of the screen.

It ...
by Danilo
Tue Jan 07, 2020 5:51 am
Forum: Tricks 'n' Tips
Topic: AppMenu for browser apps
Replies: 4
Views: 6725

Re: AppMenu for browser apps

Added statusbar.
by Danilo
Mon Jan 06, 2020 11:06 pm
Forum: Tricks 'n' Tips
Topic: AppMenu for browser apps
Replies: 4
Views: 6725

AppMenu for browser apps

Hi guys, today I wrote a small app-menu for use in the browser:

https://media.discordapp.net/attachments/643063430663766046/663982466981429248/TopMenuButtonWithPopupMenuAndStatusbar.png

;
; by Danilo, 2020/01/06
;
; 2020/01/07 Added status bar, by Danilo
;
Prototype MenuButtonClicked(id.s ...
by Danilo
Sun Jan 05, 2020 1:46 am
Forum: Showcase
Topic: Code editor + completion (CodeMirror / ACE)
Replies: 4
Views: 26903

Re: Code editor + completion (CodeMirror / ACE)

Updates for SpiderBasic 2.30

CodeMirror:

;
; https://forums.spiderbasic.com/viewtopic.php?f=12&t=144
;
; Load CodeMirror editor ( https://codemirror.net )
;
; 2014/05/02 first version by eddy
; 2020/01/05 updated to SB 2.30 by Danilo
;

;*****************************
; Code Mirror ...
by Danilo
Fri Jan 03, 2020 6:15 pm
Forum: Coding Questions
Topic: LoadScript() and bootstrap
Replies: 5
Views: 5584

Re: LoadScript() and bootstrap

Another example:

;
; SB template for:
;
; 'JavaScript DOM Crash Course' by Traversy Media (https://www.traversymedia.com)
;
; YouTube: https://www.youtube.com/playlist?list=PLillGF-RfqbYE6Ik_EuXA2iZFcE082B3s
;
Procedure AppendBody(content.s)
!$("body").append(v_content);
EndProcedure

Procedure ...
by Danilo
Fri Nov 29, 2019 7:37 pm
Forum: Coding Questions
Topic: LoadScript() and bootstrap
Replies: 5
Views: 5584

Re: LoadScript() and bootstrap

Small example:


Procedure FloatingWin(id.s, x, y, width, height, backgroundColor.s="#ffffff", content.s="")
Protected s.s = "<div id='"+id+"' style='position: absolute; left: "+x+"px; top:"+y+"px; width:"+width+"px; height:"+height+"px; background-color:"+backgroundColor+";'>"+content+"</div ...
by Danilo
Fri Nov 29, 2019 5:36 am
Forum: Coding Questions
Topic: equivalent to SetEndOfFile_()?
Replies: 6
Views: 5968

Re: equivalent to SetEndOfFile_()?

What type of files do you work with, morosh? #PB_LocalStorage files?

Looks like DeleteFile() is missing from SB. For now you could overwrite it using CreateFile():CloseFile() to create a new file with size 0.

EDIT:
;
; SpiderBasic 2.30 - Delete a file that was created using '#PB_LocalStorage ...
by Danilo
Wed Nov 27, 2019 8:10 pm
Forum: Coding Questions
Topic: equivalent to SetEndOfFile_()?
Replies: 6
Views: 5968

Re: equivalent to SetEndOfFile_()?

Renamed SetEndOfFile() to TruncateFile(), so it is compatible with PureBasic. ;)