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 ...
Search found 1267 matches
- Mon Sep 01, 2025 5:11 pm
- Forum: Coding Questions
- Topic: Strange outpug from debug?
- Replies: 16
- Views: 884
- 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: 1272
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.
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.
- Mon Jun 09, 2025 5:37 pm
- Forum: Coding Questions
- Topic: Menu lifecycle
- Replies: 7
- Views: 859
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 ...
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 ...
- Sun Jun 08, 2025 4:06 pm
- Forum: Coding Questions
- Topic: [SOLVED] Shared Roaming Folder is a Problem
- Replies: 16
- Views: 1530
Re: Shared Roaming Folder is a Problem
Command-line options for the IDE: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
https://www.purebasic.com/documentation ... dline.html
- Thu May 29, 2025 12:05 pm
- Forum: Off Topic
- Topic: What is the actual 50% gray hex?
- Replies: 21
- Views: 2989
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 ...
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 ...
- Mon May 26, 2025 4:34 am
- Forum: Bugs - Windows
- Topic: [Done] 5.42 vector drawing & saveImage()
- Replies: 4
- Views: 3369
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 ...
- Sun May 25, 2025 4:29 pm
- Forum: Bugs - Linux
- Topic: [Done] SetClipboardText
- Replies: 4
- Views: 1782
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.
- Sun May 25, 2025 9:43 am
- Forum: Bugs - Linux
- Topic: [Done] SetClipboardText
- Replies: 4
- Views: 1782
Re: SetClipboardText
If i run xclipboard first and then run the code, then xclipboard as well as KDE clipboard manager shows the correct string.
- Sun May 25, 2025 9:39 am
- Forum: Bugs - Linux
- Topic: [Done] SetClipboardText
- Replies: 4
- Views: 1782
[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 ...
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 ...
- Sun May 25, 2025 7:22 am
- Forum: Coding Questions
- Topic: ImageVectorOutput() has no antialiasing – normal or bug?
- Replies: 7
- Views: 688
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 ...
- Tue May 20, 2025 12:53 pm
- Forum: Game Programming
- Topic: Magic 4x4
- Replies: 78
- Views: 12054
Re: Magic 4x4
The collapsing, as mentioned by IceSoft, still doesn't always work correctly. Particularly when moving down. When 2 same pieces collapse, the remaining pieces stay behind the gap and don't shift further.
- Tue May 20, 2025 12:17 pm
- Forum: General Discussion
- Topic: Can't access this forum outside EU
- Replies: 32
- Views: 3821
Re: Can't access this forum outside EU
I get the same Forbidden message on an older Ubuntu (18.04) / Firefox (113.0.2).
Works fine on Ubuntu (24.04.2) / Firefox (138.0.3).
I'm in Germany.
On the older system:
- only doesn't work for the english forum. french, german, blog, purebasic.com work fine.
- even the english forum works fine via ...
Works fine on Ubuntu (24.04.2) / Firefox (138.0.3).
I'm in Germany.
On the older system:
- only doesn't work for the english forum. french, german, blog, purebasic.com work fine.
- even the english forum works fine via ...
- Sat May 17, 2025 8:50 pm
- Forum: Feature Requests and Wishlists
- Topic: Enums as a Type
- Replies: 12
- Views: 2237
Re: Enums as a Type
While it would be nice, and other languages have that, it is far away. PB doesn't even have type checking for structure parameters, which you declare and pass as pointers and you can pass just any number, not even just integers then, and structures are already types, kind of. Compile-time checking ...
- Thu May 15, 2025 8:04 am
- Forum: Game Programming
- Topic: Magic 4x4
- Replies: 78
- Views: 12054
Re: Magic 4x4
On linux something doesn't work with the GrabSprite(). When I use CreateSprite() instead, I can see the numbered squares:
(around line number ~51)
For i=1 To 16
nb$=Str(nb)
;StartDrawing(ScreenOutput())
CreateSprite(i, zoom/4,zoom/4)
StartDrawing(SpriteOutput(i))
DrawingMode(1)
Box(0,0 ...
(around line number ~51)
For i=1 To 16
nb$=Str(nb)
;StartDrawing(ScreenOutput())
CreateSprite(i, zoom/4,zoom/4)
StartDrawing(SpriteOutput(i))
DrawingMode(1)
Box(0,0 ...
- Wed May 07, 2025 3:58 pm
- Forum: Coding Questions
- Topic: Counting Items in the DataSection?
- Replies: 30
- Views: 4588
Re: Counting Items in the DataSection?
You can define your items with a macro and keep counting. Not at compile time though. This depends on the runtime order of execution, so you will have to define your data before you use the count:
EnableExplicit
Macro DataSectionLabel(_label_)
DataSection
_label_:
EndDataSection
Define _label ...
EnableExplicit
Macro DataSectionLabel(_label_)
DataSection
_label_:
EndDataSection
Define _label ...