Search found 1360 matches

by dige
Wed Jan 21, 2026 3:07 pm
Forum: Tricks 'n' Tips
Topic: Northern Lights Info
Replies: 5
Views: 418

Re: Northern Lights Info

I asked ChatGPT to clean up the code and make the UI nicer 👇🏼 this is what I got. (This approach is where AI works pretty well.)


EnableExplicit

; ============================
; Data model
; ============================

Structure PolarlichtRow
datum.s
sturm.s
ab.s
kp.f
mlat.f
dateValue.q ...
by dige
Tue Jan 20, 2026 3:05 pm
Forum: Tricks 'n' Tips
Topic: Northern Lights Info
Replies: 5
Views: 418

Northern Lights Info

Did you also see the Northern Lights last night? They were visible as far south as 42° MLAT.
So you don’t miss the next ones, here’s a little info tool below…just for fun a little website grabber.
Maybe someone can make use of it.


; To set your own location, change this line: cookie.s ...
by dige
Tue Dec 16, 2025 5:14 pm
Forum: Tricks 'n' Tips
Topic: Microphone recorder and wave format save
Replies: 6
Views: 940

Re: Microphone recorder and wave format save


Thanks for the code, tested, works under windows.


ChatGPT 5.2, it worked now out of the box—code in, compile, record. :D :D


Ensure me, that line is sarcasm.

Miso


🤔 hmm, not sure what you mean?

Below is a further developed version..


EnableExplicit ...
by dige
Fri Dec 12, 2025 4:16 pm
Forum: Tricks 'n' Tips
Topic: Microphone recorder and wave format save
Replies: 6
Views: 940

Microphone recorder and wave format save

A lightweight microphone recorder that captures live audio and saves it straight to a clean PCM WAV file.
With a simple Start/Stop UI, it’s perfect for quick voice notes, testing, or grabbing raw mic takes for further processing.
Very nice: created with ChatGPT 5.2, it worked now out of the box—code ...
by dige
Fri Dec 12, 2025 2:01 pm
Forum: Coding Questions
Topic: Best workaround for SetMenuItemState?
Replies: 6
Views: 752

Re: Best workaround for SetMenuItemState?

Mayby its better to use Chr($2800)?


; Orig by Axolotl, edit by Dige use 'safe spaces'

UsePNGImageDecoder()
LoadImage(1,#PB_Compiler_Home + "examples/sources/Data/ToolBar/Open.png")
LoadImage(2,#PB_Compiler_Home + "examples/sources/Data/ToolBar/Save.png")
LoadImage(3,#PB_Compiler_Home ...
by dige
Fri Dec 12, 2025 1:44 pm
Forum: Coding Questions
Topic: Best workaround for SetMenuItemState?
Replies: 6
Views: 752

Re: Best workaround for SetMenuItemState?

Also very nice - thx Axolotl 👍
by dige
Wed Dec 10, 2025 3:56 pm
Forum: Coding Questions
Topic: Best workaround for SetMenuItemState?
Replies: 6
Views: 752

Re: Best workaround for SetMenuItemState?

RASHAD my friend! Thats great! Thank you very much!! :D
by dige
Wed Dec 10, 2025 12:10 pm
Forum: Coding Questions
Topic: Best workaround for SetMenuItemState?
Replies: 6
Views: 752

Best workaround for SetMenuItemState?

Hello everyone,

since PureBasic 6.30 switched PopupMenu() over to the Windows API, MenuItemState = #True no longer shows a checkmark when the menu item also has an icon. https://www.purebasic.fr/english/viewtopic.php?t=87965

In my app I’d really like to keep both: icons for clarity and a visible ...
by dige
Mon Dec 08, 2025 10:05 pm
Forum: Coding Questions
Topic: PB6.30B4 - MenuItemState not visible with images
Replies: 8
Views: 1461

Re: PB6.30B4 - MenuItemState not visible with images

Workaround by ChatGPT: SetMenuItemBitmap ()
@Fred: what do you think?


EnableExplicit

Enumeration
#Win
#Canvas
EndEnumeration

Enumeration
#Pop
EndEnumeration

Enumeration 1000
#MI_Toggle
EndEnumeration

; --- WinAPI: MENUITEMINFO (minimal, damit SetMenuItemInfo_() sauber klappt)
Structure ...
by dige
Mon Dec 08, 2025 9:51 pm
Forum: Coding Questions
Topic: PB6.30B4 - MenuItemState not visible with images
Replies: 8
Views: 1461

Re: PB6.30B4 - MenuItemState not visible with images

PB 6.21
Image

PB 6.30
Image

Menuitem "Alle Dateien" is checked
by dige
Mon Dec 08, 2025 9:39 am
Forum: Applications - Feedback and Discussion
Topic: Word Clock and Moon Phases
Replies: 9
Views: 1870

Re: Word Clock and Moon Phases

Great work!

How did you create C++ for the controller from the Purebasic code?
by dige
Mon Dec 08, 2025 9:14 am
Forum: 3D Programming
Topic: Main menu 3D
Replies: 9
Views: 1950

Re: Main menu 3D

well done 👍
by dige
Mon Nov 24, 2025 6:58 pm
Forum: Coding Questions
Topic: PB6.30B4 - MenuItemState not visible with images
Replies: 8
Views: 1461

PB6.30B4 - MenuItemState not visible with images

SetMenuItemState(0, 1, 1) --> Menu status is set to true, but the check mark is not visible.


;
; ------------------------------------------------------------
;
; PureBasic - Menu example file
;
; (c) Fantaisie Software
;
; ------------------------------------------------------------

CreateImage ...
by dige
Tue Nov 18, 2025 8:31 am
Forum: Applications - Feedback and Discussion
Topic: Xmas Tree Designer
Replies: 7
Views: 1733

Re: Xmas Tree Designer

Very nice _aNdy_, that's absolutely lovingly done. It would also be nice if animated (burning) candles could be added.

And when the tree is finished, you could view it as a full screen image with a background of your choice and Christmas music playing in the background.

I'm just dreaming... :wink:
by dige
Wed Nov 12, 2025 2:41 pm
Forum: Tricks 'n' Tips
Topic: Clipboard UI Inspector
Replies: 9
Views: 2410

Re: Clipboard UI Inspector

Thx Axolotl, I have further developed the tool in the meantime. If you like, you are welcome to add your own customizations.


; ===================================================================
; Clipboard UI Inspector (Windows)
; v1.0 09.9.25 by Dige
; v1.2 12.9.25 bug fixed, thanks Axolotl ...