Search found 1930 matches

by STARGÅTE
Tue Dec 09, 2025 7:39 pm
Forum: Coding Questions
Topic: Opening and calling DLL functions from inside a Purebasic DLL [SOLVED]
Replies: 7
Views: 210

Re: Opening and calling DLL functions from inside a Purebasic DLL

Without any code or snippets nor information at which point the main DLL or sub DLL crashes?
Image
No!
by STARGÅTE
Fri Dec 05, 2025 6:53 am
Forum: Coding Questions
Topic: EnableExplicit behavior
Replies: 2
Views: 181

Re: EnableExplicit behavior

miso wrote: Fri Dec 05, 2025 5:58 am Is this normal behavior?
Yes, as it is written in the documentation:
https://www.purebasic.com/documentation ... odule.html
When the statements Define, EnableExplicit, EnableASM are used inside a module, they have no effect outside the respective module, and vice versa.
by STARGÅTE
Wed Nov 26, 2025 4:48 pm
Forum: Coding Questions
Topic: [RESOLVED] Ai's Grok and ChatGPT cannot fix non-displaying Graph
Replies: 7
Views: 546

Re: Ai's Grok and ChatGPT cannot fix non-displaying Graph


STARGÅTE thanks that worked !
... just a Question :

; Axes
VectorSourceColor(#Black|255<<24)
|255<<24 what does this actually do ??

-----------------------------------------------------

RASHAD many thanks for fixing Code !!!
would it be too much to add ability to ZoomIn and ZoomOut in the ...
by STARGÅTE
Wed Nov 26, 2025 7:15 am
Forum: Coding Questions
Topic: [RESOLVED] Ai's Grok and ChatGPT cannot fix non-displaying Graph
Replies: 7
Views: 546

Re: Ai's Grok and ChatGPT cannot fix non-displaying Graph

Colors in VectorDrawing need to be full RGBA. Otherwise your colors are transparent.

Code: Select all

; Grid
VectorSourceColor(RGBA(235,235,235, 255))

Code: Select all

; Axes
VectorSourceColor(#Black|255<<24)
etc.
by STARGÅTE
Fri Nov 21, 2025 9:33 pm
Forum: Coding Questions
Topic: GrabSprite and #PB_Sprite_AlphaBlending flag.
Replies: 3
Views: 201

Re: GrabSprite and #PB_Sprite_AlphaBlending flag.

Code: Select all

GrabSprite(u,74,4+(u-1)*taille_y,taille_x,taille_y, #PB_Sprite_AlphaBlending)
by STARGÅTE
Sat Nov 15, 2025 1:36 pm
Forum: Coding Questions
Topic: How to detect TypeOf(var) is a Pointer
Replies: 3
Views: 313

Re: How to detect TypeOf(var) is a Pointer

Names with a * in front are always pointers, and names without a * are always variables.
I do not understand the question.
by STARGÅTE
Sun Nov 02, 2025 1:01 pm
Forum: Coding Questions
Topic: How to Use `#PB_Compiler_Procedure` in a Macro to Declare a Variable?
Replies: 6
Views: 613

Re: How to Use `#PB_Compiler_Procedure` in a Macro to Declare a Variable?


Is there a way to use `#PB_Compiler_Procedure` inside a macro to declare a variable with the same name as the current procedure?**
Or is there a workaround to dynamically name a variable based on the procedure name?

Any insights or alternative approaches would be appreciated!


No, it is not ...
by STARGÅTE
Mon Oct 27, 2025 8:12 am
Forum: Coding Questions
Topic: weird error
Replies: 2
Views: 466

Re: weird error

The arguments of DrawText were changed recently from integer to double.
This will help:

Code: Select all

Procedure.d Double(Integer.i)
	ProcedureReturn Integer
EndProcedure

DrawText(0, Double(Int(33.5) >> 1), "", 0)
by STARGÅTE
Fri Oct 24, 2025 10:14 am
Forum: Bugs - Windows
Topic: PB 6.30 Beta 4 - ScreenGadget library - bug report
Replies: 31
Views: 2172

Re: PB 6.30 Beta 4 - ScreenGadget library - bug report


Mouse wheel action is inverted on a TrackBarScreenGadget(). The value decreases, when the mouse wheel is rotated up
I don't understand, for me it works like the trackbar gadget.


Thanks for the fixes.

Unfortunately, I never tried the original track bar gadget of PureBasic.
To my surprise, it's ...
by STARGÅTE
Tue Oct 21, 2025 1:19 pm
Forum: Coding Questions
Topic: How to set window close event to match each window?
Replies: 3
Views: 483

Re: How to set window close event to match each window?

You can bind the event on each window separately:

Code: Select all

BindEvent(#PB_Event_CloseWindow, @Callback(), #Window) 
by STARGÅTE
Sun Oct 19, 2025 9:51 pm
Forum: Coding Questions
Topic: WingDings font not displaying
Replies: 7
Views: 746

Re: WingDings font not displaying

The text gadget is too small in width and the Text gadget makes a word wrap:

Code: Select all

TextGadget(gi,10,gY,120,gH+30,txt$ + gi)
by STARGÅTE
Sun Oct 19, 2025 9:45 pm
Forum: Coding Questions
Topic: [Solved] List the fields of the structure
Replies: 7
Views: 835

Re: List the fields of the structure


Hi, all.

Is it possible to list all the fields of a structure in a loop if their number and type are known in advance ?

No, because all structures are known (for the compiler) during compilation.
But even if so, how would you want to access this field then?

The only option is, you check with ...
by STARGÅTE
Fri Oct 17, 2025 6:27 pm
Forum: Coding Questions
Topic: Graphic: Cubic bezier through four (or multiple) points (solved)
Replies: 13
Views: 1318

Re: Graphic: Curve throug points

Probably you are looking for Spline curves or Bézier curve.
I just linked them to the forum search here.
by STARGÅTE
Mon Oct 13, 2025 9:23 pm
Forum: Tricks 'n' Tips
Topic: On Gosub Solution to replace Select/Case conditionals
Replies: 2
Views: 834

Re: On Gosub Solution to replace Select/Case conditionals

As it is written in the documentation, "CallFunctionFast is not very flexible and does not handle string/float/double/quad parameters or string/float/double/quad returns. The use of prototypes is now strongly recommended."

Here is the recommended version:
; Define all your cases as procedures ...
by STARGÅTE
Sun Oct 12, 2025 10:59 am
Forum: Bugs - Windows
Topic: PB 6.30 Beta 3 - ScreenGadget library - bug report
Replies: 7
Views: 2793

Re: PB 6.30 Beta 3 - ScreenGadget library - bug report


If I ever need a beta tester, I might reach out to STARGÅTE :mrgreen:

Bug hunter since 2008 :twisted:
Maybe I just find more bugs because I'm looking for them as a programmer not as a user :oops: .
If you have written a similar library yourself, you know what you are looking for.
Forgive me ...