Search found 1609 matches

by Shardik
Mon Dec 11, 2023 11:47 am
Forum: Tricks 'n' Tips
Topic: MultiLines Header ListIcon
Replies: 7
Views: 920

Re: MultiLines Header ListIcon

You may also take a look into these code examples from netmaestro and srod from 2009.
by Shardik
Sat Dec 09, 2023 4:24 pm
Forum: Coding Questions
Topic: C/PB Variable Types
Replies: 12
Views: 859

Re: C/PB Variable Types

Here you find a nice overview table for C data types in the German Wikipedia (at the end of the article).
by Shardik
Wed Nov 08, 2023 6:41 pm
Forum: Coding Questions
Topic: Fluid simulation
Replies: 20
Views: 1748

Re: Fluid simulation

pjay,

you should change

Code: Select all

CompilerIf #PB_Compiler_OS=#PB_OS_Linux
to

Code: Select all

CompilerIf #PB_Compiler_OS<>#PB_OS_Windows
so that your nice simulation also runs on MacOS :wink:
by Shardik
Sun Nov 05, 2023 7:19 pm
Forum: Coding Questions
Topic: PB 6.03: attaching a shortcut to a gadget with & nonfunctional
Replies: 10
Views: 883

Re: [No Bug]Re: PB 6.03: attaching a shortcut to a gadget with & nonfunctional

Under Linux, underlining letters with & does not work at all. It also works under Linux - kind of. Instead of the ampersand character "&" you have to use the underline character "_" in Linux. 13 years ago debashisde asked in this thread how to display underlined shortcut...
by Shardik
Mon Oct 16, 2023 8:59 am
Forum: Coding Questions
Topic: SOLVED : centering a dialog in an app
Replies: 9
Views: 665

Re: SOLVED : centering a dialog in an app

Thread MessageRequester centered with your main window from Juli 2009 with examples from flaith and netmaestro.
by Shardik
Fri Oct 13, 2023 7:32 am
Forum: The PureBasic Editor
Topic: How to toggle editor line/word wrap?
Replies: 6
Views: 1231

Re: How to toggle editor line/word wrap?

OpenWindow(0, 270, 100, 250, 120, "Word Wrap Test", #PB_Window_SystemMenu) EditorGadget(0, 10, 10, 230, 75) ButtonGadget(1, 60, 90, 140, 25, "Toggle Word Wrap") For i = 1 To 5 Text$ = Text$ + "This is a word wrap test - " Next i SetGadgetText(0, Text$) Repeat Select Wa...
by Shardik
Tue Oct 10, 2023 9:46 am
Forum: Bugs - IDE
Topic: [PB 6.03 B10] No inclusion of icon files with Umlaut character possible
Replies: 2
Views: 541

[PB 6.03 B10] No inclusion of icon files with Umlaut character possible

On Windows 10 22H2 x64 and Windows 11 22H2 x64: OpenWindow(0, 100, 100, 200, 170, "Icon test") Repeat Until WaitWindowEvent() = #PB_Event_CloseWindow Compiler Options > Use icon If the icon filename contains Umlaut characters (for example: "VM-Überprüfung.Ico"), the file won't be...
by Shardik
Mon Oct 09, 2023 2:27 pm
Forum: The PureBasic Editor
Topic: [Done] Procedure panel automatically hides at wrong cursor position
Replies: 4
Views: 964

Re: Bug: Procedure panel automatically hides at wrong cursor position

yuki describes the above bug much better in his posting in "Bugs -IDE" and in his GitHub issue (even with two videos demonstrating the problem).
by Shardik
Thu Oct 05, 2023 9:51 am
Forum: The PureBasic Editor
Topic: [Done] Procedure panel automatically hides at wrong cursor position
Replies: 4
Views: 964

[Done] Procedure panel automatically hides at wrong cursor position

On my Windows 10 22H2 my PureBasic IDE has the horizontal size to just display 80 columns and I have the following preference settings: ToolsPanel > Options - Panel on the right side - Automatically hide the Panel: Activated - Milliseconds before hiding the Panel: 0 I have found these bugs: When the...
by Shardik
Thu Oct 05, 2023 7:23 am
Forum: Tricks 'n' Tips
Topic: SQUINT 3, Sparse Quad Union Indexed Nibble Trie
Replies: 35
Views: 3828

Re: SQUINT 3, Sparse Quad Union Indexed Nibble Trie

This also runs on linux, the only line I had to change was in the bibletext example: XIncludeFile "..\squint3.pbi" should be XIncludeFile "../squint3.pbi" (forward slash) For cross-platform compatibility you should never use "/" or "\" in your file paths but ...
by Shardik
Sat Sep 23, 2023 8:43 pm
Forum: Bugs - Documentation
Topic: Please change requirements for MacOS version
Replies: 11
Views: 4466

Re: [Done] Please change requirements for MacOS version

This page is no more available, but I added it to the download page. https://www.purebasic.com/download.php Thank you for adding the minimum MacOS version to the download page. But unfortunately the minimum MacOS version for Mac hardware with M1/M2/ARM64 processors is incorrect. The first MacOS ver...
by Shardik
Sun Sep 17, 2023 9:24 pm
Forum: Bugs - Mac OSX
Topic: Incorrect display resolution on 5K iMac
Replies: 11
Views: 1139

Re: Incorrect display resolution on 5K iMac

Certainly! M2 Macbook Air w/24 GB RAM -- got the error on both PB 6.02 and the latest beta. I'm running macOS Ventura 13.5.2 The error occurs on line 27: If CGDisplayModeIsUsableForDesktopGUI(DisplayMode) Thank you for your detailed answer! Would you please try to change the declaration of a long i...
by Shardik
Sun Sep 17, 2023 4:13 pm
Forum: Bugs - Mac OSX
Topic: Incorrect display resolution on 5K iMac
Replies: 11
Views: 1139

Re: Incorrect display resolution on 5K iMac

mrbungle, thank you for your findings. Mindphazer has tested my API example from my 1st posting successfully with his M1 processor on his MacBook Pro 14 and MacOS 13.5.2 'Ventura'. It would possibly help if you tell us on which Apple hardware with M1 and M2 processor and on which MacOS versions my A...
by Shardik
Sun Sep 17, 2023 10:18 am
Forum: Bugs - Mac OSX
Topic: Incorrect display resolution on 5K iMac
Replies: 11
Views: 1139

Re: Incorrect display resolution on 5K iMac

This code throws an error on an M1 but works on Intel Got an invalid memory access error when using the ARM compiler (M2 CPU and > 16 GB). Does this terminal command work on your computers with M1 and M2 processor? system_profiler SPDisplaysDataType | grep Resolution: I posted the API example in my...
by Shardik
Fri Sep 15, 2023 8:53 pm
Forum: Bugs - Mac OSX
Topic: Incorrect display resolution on 5K iMac
Replies: 11
Views: 1139

Incorrect display resolution on 5K iMac

On my iMac 2019 with Intel processor and 27'' 5K screen PureBasic uses a wrong resolution on the desktop: ExamineDesktops() MessageRequester("Desktop size", Str(DesktopWidth(0)) + " x " + DesktopHeight(0)) On MacOS 13.5.2 'Ventura' the above program displays 2560 x 1440 . On the ...