Search found 2291 matches
- Wed Feb 12, 2014 6:03 pm
- Forum: Announcement
- Topic: SpiderBasic 1.00 is out !
- Replies: 438
- Views: 254763
Re: SpiderBasic 1.00 alpha 3
Thanks for the replies, I'll download a copy of chrome and use that then.
- Wed Feb 12, 2014 10:43 am
- Forum: Announcement
- Topic: SpiderBasic 1.00 is out !
- Replies: 438
- Views: 254763
Re: SpiderBasic 1.00 alpha 3
Sorry if this has been brought up already. I'm using windows 8.1 and IE 11 and the latest Java install but can't get any of the example webpages to work, the IE window changes colour and that's all.
Anyone else getting this, do the examples not work in IE 11?
Anyone else getting this, do the examples not work in IE 11?
- Sun Dec 01, 2013 8:53 pm
- Forum: Coding Questions
- Topic: How can I create a checkered floor pattern ?
- Replies: 23
- Views: 6096
Re: How can I create a checkered floor pattern ?
Ugly as sin bit of code but maybe you can get something from it.
OpenWindow(0,0,0,1000,800,"",$ca0001)
CreateImage(0,4000,800)
StartDrawing(ImageOutput(0))
y=0
s=4
c=#White
Repeat
For m=1 To s
cc=c
For n=0 To 4000 Step 16
Line(n,y,16,1,cc)
If cc=#White
cc=#Blue
Else
cc=#White
EndIf
Next ...
OpenWindow(0,0,0,1000,800,"",$ca0001)
CreateImage(0,4000,800)
StartDrawing(ImageOutput(0))
y=0
s=4
c=#White
Repeat
For m=1 To s
cc=c
For n=0 To 4000 Step 16
Line(n,y,16,1,cc)
If cc=#White
cc=#Blue
Else
cc=#White
EndIf
Next ...
- Fri May 11, 2012 5:40 pm
- Forum: Off Topic
- Topic: Feedback/Opinions on the look & stucture of TuppTech.com
- Replies: 23
- Views: 5260
Re: Feedback/Opinions on the look & stucture of TuppTech.com
Can't get it to work using my Motorola XOOM tablet.
- Sat May 28, 2011 10:19 pm
- Forum: Coding Questions
- Topic: Cursor on string gadget keeps moving in front
- Replies: 4
- Views: 2204
Re: Cursor on string gadget keeps moving in front
If you subclass the gadget then you can limit the input before it gets put into the stringgadget.
(most of this code is stolen from one of srod's examples!) :wink:
Global oldcallback
Procedure newcallback(hwnd, msg, wparam, lparam)
Select msg
Case #WM_CHAR
If (wParam < #VK_0 Or wparam > #VK ...
(most of this code is stolen from one of srod's examples!) :wink:
Global oldcallback
Procedure newcallback(hwnd, msg, wparam, lparam)
Select msg
Case #WM_CHAR
If (wParam < #VK_0 Or wparam > #VK ...
- Thu Jan 20, 2011 5:37 pm
- Forum: Coding Questions
- Topic: Is there a shorter/better way of doing this?
- Replies: 16
- Views: 3735
Re: Is there a shorter/better way of doing this?
#om_linear=123
#om_random=453
#om_ignore=279
If OpenWindow(0, 200, 200, 200, 100, "Menu State Example")
If CreateMenu(0, WindowID(0))
MenuTitle("Options...")
MenuItem(1, "1")
MenuItem(2, "2")
MenuItem(3, "3")
EndIf
opt_albumorder=279; Change me
SetMenuItemState(0, 1, 1-Abs(Sign(#om ...
#om_random=453
#om_ignore=279
If OpenWindow(0, 200, 200, 200, 100, "Menu State Example")
If CreateMenu(0, WindowID(0))
MenuTitle("Options...")
MenuItem(1, "1")
MenuItem(2, "2")
MenuItem(3, "3")
EndIf
opt_albumorder=279; Change me
SetMenuItemState(0, 1, 1-Abs(Sign(#om ...
- Wed Dec 22, 2010 6:31 pm
- Forum: Coding Questions
- Topic: unexpected problem with for next step loop
- Replies: 9
- Views: 2384
Re: unexpected problem with for next step loop
I think you should always use "<=" or ">=" when using steps in a while-wend loop so you don't miss out on the last iteration of the loop.
a = 0
b = 102
c = 3
While a < b
If a>92
Debug "A = "+Str(a)
EndIf
a = a + c
Wend
Debug ""
a = 0
b = 102
c = 3
While a <= b
If a>92
Debug "A = "+Str(a)
EndIf
a ...
a = 0
b = 102
c = 3
While a < b
If a>92
Debug "A = "+Str(a)
EndIf
a = a + c
Wend
Debug ""
a = 0
b = 102
c = 3
While a <= b
If a>92
Debug "A = "+Str(a)
EndIf
a ...
- Thu Nov 18, 2010 6:47 pm
- Forum: Coding Questions
- Topic: Windowed Screen MouseRelease
- Replies: 4
- Views: 1789
Re: Windowed Screen MouseRelease
Hi, I think it's because you're checking to see if your window gets the focus but it sometimes has it already so it doesn't reactivate. Hope that makes sense.
What I would do is open an invisible window at the same time as your window and then activate that one when you press F12, that way your ...
What I would do is open an invisible window at the same time as your window and then activate that one when you press F12, that way your ...
- Mon Nov 15, 2010 10:17 pm
- Forum: Coding Questions
- Topic: Calculating and printing the many digits of PI
- Replies: 22
- Views: 12711
Re: Calculating and printing the many digits of PI
Indeed, perhaps the compiler shouldn't try to optimise constant floats but instead just leave it to the fpu to do when running, I wouldn't think it would cause too much of an impact on running speed of programs and would then be a consistant behavior.
- Mon Nov 15, 2010 9:06 pm
- Forum: Coding Questions
- Topic: GUI design - general questions
- Replies: 3
- Views: 1429
Re: GUI design - general questions
OT, hey Rook, what's wrong with your keyboard? I've noticed a few of your posts lately have a few double letters in places. 
- Mon Nov 15, 2010 9:04 pm
- Forum: Coding Questions
- Topic: Calculating and printing the many digits of PI
- Replies: 22
- Views: 12711
Re: Calculating and printing the many digits of PI
To be honest, I'd prefer it if it was a bug and that regardless of floating point or integer anything >=x.5 went up and anything <x.5 went down, so much easier.blueznl wrote:Derek, to me that looks like a bug, to be honest.
- Mon Nov 15, 2010 8:11 pm
- Forum: Coding Questions
- Topic: Calculating and printing the many digits of PI
- Replies: 22
- Views: 12711
Re: Calculating and printing the many digits of PI
Like Trond said, when using floating point, the fpu rounds to the nearest even number, not always up!
Or at least it does when using variables.
Or at least it does when using variables.
Code: Select all
a.f = 3
b.f = 1.5
c.l = 3.0 + 1.5
d.l = a + b
Debug c
Debug d
- Mon Nov 15, 2010 3:03 pm
- Forum: Off Topic
- Topic: Hotel built in 6 days!
- Replies: 3
- Views: 1373
Re: Hotel built in 6 days!
That would take at least 6 months in Britain due to the teabreaks alone!!
Amazing what can be done with the proper organisation though.
Amazing what can be done with the proper organisation though.
- Mon Nov 15, 2010 2:57 pm
- Forum: Coding Questions
- Topic: Calculating and printing the many digits of PI
- Replies: 22
- Views: 12711
Re: Calculating and printing the many digits of PI
All manor of weirdness!!
I guess it's just something to bear in mind when working with floats or integers.
Code: Select all
a=11/2
Debug a
a=5.5
Debug a
aa.f=11
b=2
Debug aa/b
Debug Int(aa/b)
c=aa/b
Debug c
d=aa
Debug d/b
Debug 11/2
- Mon Nov 15, 2010 12:16 pm
- Forum: Coding Questions
- Topic: Calculating and printing the many digits of PI
- Replies: 22
- Views: 12711
Re: Calculating and printing the many digits of PI
In the program to calculate PI there is a defint a-z at the start so there is no conversion from float to integer so if you run the following example I think it would be different on Qbasic to Pure, I haven't tried it on Qbasic though so don't quote me. :wink:
a=4.5
b=3.5
Debug "rounded up "+Str ...
a=4.5
b=3.5
Debug "rounded up "+Str ...