Search found 2623 matches

by Michael Vogel
Sun Nov 09, 2025 10:22 pm
Forum: Coding Questions
Topic: Counting Items in the DataSection?
Replies: 38
Views: 19341

Re: Counting Items in the DataSection?

Perfect! Thank you!

Don't think your solution can be topped...


; Piero's code, I just added Data.s for testing...

Macro dq : "
EndMacro

Macro Label(counter)
Label_#counter:
EndMacro
Macro IncludeBin(z=)
Label(z)
Data.s #binpath + "Image_"+dq#z#dq+".jpg"; only for testing
;IncludeBinary ...
by Michael Vogel
Fri Nov 07, 2025 6:55 pm
Forum: Coding Questions
Topic: Counting Items in the DataSection?
Replies: 38
Views: 19341

Re: Counting Items in the DataSection?

I need to add tons of images into a datasection and catch these images, so labels are needed. But how to create an IncludeBinary using a filename similar to the label?

The result should be something like this:
Label_01:
IncludeBinary Path# + "Image_01.png"
Label_02:
IncludeBinary Path# + "Image_02 ...
by Michael Vogel
Fri Oct 31, 2025 6:18 pm
Forum: Off Topic
Topic: Free AI tools
Replies: 5
Views: 1470

Re: Free AI tools

ebs wrote: Wed Oct 29, 2025 2:43 pm All of the links except the second one are working.
Had used the second link some weeks ago which did a great job but this one is dead now. Also the other link to the puter site doesn't create any images here, it shows a white screen only.
by Michael Vogel
Tue Oct 28, 2025 3:34 pm
Forum: Off Topic
Topic: Free AI tools
Replies: 5
Views: 1470

Re: Free AI tools

Are these cute tools still working?
by Michael Vogel
Thu Oct 23, 2025 8:13 am
Forum: Coding Questions
Topic: [SOLVED] (end)User Friendly Way to delete ListIconGadget line?
Replies: 24
Views: 1690

Re: [SOLVED] (end)User Friendly Way to delete ListIconGadget line?

It's getting more and more complex...


; Define

EnableExplicit

Enumeration
#Win
; EndEnumeration : Enumeration
#GadgetList
#GadgetString
; EndEnumeration : Enumeration
#KeyDeleteItems
EndEnumeration

#Undefined=-#True

; EndDefine
Procedure Main()

Protected Event
Protected ...
by Michael Vogel
Wed Oct 15, 2025 7:40 am
Forum: The PureBasic Editor
Topic: IDE Tool "Jump to Marker"
Replies: 25
Views: 4508

Re: IDE Tool "Jump to Marker"

Updated the Marker Tool (Windows 64 bit) .
Please use the argument string: "%FILE" "%TEMPFILE" and check F1 to see most of the configurable options...

Some options can only be set modifying the ini file in the section {Tool]:
FontType= Name of the font
Minimize= Minimum size of the list or note ...
by Michael Vogel
Tue Oct 14, 2025 6:35 am
Forum: The PureBasic Editor
Topic: IDE Tool "Jump to Marker"
Replies: 25
Views: 4508

Re: IDE Tool "Jump to Marker"

Thank you for your detailed informations - I didn't expect to do such a lousy work, seems to be that I got old :shock:

You're right that the additional % needs to be stripped - and I will have a look what's going wrong with the font as soon as possible.
Meanwhile you can try to increase their ...
by Michael Vogel
Sun Oct 12, 2025 4:50 pm
Forum: The PureBasic Editor
Topic: IDE Tool "Jump to Marker"
Replies: 25
Views: 4508

Re: IDE Tool "Jump to Marker"

Here's an enhanced version of the marker tool for the PB IDE. It uses a preference file which contains all the program settings and the collected notes for source texts.

What still has to be done: adding a tool in the Purebasic's editor and the following argument string: "%FILE%" "%TEMPFILE ...
by Michael Vogel
Sat Oct 04, 2025 7:19 pm
Forum: Coding Questions
Topic: [SOLVED] Vanishing CalendarGadget... Why?
Replies: 15
Views: 1002

Re: Vanishing CalendarGadget... Why?

You'd better check all variable types in your code (long vs. integer) - the following code works fine here...

Procedure WinCallback(WindowID1,message,wParam,lParam)
Result = #PB_ProcessPureBasicEvents
If WindowID1 = WnHdl
Select message
Case #WM_LBUTTONDBLCLK
mcht.MCHITTESTINFO\cbSize ...
by Michael Vogel
Fri Oct 03, 2025 7:01 pm
Forum: Coding Questions
Topic: [SOLVED] Vanishing CalendarGadget... Why?
Replies: 15
Views: 1002

Re: Vanishing CalendarGadget... Why?

First idea, post a code - if you don't want to show private information: remove it, it may help you to create a working code (or at least a readable one).
Otherwise everyone must speculate what you really want, maybe something like that...


OpenWindow(0, 100, 100, 250, 200, "Calendar Gadget", #PB ...
by Michael Vogel
Wed Oct 01, 2025 10:10 pm
Forum: Tricks 'n' Tips
Topic: vector drawing display list
Replies: 21
Views: 2530

Re: vector drawing display list

...or FillVectorOutput()
by Michael Vogel
Sat Sep 20, 2025 11:48 am
Forum: Coding Questions
Topic: Program appears on each Windows 11 desktop, when run?
Replies: 8
Views: 883

Re: Program appears on each Windows 11 desktop, when run?

This line 31 is doing the trick, it sets the window as a #WS_EX_TOOLWINDOW which is used for systray programs so you don't see an icon in the taskbar. When using this simple approach you'd better add an icon to the systray as well.

For a quick comfortable solution you've to download the library ...
by Michael Vogel
Mon Sep 15, 2025 6:06 pm
Forum: Coding Questions
Topic: Send keystroke Ctrl+F2 to IDE
Replies: 4
Views: 515

Re: Send keystroke Ctrl+F2 to IDE

Perfect approach ! :shock:

THANK YOU!

Everything seems to be so simple (now)...
#MarkerId=22
If SendMessage_(\HandleScintilla,#SCI_MARKERGET,line-1,0) & (1<<#MarkerId)
n=#SCI_MARKERDELETE
Else
n=#SCI_MARKERADD
EndIf
SendMessage_(\HandleScintilla,n,line-1,#MarkerId)

; or a simple line ...
by Michael Vogel
Sun Sep 14, 2025 4:22 pm
Forum: Coding Questions
Topic: Send keystroke Ctrl+F2 to IDE
Replies: 4
Views: 515

Re: Send keystroke Ctrl+F2 to IDE

Did not work without the code around it (AttachThreadInput) seen in the snippet above - played around for a while and I fear it isn't possible to do that without a short flicker while the window is active...

One of the following lines have to be used as well to work...
- SetFocus_(Ide\HandleIde ...
by Michael Vogel
Sun Sep 14, 2025 1:09 pm
Forum: Coding Questions
Topic: Send keystroke Ctrl+F2 to IDE
Replies: 4
Views: 515

Send keystroke Ctrl+F2 to IDE

I wrote a small tool which shows all source code marker and added the functionality to remove a marker by invoking Ctrl+F2 from this tool. Anyhow I was not able to do this without activating the IDE window which is not perfect. Any ideas if it is possible to do the same while keeping the IDE window ...