Page 1 of 4

SpiderBasic Library - List of new functions

Posted: Mon Oct 15, 2018 2:32 pm
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:

Re: SpiderBasic Library - List of new functions

Posted: Mon Oct 15, 2018 2:33 pm
by RSBasic
Reserved

Re: SpiderBasic Library - List of new functions

Posted: Mon Oct 15, 2018 2:33 pm
by RSBasic
Reserved

Re: SpiderBasic Library - List of new functions

Posted: Mon Oct 15, 2018 7:03 pm
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

Re: SpiderBasic Library - List of new functions

Posted: Tue Oct 16, 2018 8:31 am
by RSBasic
There is no MessageRequester() in SpiderBasic. Now there is: https://www.purebasic.fr/german/viewtop ... 79#p349379

Re: SpiderBasic Library - List of new functions

Posted: Tue Oct 16, 2018 8:32 am
by RSBasic
There is no InputRequester() in SpiderBasic. Now there is: https://www.purebasic.fr/german/viewtop ... 80#p349380

Re: SpiderBasic Library - List of new functions

Posted: Tue Oct 16, 2018 9:14 am
by RSBasic

Re: SpiderBasic Library - List of new functions

Posted: Tue Oct 16, 2018 12:10 pm
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

Re: SpiderBasic Library - List of new functions

Posted: Tue Oct 16, 2018 1:38 pm
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 

Re: SpiderBasic Library - List of new functions

Posted: Tue Oct 16, 2018 1:53 pm
by Peter
@Paul: no problem here. All posted codes are working as expected. Maybe a problem with your browser?

Greetings ... Peter