Search found 3762 matches

by skywalk
Sun Oct 26, 2025 4:39 pm
Forum: Coding Questions
Topic: [SOLVED] Module Declaration Order
Replies: 4
Views: 262

Re: [SOLVED] Module Declaration Order

Sorry, I still don't see the benefit?

mod1_add(), etc in mod1.pbi
And
mod2_add(), etc in mod2.pbi

I never have to remember order of declares or when to use ::?
And I can use code tools with very simple PB syntax checks.

Rant off.
by skywalk
Thu Oct 23, 2025 4:48 pm
Forum: Coding Questions
Topic: How to open and reopen a window from a first window?
Replies: 12
Views: 679

Re: How to open and reopen a window from a first window?

Thanks TI-994A!
Always excellent coding guides. 8)

Aside: My only conflict is modules. I find them distracting when compared to simple prefixing.
xxx_somelibcode.pbi
xxx_somevariable, xxx_somestructure, etc.
Name conflicts are super easy to catch.
Amalgamated code is simpler for my brain.
by skywalk
Sun Oct 19, 2025 11:31 pm
Forum: Tricks 'n' Tips
Topic: Animated Vector Graphics Scene Graph
Replies: 73
Views: 3610

Re: Animated Vector Graphics Scene Graph

Yes!
MIT license is preferred.
I got lost in legalese with eclipse 2. :shock:

I like the fast array approach as I sometimes place 20k objects on a layer. I redraw my scenes with a hardcoded algo and it is still fast enough for user. This is not a game though. More like a custom graphical report ...
by skywalk
Sun Oct 19, 2025 8:21 pm
Forum: Tricks 'n' Tips
Topic: Animated Vector Graphics Scene Graph
Replies: 73
Views: 3610

Re: Animated Vector Graphics Scene Graph

Hi idle!
Can you explain the intent of Right-Mouse-Clicks?
It seems to work as a pan feature, but it also seems to jump more than intended?
Maybe the moving objects are confusing the hit spot?
by skywalk
Sat Oct 18, 2025 4:38 pm
Forum: Bugs - Windows
Topic: [Done] Memory Leak in GetFileDate
Replies: 7
Views: 781

Re: Memory Leak in GetFileDate

Ouch, does it matter which compiler options?
by skywalk
Sun Oct 12, 2025 2:29 am
Forum: Tricks 'n' Tips
Topic: vector drawing display list
Replies: 21
Views: 2161

Re: vector drawing display list

It's coming together nicely.
Thanks for the concept!
by skywalk
Sun Oct 05, 2025 3:44 pm
Forum: Coding Questions
Topic: Problems with list in a procedure - need help
Replies: 13
Views: 821

Re: Problems with list in a procedure - need help

If new to PB, always use EnableExplicit at top of your code.
Limit the temptation to use global variables. (True for any language.)
Store your globals under a structured variable or your design.
Understand the threat of your list() or map() positions being altered by any calling function.
Threads ...
by skywalk
Sun Oct 05, 2025 5:16 am
Forum: Tricks 'n' Tips
Topic: vector drawing display list
Replies: 21
Views: 2161

Re: vector drawing display list

Haha, I have to disable your animation to understand the "hit" thresholds.
I will look more tomorrow. Thanks!
by skywalk
Sat Oct 04, 2025 6:22 pm
Forum: Tricks 'n' Tips
Topic: vector drawing display list
Replies: 21
Views: 2161

Re: vector drawing display list

idle - this code is intense! 8)
I love the scaling and zooming.
I will try converting some graphics code with your lib.
Do you have an example like a chess or go board?
I want to see the floating point errors when making small circles on intersecting boarders of a grid.
I noticed them in my code ...
by skywalk
Thu Oct 02, 2025 12:47 am
Forum: Tricks 'n' Tips
Topic: vector drawing display list
Replies: 21
Views: 2161

Re: vector drawing display list

Does the canvas have layers you can enable/disable?
Or must we code that action?
by skywalk
Thu Oct 02, 2025 12:34 am
Forum: Coding Questions
Topic: Why are ValF & ValD so slow?
Replies: 27
Views: 1815

Re: Why are ValF & ValD so slow?

That's why I suggested atof() or equivalent wtof().

I don't have ValD() in many high speed scenarios but thanks for this post. I will check my code.
by skywalk
Wed Oct 01, 2025 4:10 am
Forum: Coding Questions
Topic: Why are ValF & ValD so slow?
Replies: 27
Views: 1815

Re: Why are ValF & ValD so slow?

ValD() is slower than FindString() or CountString()?
How much improvement are you expecting?
Did you compare C atof()?
by skywalk
Mon Sep 29, 2025 12:30 am
Forum: Off Topic
Topic: License limitation of PureBASIC
Replies: 7
Views: 1130

Re: License limitation of PureBASIC

If you are the only developer, you can install on multiple PCs.
It gets tricky if your boss' PC has it installed without another license.
It is ok to distribute your app.exe on multiple PCs.
Only developer use should trigger a new license purchase.
by skywalk
Fri Sep 26, 2025 6:15 pm
Forum: Coding Questions
Topic: WebView2 - IMA trying to change an option (ICoreWebView2xyz)
Replies: 2
Views: 501

Re: WebView2 - IMA trying to change an option (ICoreWebView2xyz)

Hi, this may be related to a bug I reported.
The code only fails with the DEBUGGER ON.
Procedure IncrementCallback(JsonParameters$)
Static Count
Debug #PB_Compiler_Procedure +": " + JsonParameters$
Count + 1
ProcedureReturn UTF8(~"{ \"count\": "+Str(Count)+ "}")
EndProcedure

Procedure ...
by skywalk
Fri Sep 26, 2025 12:46 am
Forum: Coding Questions
Topic: Best approach to create a syntax reader for a code converter?
Replies: 15
Views: 1404

Re: Best approach to create a syntax reader for a code converter?

You can take a look at how SQLite parses SQL queries into C code.
There is a grammar file to define your target. The output is C.

I wrote a VB6 -> PB converter many years ago when I switched to PB.
It was a great way to learn PB.
I opted out of regex, and used custom string functions for 95% of ...