SpiderBasic Library - List of new functions

Share your advanced knowledge/code with the community.
User avatar
RSBasic
Posts: 36
Joined: Mon Oct 15, 2018 1:17 pm
Location: Berlin
Contact:

SpiderBasic Library - List of new functions

Post by RSBasic »

Jump to next post (link for RSBasic)

Hello,

since there is always the question how to change what style and not everyone is familiar with CSS, I thought I'd create a collective thread with many example codes, for example to change the appearance of each element (windows, gadgets, ...).
If someone also has an example code, you are welcome to post it here. Please make sure that the sample codes are complete and directly executable without adaptation. If, for example, graphics etc. are required, please include or create them in the code.
I will build and always update a table of contents in this starting contribution.
All example codes can be found in the German forum and are linked here in the respective category.
If someone would like to implement something, but doesn't know how, then please post the question in a separate thread. Feedback and suggestions for changes can be posted here.

List of example codes:
Last edited by RSBasic on Thu Oct 25, 2018 7:40 am, edited 38 times in total.
ImageImageImageImageImage
User avatar
RSBasic
Posts: 36
Joined: Mon Oct 15, 2018 1:17 pm
Location: Berlin
Contact:

Re: SpiderBasic Library - List of new functions

Post by RSBasic »

Reserved
ImageImageImageImageImage
User avatar
RSBasic
Posts: 36
Joined: Mon Oct 15, 2018 1:17 pm
Location: Berlin
Contact:

Re: SpiderBasic Library - List of new functions

Post by RSBasic »

Reserved
ImageImageImageImageImage
User avatar
RSBasic
Posts: 36
Joined: Mon Oct 15, 2018 1:17 pm
Location: Berlin
Contact:

Re: SpiderBasic Library - List of new functions

Post by RSBasic »

By default, the context menu is disabled of SpiderBasic. If you want to have the context menu, you can enable it with the following function: https://www.purebasic.fr/german/viewtop ... 77#p349377
Last edited by RSBasic on Tue Oct 16, 2018 12:26 pm, edited 1 time in total.
ImageImageImageImageImage
User avatar
RSBasic
Posts: 36
Joined: Mon Oct 15, 2018 1:17 pm
Location: Berlin
Contact:

Re: SpiderBasic Library - List of new functions

Post by RSBasic »

There is no MessageRequester() in SpiderBasic. Now there is: https://www.purebasic.fr/german/viewtop ... 79#p349379
Last edited by RSBasic on Tue Oct 16, 2018 12:25 pm, edited 1 time in total.
ImageImageImageImageImage
User avatar
RSBasic
Posts: 36
Joined: Mon Oct 15, 2018 1:17 pm
Location: Berlin
Contact:

Re: SpiderBasic Library - List of new functions

Post by RSBasic »

There is no InputRequester() in SpiderBasic. Now there is: https://www.purebasic.fr/german/viewtop ... 80#p349380
Last edited by RSBasic on Tue Oct 16, 2018 12:25 pm, edited 1 time in total.
ImageImageImageImageImage
User avatar
RSBasic
Posts: 36
Joined: Mon Oct 15, 2018 1:17 pm
Location: Berlin
Contact:

Re: SpiderBasic Library - List of new functions

Post by RSBasic »

Last edited by RSBasic on Tue Oct 16, 2018 12:27 pm, edited 1 time in total.
ImageImageImageImageImage
User avatar
RSBasic
Posts: 36
Joined: Mon Oct 15, 2018 1:17 pm
Location: Berlin
Contact:

Re: SpiderBasic Library - List of new functions

Post by RSBasic »

In SpiderBasic you cannot create a StatusBar. Now it's possible (CreateStatusBar(), AddStatusBarField(), StatusBarText(), FreeStatusBar(), IsStatusBar(), StatusBarHeight(), StatusBarID()): https://www.purebasic.fr/german/viewtop ... 87#p349387
ImageImageImageImageImage
User avatar
Paul
Posts: 195
Joined: Wed Feb 26, 2014 6:46 pm
Location: Canada
Contact:

Re: SpiderBasic Library - List of new functions

Post by Paul »

Just a note, quite a few of your posts contain syntax errors in the code. Not sure if the Forum is messing up the posts or there was a problem with copy/paste. For example, I randomly picked Gadget-->ButtonGadget-->Show and Hide Animated Gadget.
Copy and Paste into SpiderBasic and you get syntax error on line 63...

Code: Select all

all "+ duration +" s "+ animation_effect +" "+ delay +" s; opacity: 1; visibility: visible; } "
Another example, https://www.purebasic.fr/german/viewtop ... 87#p349387
Create StatusBar> StatusBar
The procedure IsStatusBar will return error since EndProcedure is missing.

and then in the sample code...
The window name is missing quotes and MenuItem(2, <--just ends

Code: Select all

If OpenWindow (0, 0, 0, 500, 400, Window, #PB_Window_ScreenCentered | #PB_Window_SystemMenu | #PB_Window_SizeGadget) 
  If CreateMenu (1, WindowID (0)) 
    MenuTitle ("File") 
    MenuItem (1, "Hello") 
    MenuTitle ("Edit") 
    MenuItem (2,
  EndIf 
User avatar
Peter
Posts: 1086
Joined: Mon Feb 24, 2014 10:17 pm
Location: 127.0.0.1:9080
Contact:

Re: SpiderBasic Library - List of new functions

Post by Peter »

@Paul: no problem here. All posted codes are working as expected. Maybe a problem with your browser?

Greetings ... Peter
Post Reply