Search found 1272 matches

by #NULL
Wed Feb 04, 2026 8:21 pm
Forum: Feature Requests and Wishlists
Topic: Optional step out index for DebuggerError() and DebuggerWarning() to highlight the calling line
Replies: 8
Views: 526

Re: Optional step out index for DebuggerError() and DebuggerWarning() to highlight the calling line

+1
would be handy for libraries, especially since we can't implement something like it ourselves. In some simple cases you can use macro wrappers for your public procedures, which either throw an error or call the procedure, but it's not a general solution.
by #NULL
Mon Feb 02, 2026 9:13 pm
Forum: Coding Questions
Topic: Run source with command parameter
Replies: 4
Views: 419

Re: Run source with command parameter

Do you want your own sourcefile/programm receive command line arguments when compiled/run from within the IDE?
docs > The PureBasic IDE > Compiling your programs
Executable command-line
The string given here will be passed as the command-line to the program when running it from the IDE. The content ...
by #NULL
Sun Jan 25, 2026 7:57 pm
Forum: Coding Questions
Topic: Long bug when negative bit is set
Replies: 11
Views: 2897

Re: Long bug when negative bit is set

For unit testing (including Assert) there is pb_folder/sdk/pureunit/
But maybe Skywalk was talking about suggestions for specific tests that should be integrated into pb(?)
by #NULL
Fri Jan 23, 2026 4:41 pm
Forum: Coding Questions
Topic: [SOLVED AGAIN] Shared Roaming Folder is a Problem
Replies: 20
Views: 4035

Re: [SOLVED] Shared Roaming Folder is a Problem

What I quoted was from my local linux help file. If you are on Windows you have to use /P style switches.
Maybe your are using the START command wrong (I'm not really familiar with it though). Put the additional arguments outside the quotes as extra parameters to START. If that doesn't work, maybe ...
by #NULL
Thu Jan 01, 2026 5:57 pm
Forum: Coding Questions
Topic: TypeOf()
Replies: 5
Views: 919

Re: TypeOf()

I would say it's a bug. Also doesn't work with Lists and Maps.
Define i.i
NewMap m.i()
NewList l.i()
AddElement(l())
l() = 123
Debug l()
Debug TypeOf(i)
;Debug TypeOf(l)
;Debug TypeOf(l())

Also, I would think at least for lists, you would have to omit the braces to get type 'list' and not the ...
by #NULL
Mon Sep 01, 2025 5:11 pm
Forum: Coding Questions
Topic: Strange outpug from debug?
Replies: 16
Views: 1904

Re: Strange outpug from debug?

The 'ä' is probably not a regular umlaut character but a combination of multiple glyphs, like an 'a' followed by a combining diaeresis, that somehow gets misplaced on the 'n' (maybe a font issue or wrongly encoded ..or PB doesn't handle it correctly(?)).
for example see this:
https://stackoverflow ...
by #NULL
Sat Aug 16, 2025 1:31 pm
Forum: Coding Questions
Topic: Best approach to create a syntax reader for a code converter?
Replies: 15
Views: 2562

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

You might want to look into this as a starting point for a tokenizer:
Lexer for PB 4: viewtopic.php?t=22116
It's specifically for PB code, so not general.
In the mentioned german forum thread, the is a more up-to-date version.
by #NULL
Mon Jun 09, 2025 5:37 pm
Forum: Coding Questions
Topic: Menu lifecycle
Replies: 7
Views: 1228

Re: Menu lifecycle

BindEvent(#PB_Event_CloseWindow, @WindowClose(), StuffWindow)
BindEvent(#PB_Event_Menu, @PopupMenuStuffClick())

You didn't specify the StuffWindow for the menu bind, like you did for the close bind for example. That means from that point on, any menu event will trigger your procedure ...
by #NULL
Sun Jun 08, 2025 4:06 pm
Forum: Coding Questions
Topic: [SOLVED AGAIN] Shared Roaming Folder is a Problem
Replies: 20
Views: 4035

Re: Shared Roaming Folder is a Problem

linux help wrote:

Code: Select all

Options for launching the IDE: 
  -p or --preferences <file>    loads/saves all the configuration to/from the given file
Command-line options for the IDE:
https://www.purebasic.com/documentation ... dline.html
by #NULL
Thu May 29, 2025 12:05 pm
Forum: Off Topic
Topic: What is the actual 50% gray hex?
Replies: 21
Views: 4233

Re: What is the actual 50% gray hex?

There is also the option of dithering, alternating pixels between 127 and 128 to visually approach an 127.5
I wouldn't see the difference with my eyes if I wouldn't know it :) but there is a slight shimmering/flickering to the dithering.
I reused the code by Tawbie: If OpenWindow(0, 0, 0, 600, 800 ...
by #NULL
Mon May 26, 2025 4:34 am
Forum: Bugs - Windows
Topic: [Done] 5.42 vector drawing & saveImage()
Replies: 4
Views: 3819

Re: [5.42] vector drawing & saveImage()


When putting a black transparent image, all the aliasing is done with a black background, so when it is saved, you see the black artifact. To solve it, you need
to put a white based transparent background:
I don't have a Windows to test, but doesn't this just create white artifacts instead of ...
by #NULL
Sun May 25, 2025 4:29 pm
Forum: Bugs - Linux
Topic: [Done] SetClipboardText
Replies: 4
Views: 3810

Re: SetClipboardText

That works here too. But if i kill or close the app, the clipboard is still set correctly. PB probably uses gtk functions for clipboard, so maybe event processing is necessary to make it work. If that's the case, the clipboard library doc should mention that.
by #NULL
Sun May 25, 2025 9:43 am
Forum: Bugs - Linux
Topic: [Done] SetClipboardText
Replies: 4
Views: 3810

Re: SetClipboardText

If i run xclipboard first and then run the code, then xclipboard as well as KDE clipboard manager shows the correct string.
by #NULL
Sun May 25, 2025 9:39 am
Forum: Bugs - Linux
Topic: [Done] SetClipboardText
Replies: 4
Views: 3810

[Done] SetClipboardText

SetClipboardText("abc123")

Doesn't seem to work here.
PureBasic 6.21 Beta 4 (Linux - x64)
Ubuntu 24.04.2 LTS

I run this code, then open a new tab in the IDE and repeatedly press ctrl+v. Nothing is pasted the first couple of times and after a while what is pasted is what was in the clipboard ...
by #NULL
Sun May 25, 2025 7:22 am
Forum: Coding Questions
Topic: ImageVectorOutput() has no antialiasing – normal or bug?
Replies: 7
Views: 1055

Re: ImageVectorOutput() has no antialiasing – normal or bug?

On Linux all images look the same, no dark edges. On Windows there is some strange blending going on. The transparent edges are blended with the transparent black. Color and alpha is not replaced during drawing but blended in some strange way. #PB_Image_Transparent is transparent black, that's why ...