Search found 9 matches

by Inertially
Sat Aug 24, 2013 5:41 am
Forum: The PureBasic Form Designer
Topic: How do I create shapes as in VB?
Replies: 5
Views: 3573

Re: How do I create shapes as in VB?

Doesn't seem that suitable.

Drawing and text looks really pixelated.
Is there a way to change the font in DrawText?

And to make something clickable (make the shape a button), I would have to map mouse coordinates?
by Inertially
Fri Aug 23, 2013 4:35 pm
Forum: The PureBasic Form Designer
Topic: How do I create shapes as in VB?
Replies: 5
Views: 3573

How do I create shapes as in VB?

VB has shape controls such as circle, rectangle, where you can change the background color, border-width, border-style, rounded corner rectangle etc.

Is there a way to get that control in PB?

Or do I have to Make my entire form a WebGadget and just make all my controls in HTML/CSS/JS
by Inertially
Wed Jul 10, 2013 12:34 pm
Forum: Coding Questions
Topic: WebGadget InvokeScript?
Replies: 1
Views: 577

WebGadget InvokeScript?

Is there a way to call a Javascript function using PB?
(on the current page in the WebGadget)

.NET has http://msdn.microsoft.com/en-us/library ... cript.aspx
by Inertially
Wed Dec 28, 2011 1:24 pm
Forum: Coding Questions
Topic: Multi line statements
Replies: 5
Views: 1811

Multi line statements

Is there a way to make multi-line statement?

In VB6, it's " _ "
In C++, it's nothing or "\" in the middle of anything(?).

Is there a way to span multiple lines in PB?
e.g.

data.s = a
+ b
+ c
by Inertially
Sun Nov 20, 2011 12:02 pm
Forum: Coding Questions
Topic: Formatting a number (commas)
Replies: 8
Views: 3744

Formatting a number (commas)

In Java, there's System.out.printf() and String.format() that let's you format number/string with commas/whitespace

How do I do this in PB?

In a case like print an integer in console like "1,000,000" rather than 1000000.
by Inertially
Thu Nov 17, 2011 3:47 am
Forum: Coding Questions
Topic: Separate files
Replies: 2
Views: 1048

Separate files

So, other languages have different classes..

Like separating different functions of a program into different files/partitions.

Is there a way to do this in PB?
Is it just the X/IncludeFile call?

What happens with variable scope?
If you include different files into the main project file, can each ...
by Inertially
Mon Nov 14, 2011 2:16 am
Forum: General Discussion
Topic: ...PureBasic 2x slower than Java?
Replies: 38
Views: 11168

Re: ...PureBasic 2x slower than Java?

ehh
by Inertially
Mon Nov 14, 2011 1:56 am
Forum: General Discussion
Topic: ...PureBasic 2x slower than Java?
Replies: 38
Views: 11168

Re: ...PureBasic 2x slower than Java?

16021 ms is PureBasic
8532 ms in Java on my computer.

The console window in the screenshot is the PB exe.
The Interactions pane in the Java IDE (lower) shows the time it took for Java.

Yeah, debugger is off, it's compiled..
and I tried it in C++, I got 14900 ms....
VB6 was 24000ms.

what's java ...
by Inertially
Mon Nov 14, 2011 1:03 am
Forum: General Discussion
Topic: ...PureBasic 2x slower than Java?
Replies: 38
Views: 11168

...PureBasic 2x slower than Java?

Did Bubble Sort to sort a 50,000 int array.

Took twice as long with PureBasic...?
http://i.imgur.com/3AWE1.png


Unless there's a mistake in the code (rather than just saying sorting is a dumb way to test speed).



PureBasic
Procedure bubbleSort(Array arr.i(1))
swapped.b = #True
max.i ...