Page 2 of 4

Re: SpiderBasic Library - List of new functions

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

Re: SpiderBasic Library - List of new functions

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

Re: SpiderBasic Library - List of new functions

Posted: Tue Oct 16, 2018 6:29 pm
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?

Re: SpiderBasic Library - List of new functions

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

Re: SpiderBasic Library - List of new functions

Posted: Wed Oct 17, 2018 5:07 pm
by RSBasic
I have extended the function Rotate gadget in 3D. You can now optionally rotate an object in perspective.

Re: SpiderBasic Library - List of new functions

Posted: Thu Oct 18, 2018 10:23 am
by RSBasic
There is no ScrollBarGadget() in SpiderBasic. Now there is: https://www.purebasic.fr/german/viewtop ... 22#p349422

Re: SpiderBasic Library - List of new functions

Posted: Thu Oct 18, 2018 11:17 am
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 :)

Re: SpiderBasic Library - List of new functions

Posted: Thu Oct 18, 2018 11:58 am
by RSBasic
In SpiderBasic you cannot include external files (CSS, Javascript). Now it's possible: https://www.purebasic.fr/german/viewtop ... 27#p349427

Re: SpiderBasic Library - List of new functions

Posted: Sat Oct 20, 2018 7:38 am
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

Re: SpiderBasic Library - List of new functions

Posted: Sun Oct 21, 2018 10:27 am
by munfraid
Thanks for this great collection, RSBAsic, it's very helpful!