Search found 543 matches

by Arctic Fox
Tue Jan 22, 2013 8:23 am
Forum: Coding Questions
Topic: Bool() use?
Replies: 29
Views: 4777

Re: Bool() use?

Code: Select all

result = Bool(num1 And num2)
:)

The help entry for Bool() is in 'Compiler Functions'.
by Arctic Fox
Fri Dec 21, 2012 6:20 pm
Forum: Announcement
Topic: PureBasic 5.10 - Granted wishes release - is out !
Replies: 108
Views: 42917

Re: PureBasic 5.10 - Granted wishes release - is out !

Thank you for this very impressive update! :D
Merry Christmas!
by Arctic Fox
Sat Dec 15, 2012 9:50 pm
Forum: Off Topic
Topic: Need help from a Java-Programmer
Replies: 3
Views: 1593

Re: Need help from a Java-Programmer

Hi Bernd!

With the following piece of Java code I get this result with Java 7:
Ducati999
[68, 117, 99, 97, 116, 105, 57, 57, 57]
import javax.crypto.spec.SecretKeySpec;
import java.security.Key;
import java.util.Arrays;

public class Main
{
public static void main(String[] args)
{
System.out ...
by Arctic Fox
Mon Sep 10, 2012 5:03 pm
Forum: The PureBasic Form Designer
Topic: Form Designer 5.10
Replies: 665
Views: 231301

Re: Form Designer 5.00 beta 2.3

Great tool, Polo!
*thumbs up* :)

I think there is a bug in the undo feature:
When deleting a gadget and undoing this particular action, the list of objects does not update properly.
by Arctic Fox
Thu Aug 09, 2012 2:12 am
Forum: Coding Questions
Topic: How to get text of a string gadget ?
Replies: 3
Views: 1617

Re: How to get text of a string gadget ?

Code: Select all

text = GetGadgetText(#String_3)
by Arctic Fox
Thu Jul 26, 2012 1:16 am
Forum: Coding Questions
Topic: #Entity object number is very high (over 10000).
Replies: 4
Views: 1154

Re: #Entity object number is very high (over 10000).

You shouldn't use the Cube variable as index number for CreateEntity. Dynamically created index numbers (those generated by the use of #PB_Any) tend to be very high, thus resulting in the object number error.
I think you should use #PB_Any for CreateEntity, too, and store the returned index number ...
by Arctic Fox
Wed Jul 04, 2012 6:49 pm
Forum: Feature Requests and Wishlists
Topic: [IDE] Custom keywords in the AutoComplete list
Replies: 0
Views: 880

[IDE] Custom keywords in the AutoComplete list

Hi everyone!

Would it be possible to include custom keywords in the AutoComplete list?
(e.g. by adding an option for custom keywords under 'Displayed Items')
by Arctic Fox
Sat Jun 16, 2012 6:21 pm
Forum: Coding Questions
Topic: Vanishing tooltips on Windows XP
Replies: 4
Views: 1168

Re: Vanishing tooltips

Hi Little John !

Does the tooltip re-appear when you move the cursor back over e.g. the checkbox again after clicking it?

Here on Windows 7 the tooltip appears upon mouse-over and disappears after clicking the gadget. If I move the cursor away from the gadget and back again, the tooltip re-appears ...
by Arctic Fox
Sat Jun 16, 2012 6:11 pm
Forum: Coding Questions
Topic: [ERROR] #File object not initialized.
Replies: 4
Views: 1424

Re: [ERROR] #File object not initialized.

Your welcome :)

Just a small tip for GetAsyncKeyState if you are checking whether a key is currently pressed:

Code: Select all

If GetAsyncKeyState_(i) & 1
I haven't done much programming with the network library yet so I can only wish you good luck :D
by Arctic Fox
Sat Jun 16, 2012 5:55 pm
Forum: Coding Questions
Topic: [ERROR] #File object not initialized.
Replies: 4
Views: 1424

Re: [ERROR] #File object not initialized.

I haven't tested this one, but you can have a look at it (look for my comments). Remember that procedures have their own local variable scope.

InitNetwork ()
File = OpenFile (#PB_Any,"C:\log.txt")
Procedure getkeypress(File) ; Changed here.
For i = 1 To 255
If GetAsyncKeyState_(i) = -32767 ...
by Arctic Fox
Fri Jun 15, 2012 10:36 pm
Forum: Tricks 'n' Tips
Topic: MindMap
Replies: 43
Views: 15230

Re: MindMap

Hi falsam! Have you seen this one by c4s?
http://www.purebasic.fr/english/viewtop ... 12&t=45192
by Arctic Fox
Mon Jun 11, 2012 7:30 pm
Forum: Tricks 'n' Tips
Topic: MindMap
Replies: 43
Views: 15230

Re: MindMap

Great work, falsam ! :D
And a good demonstration of the CanvasGadget.

Nevertheless, in several places I think
If SelectColor should be replaced by
If SelectColor <> -1
And you may want to use a temporary 32-bit transparent image for the triangle (Losange, model no. 5) because FillArea does not ...
by Arctic Fox
Fri Jan 27, 2012 10:29 pm
Forum: Feature Requests and Wishlists
Topic: #PB_Mouse_MouseWheel instead of #WM_MOUSEWHEEL
Replies: 3
Views: 1959

Re: #PB_Mouse_MouseWheel instead of #WM_MOUSEWHEEL

See #PB_EventType_MouseWheel for the CanvasGadget :wink:
(besides, #WM_MOUSEWHEEL is a Windows API constant - I don't think it should be removed or replaced)
by Arctic Fox
Mon Jan 16, 2012 2:21 pm
Forum: Coding Questions
Topic: 64-bit system or 62-bit system?
Replies: 4
Views: 1292

Re: 64-bit system or 62-bit system?

a.q = 1

For i = 1 To 64
a * 2
Debug "2^" + Str(i) + ": " + Str(a)
Next i
Quad has a range from (-2^63) to (2^63 - 1). Note the -1.
For each multiplication by 2, the bits of the number are shifted one place to the left.

Thus 2^63 returns a negative number (and 2^64 returns zero).


Edit ...
by Arctic Fox
Sun Jan 15, 2012 1:34 am
Forum: Bugs - Documentation
Topic: PureBasic Docs - Errors & needed improvements to the man
Replies: 223
Views: 378246

Re: PureBasic Docs - Errors & needed improvements to the man

... When used with an Interface, the function index is the memory offset, so it will be IndexOfTheFunction*4.

On 64-bit it is IndexOfTheFunction*8. This goes for the example, too. Pointers are 4 bytes on 32-bit and 8 bytes on 64-bit.

Structure Person
Name.s
ForName.s
Age.w
EndStructure ...