SpiderBasic Library - List of new functions

Share your advanced knowledge/code with the community.
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 »

@Peter...you are correct. IE Shows this...

Code: Select all

  Select effect
    Case #SB_Gadget_Animation_Linear
      animation_effect = "linear"
    Case #SB_Gadget_Animation_Ease
      animation_effect = "ease"
    Case #SB_Gadget_Animation_EaseIn
      animation_effect = "ease-in"
    Case #SB_Gadget_Animation_EaseOut
      animation_effect = "ease-out"
    Case #SB_Gadget_Animation_EaseInOut
      animation_effect = "ease-in-out"
  EndSelect
  
  styles = ""
  styles + "#" + id + " { -webkit-transition: all " + duration + "s " + animation_effect + " " + delay + "s; transition: all " + duration + "s " + animation_effect + " " + delay + "s; opacity: 1; visibility: visible; } "
  styles + "#" + id + " * { -webkit-transition: all " + duration + "s " + animation_effect + " " + delay + "s; transition: all " + duration + "s " + animation_effect + " " + delay + "s; opacity: 1; visibility: visible; } "
  styles + "#" + id + ".HideGadget { opacity: 0; visibility: hidden; }"
 
  ;Styles hinzufügen
  ! document.getElementById("SBCustomStyles").appendChild(document.createTextNode( v_styles ));
  ! GadgetElement.addClass("HasAnimation");
  
EndProcedure
while latest version of Chrome is missing data...

Code: Select all

  Select effect 
    Case #SB_Gadget_Animation_Linear 
      animation_effect = "linear"


all "+ duration +" s "+ animation_effect +" "+ delay +" s; opacity: 1; visibility: visible; } "






  



  styles + "#" + id + ".HideGadget {opacity: 0; visibility: hidden;}" 
 
  ; Add Styles 
  ! document.getElementById ("SBCustomStyles"). appendChild (document.createTextNode (v_styles)); 
  ! GadgetElement.addClass ( "HasAnimation"); 
  
EndProcedure 
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: That's odd. I also use the latest version of Chrome (Version 69.0.3497.100 (64-Bit)) and have no problems. Maybe you are using an extension that changes the code?

Greetings ... Peter
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 »

Peter wrote:@Paul: That's odd. I also use the latest version of Chrome (Version 69.0.3497.100 (64-Bit)) and have no problems. Maybe you are using an extension that changes the code?

Greetings ... Peter
LOL... turns out Chrome was auto translating the forum from German into English (and at the same time trashing all the source code) so problem solved.

Maybe a MOD can move my posts into a separate topic to unclutter this one?
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 »

I'm glad the problem's solved. :)

There is no ShortcutGadget in SpiderBasic. Now it's possible: https://www.purebasic.fr/german/viewtop ... 02#p349402
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 »

I have extended the function Rotate gadget in 3D. You can now optionally rotate an object in perspective.
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 ScrollBarGadget() in SpiderBasic. Now there is: https://www.purebasic.fr/german/viewtop ... 22#p349422
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 OSVersion() in SpiderBasic. Now there is: https://www.purebasic.fr/german/viewtop ... 23#p349423

For the function OSVersion() I only added the Windows versions. I couldn't add other operating systems (Linux, Android, MacOS, iOS) because I couldn't test with them.
If someone has time and wants to help, this function can be extended. Thanks :)
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 include external files (CSS, Javascript). Now it's possible: https://www.purebasic.fr/german/viewtop ... 27#p349427
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 there are BindGadgetEvent() and EventType() for gadgets, but 1. only for a few gadgets (e.g. there is no right-click event for button) and 2. only a few events. Why? It doesn't matter whether it's a ButtonGadget or ImageGadget. There are also many more events. I have extended this function. There are now 12 new Events (Touch-Events, Mouseover, ...) and 11 Events have been implemented for all Gadgets. The complete list of events can be found under NewMap "Events".

Gadget > (All gadgets) > More events for BindGadgetEvent() and EventType(): https://www.purebasic.fr/german/viewtop ... 49#p349449
ImageImageImageImageImage
munfraid
Posts: 104
Joined: Sat Mar 24, 2018 1:33 pm

Re: SpiderBasic Library - List of new functions

Post by munfraid »

Thanks for this great collection, RSBAsic, it's very helpful!
Post Reply