It is currently Sun Nov 18, 2018 2:44 am

All times are UTC + 1 hour




Post new topic Reply to topic  [ 451 posts ]  Go to page Previous  1 ... 17, 18, 19, 20, 21, 22, 23 ... 31  Next
Author Message
 Post subject: Re: SpiderBasic 1.00 alpha 3
PostPosted: Tue Feb 04, 2014 11:53 pm 
Offline
Administrator
Administrator

Joined: Fri May 17, 2002 4:39 pm
Posts: 13387
Location: France
Alpha 3 is available :)


Top
 Profile  
Reply with quote  
 Post subject: Re: SpiderBasic 1.00 alpha 3
PostPosted: Tue Feb 04, 2014 11:57 pm 
Offline
Enthusiast
Enthusiast
User avatar

Joined: Sat Oct 04, 2003 12:57 pm
Posts: 269
Location: Germany
SpiderBasic 1.00 alpha 2 (Windows) , i can see this on the download account :D
But it is alpha 3 :wink:

Thank you

_________________
www.falko-pure.de
Win8 Pro 64-Bit & Mediacenter, PB_5.1B7, GFA-WinDOS, Powerbasic9.05-Windows, NSBasic/CE, NSBasic/Desktop, NSBasic4APP, EmergenceBasic


Top
 Profile  
Reply with quote  
 Post subject: Re: SpiderBasic 1.00 alpha 3
PostPosted: Wed Feb 05, 2014 8:29 am 
Offline
Addict
Addict

Joined: Fri Nov 09, 2012 11:04 pm
Posts: 1596
Location: Uttoxeter, UK
Thanks. :D

_________________
DE AA EB


Top
 Profile  
Reply with quote  
 Post subject: Re: SpiderBasic 1.00 alpha 3
PostPosted: Wed Feb 05, 2014 10:45 am 
Offline
Addict
Addict
User avatar

Joined: Sat Apr 26, 2003 8:26 am
Posts: 2916
Location: Planet Earth
Thanks for Alpha 3! :D

Missing commands DesktopWidth() and DesktopHeight()
Code:
;
; SpiderBasic example by Danilo
;
;   5. February 2014
;   SpiderBasic 1.00 Alpha 3
;
Procedure DesktopWidth()
    ;
    ; Returns the width of the browser area
    ;
    !var width;
    !require(["dojo/window"], function(win){
    !  width = win.getBox().w;
    !});
    !return width;
EndProcedure

Procedure DesktopHeight()
    ;
    ; Returns the height of the browser area
    ;
    !var height;
    !require(["dojo/window"], function(win){
    !  height = win.getBox().h;
    !});
    !return height;
EndProcedure

Procedure OnWindowSize()
    SetGadgetText(2,Str(WindowWidth(1)))
    SetGadgetText(4,Str(WindowHeight(1)))
EndProcedure

Procedure UpdateDesktopSize()
    SetGadgetText(6,Str(DesktopWidth()))
    SetGadgetText(8,Str(DesktopHeight()))
EndProcedure

If OpenWindow(1,0,0,200,200,"Desktop Info",#PB_Window_SystemMenu|#PB_Window_SizeGadget)
    TextGadget(1, 10,10,100,20,"Window Width:  ")
    TextGadget(2,120,10, 70,20,Str(WindowWidth(1)))
    TextGadget(3, 10,35,100,20,"Window Height: ")
    TextGadget(4,120,35, 70,20,Str(WindowHeight(1)))
    TextGadget(5, 10,60,100,20,"Desktop Width: ")
    TextGadget(6,120,60, 70,20,Str(DesktopWidth()))
    TextGadget(7, 10,85,100,20,"Desktop Height:")
    TextGadget(8,120,85, 70,20,Str(DesktopHeight()))
   
    ButtonGadget(9,10,110,180,20,"Update Desktop Size")
   
    BindGadgetEvent(9, @UpdateDesktopSize())
   
    BindEvent(#PB_Event_SizeWindow, @OnWindowSize(), 1)
       
EndIf


Feature Requests:

Would it be possible to add an event like #PB_Event_SizeDesktop?

Would be nice if this commands could also be available with screens/games.

:)


Top
 Profile  
Reply with quote  
 Post subject: Re: SpiderBasic 1.00 alpha 3
PostPosted: Wed Feb 05, 2014 11:01 am 
Offline
Enthusiast
Enthusiast
User avatar

Joined: Fri Jul 19, 2013 7:36 am
Posts: 163
Location: Novosibirsk
Code:
Procedure DesktopWidth()
    ;
    ; Returns the width of the browser area
    ;
    !var width;
    !require(["dojo/window"], function(win){
    !  width = win.getBox().w;
    !});
    !return width;
EndProcedure

Procedure DesktopHeight()
    ;
    ; Returns the height of the browser area
    ;
    !var height;
    !require(["dojo/window"], function(win){
    !  height = win.getBox().h;
    !});
    !return height;
EndProcedure


I missed? Where mentioned about the syntax of inline javascript [ ! ] ?
Аnd this is also true for HTML?

_________________
Dawn will come inevitably.
His (http://translate.yandex.ru/) English is not as good as we would like
If the English text is not correct, please correct me in private message


Top
 Profile  
Reply with quote  
 Post subject: Re: SpiderBasic 1.00 alpha 3
PostPosted: Wed Feb 05, 2014 11:12 am 
Offline
Addict
Addict
User avatar

Joined: Sat Apr 26, 2003 8:26 am
Posts: 2916
Location: Planet Earth
useful wrote:
I missed? Where mentioned about the syntax of inline javascript [ ! ] ?

Look in the help for topic "Inline x86 ASM". ;)

In PureBasic it is !DirectASM, in SpiderBasic it is !DirectJS

useful wrote:
Аnd this is also true for HTML?

Don't know, yet.

Would also be nice to include own JavaScript files. Something like
Code:
IncludeJS "/my.js"
ImportJS "/my.js"
would generate
Code:
<script type="text/javascript" src="/my.js"></script>
in the final HTML at the beginning.

I also noticed that SpiderBasic removes the ending ';' from my !DirectJS lines (because this are SB comments).
Would be nice if lines starting with '!' would be inserted completely untouched to prevent any issues.


Top
 Profile  
Reply with quote  
 Post subject: Re: SpiderBasic 1.00 alpha 3
PostPosted: Wed Feb 05, 2014 3:51 pm 
Offline
Enthusiast
Enthusiast
User avatar

Joined: Fri Nov 25, 2011 10:40 pm
Posts: 686
Location: Germany, Ulm
Fred wrote:
Alpha 3 is available :)

Thank you Fred, it get's better and better. :) Already need it to implement a online map of a game world, like Google Maps. Best advantage, i can directly use the data structure and procedures to render.

Just waiting for the drawing library to get a little more extensive. HTML5 supports cool functions like bezier curves, just like GDI or cairo, this would be even more powerful than the native PB drawing library. :D

_________________
Image
Image
Image


Top
 Profile  
Reply with quote  
 Post subject: Re: SpiderBasic 1.00 alpha 3
PostPosted: Thu Feb 06, 2014 9:26 am 
Offline
Enthusiast
Enthusiast
User avatar

Joined: Fri Jul 19, 2013 7:36 am
Posts: 163
Location: Novosibirsk
The <iframe> <=> webgadget planned? :wink:

And really want to understand the roadmap dates alpha, beta, release (albeit very roughly)

_________________
Dawn will come inevitably.
His (http://translate.yandex.ru/) English is not as good as we would like
If the English text is not correct, please correct me in private message


Top
 Profile  
Reply with quote  
 Post subject: Re: SpiderBasic 1.00 alpha 3
PostPosted: Thu Feb 06, 2014 9:32 am 
Offline
PureBasic Bullfrog
PureBasic Bullfrog
User avatar

Joined: Wed Jul 06, 2005 5:42 am
Posts: 7986
Location: Fort Nelson, BC, Canada
alpha to beta: when it happens
beta to release: Fred says approx. end of 2014
A project of this scope is just too large to make accurate predictions.

_________________
Veni, vidi, vici.


Top
 Profile  
Reply with quote  
 Post subject: Re: SpiderBasic 1.00 alpha 3
PostPosted: Thu Feb 06, 2014 12:44 pm 
Offline
Enthusiast
Enthusiast

Joined: Fri Jan 13, 2006 12:14 am
Posts: 255
if i use
Code:
 WindowBounds(#win, 800, 600, #PB_Ignore, #PB_Ignore)
and trying to resize window, window will be about 10 points width or height.


Top
 Profile  
Reply with quote  
 Post subject: Re: SpiderBasic 1.00 alpha 3
PostPosted: Thu Feb 06, 2014 1:44 pm 
Offline
Administrator
Administrator

Joined: Fri May 17, 2002 4:39 pm
Posts: 13387
Location: France
karu wrote:
if i use
Code:
 WindowBounds(#win, 800, 600, #PB_Ignore, #PB_Ignore)
and trying to resize window, window will be about 10 points width or height.


Please use the right forum section, thanks: viewforum.php?f=41


Top
 Profile  
Reply with quote  
 Post subject: Re: SpiderBasic 1.00 alpha 3
PostPosted: Thu Feb 06, 2014 6:50 pm 
Offline
Enthusiast
Enthusiast
User avatar

Joined: Fri Jul 19, 2013 7:36 am
Posts: 163
Location: Novosibirsk
Can create a partition Tricks 'n' Tips (SpiderBasic) for such
Code:
Procedure DesktopWidth()
    ;
    ; Returns the width of the browser area
    ;
    !var width;
    !require(["dojo/window"], function(win){
    !  width = win.getBox().w;
    !});
    !return width;
EndProcedure

Procedure DesktopHeight()
    ;
    ; Returns the height of the browser area
    ;
    !var height;
    !require(["dojo/window"], function(win){
    !  height = win.getBox().h;
    !});
    !return height;
EndProcedure
; (c) Danilo

_________________
Dawn will come inevitably.
His (http://translate.yandex.ru/) English is not as good as we would like
If the English text is not correct, please correct me in private message


Top
 Profile  
Reply with quote  
 Post subject: Re: SpiderBasic 1.00 alpha 3
PostPosted: Thu Feb 06, 2014 7:19 pm 
Offline
PureBasic Expert
PureBasic Expert
User avatar

Joined: Fri Apr 25, 2003 4:34 pm
Posts: 857
Location: Canada
Well, after messing around with alpha3 for a bit I was able to port an app I made in PureBasic back in 2003.
It functions pretty close to the original after making a number of tweeks.
In my opinion its not to bad for an Alpha version of a new product :)

http://reelmedia.org/spiderbasic/spideroids.html

All are welcome to give it a try.

_________________
Image Image


Top
 Profile  
Reply with quote  
 Post subject: Re: SpiderBasic 1.00 alpha 3
PostPosted: Thu Feb 06, 2014 7:20 pm 
Offline
Enthusiast
Enthusiast

Joined: Fri Jan 13, 2006 12:14 am
Posts: 255
Fred wrote:
karu wrote:
if i use
Code:
 WindowBounds(#win, 800, 600, #PB_Ignore, #PB_Ignore)
and trying to resize window, window will be about 10 points width or height.


Please use the right forum section, thanks: http://www.purebasic.fr/english/viewforum.php?f=41

My mistake.


Top
 Profile  
Reply with quote  
 Post subject: Re: SpiderBasic 1.00 alpha 3
PostPosted: Thu Feb 06, 2014 7:34 pm 
Offline
PureBasic Expert
PureBasic Expert

Joined: Wed Oct 29, 2003 4:35 pm
Posts: 10443
Location: Beyond the pale...
Paul wrote:
Well, after messing around with alpha3 for a bit I was able to port an app I made in PureBasic back in 2003.
It functions pretty close to the original after making a number of tweeks.
In my opinion its not to bad for an Alpha version of a new product :)

http://reelmedia.org/spiderbasic/spideroids.html

All are welcome to give it a try.


That is pretty cool. :)

_________________
I may look like a mule, but I'm not a complete ass.


Top
 Profile  
Reply with quote  
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 451 posts ]  Go to page Previous  1 ... 17, 18, 19, 20, 21, 22, 23 ... 31  Next

All times are UTC + 1 hour


Who is online

Users browsing this forum: No registered users and 6 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum

Search for:
Jump to:  

 


Powered by phpBB © 2008 phpBB Group
subSilver+ theme by Canver Software, sponsor Sanal Modifiye